Commit 2cbc1f7a by cwq0219

删除注释

1 parent 4fd138a0
......@@ -341,55 +341,54 @@ export default {
},
onSubmit() {
this.$refs['form'].validate((valid) => {
// if (valid) {
const form = this.form
const params = {
merchantId: this.merchantId,
channelType: this.channelType,
smsCode: form.smsCode
}
if (valid) {
const form = this.form
const params = {
merchantId: this.merchantId,
channelType: this.channelType,
smsCode: form.smsCode
}
if (form.autoFlag) {
params.autoFlag = form.autoFlag
}
if (form.settleTimeType) {
params.settleTimeType = form.settleTimeType
}
if (form.settleAmountType) {
params.settleAmountType = form.settleAmountType
}
if (form.merchantSettleType) {
params.merchantSettleType = form.merchantSettleType
}
if (form.autoFlag) {
params.autoFlag = form.autoFlag
}
if (form.settleTimeType) {
params.settleTimeType = form.settleTimeType
}
if (form.settleAmountType) {
params.settleAmountType = form.settleAmountType
}
if (form.merchantSettleType) {
params.merchantSettleType = form.merchantSettleType
}
if (form.merchantProfitType === 1) {
params.merchantProfitValue = form.merchantProfitValue
} else {
params.merchantProfitValue = -1
}
if (form.merchantProfitType === 1) {
params.merchantProfitValue = form.merchantProfitValue
} else {
params.merchantProfitValue = -1
}
if (form.partnerProfitType === 1) {
params.partnerProfitPer = form.partnerProfitPer
if (form.partnerProfitType === 1) {
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 {
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() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!