Commit 2cbc1f7a by cwq0219

删除注释

1 parent 4fd138a0
...@@ -341,55 +341,54 @@ export default { ...@@ -341,55 +341,54 @@ export default {
}, },
onSubmit() { onSubmit() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
// if (valid) { if (valid) {
const form = this.form const form = this.form
const params = { const params = {
merchantId: this.merchantId, merchantId: this.merchantId,
channelType: this.channelType, channelType: this.channelType,
smsCode: form.smsCode smsCode: form.smsCode
} }
if (form.autoFlag) { if (form.autoFlag) {
params.autoFlag = form.autoFlag params.autoFlag = form.autoFlag
} }
if (form.settleTimeType) { if (form.settleTimeType) {
params.settleTimeType = form.settleTimeType params.settleTimeType = form.settleTimeType
} }
if (form.settleAmountType) { if (form.settleAmountType) {
params.settleAmountType = form.settleAmountType params.settleAmountType = form.settleAmountType
} }
if (form.merchantSettleType) { if (form.merchantSettleType) {
params.merchantSettleType = form.merchantSettleType params.merchantSettleType = form.merchantSettleType
} }
if (form.merchantProfitType === 1) { if (form.merchantProfitType === 1) {
params.merchantProfitValue = form.merchantProfitValue params.merchantProfitValue = form.merchantProfitValue
} else { } else {
params.merchantProfitValue = -1 params.merchantProfitValue = -1
} }
if (form.partnerProfitType === 1) { if (form.partnerProfitType === 1) {
params.partnerProfitPer = form.partnerProfitPer params.partnerProfitPer = form.partnerProfitPer
} else {
params.partnerProfitPer = -1
}
if (form.incentiveType) params.incentiveType = form.incentiveType
if (form.incentiveValue) params.incentiveValue = form.incentiveValue
updateRule(params).then((res) => {
this.$message({
message: '修改成功',
type: 'success'
})
this.close({ tagName: '/merchantManage' })
this.$router.push({
name: 'merchantManage'
})
})
} else { } else {
params.partnerProfitPer = -1 console.log('error submit!!')
return false
} }
if (form.incentiveType) params.incentiveType = form.incentiveType
if (form.incentiveValue) params.incentiveValue = form.incentiveValue
console.log(params)
// updateRule(params).then((res) => {
// this.$message({
// message: '修改成功',
// type: 'success'
// })
// this.close({ tagName: '/merchantManage' })
// this.$router.push({
// name: 'merchantManage'
// })
// })
// } else {
// console.log('error submit!!')
// return false
// }
}) })
}, },
onCancel() { onCancel() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!