Commit 0c4b66d5 by zhangxw

Merge branch 'SAAS+V4.51.0-0331' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.51.0-0331
2 parents fa62d66f a0068fb1
...@@ -38,6 +38,7 @@ import { ...@@ -38,6 +38,7 @@ import {
export default { export default {
data() { data() {
return { return {
isFlag: true,
warningForm: { warningForm: {
id: "", id: "",
merchantNo: "", merchantNo: "",
...@@ -155,23 +156,28 @@ export default { ...@@ -155,23 +156,28 @@ export default {
this.oldVal[name] = this.warningForm[name] this.oldVal[name] = this.warningForm[name]
}, },
async handleAddConfirm() { async handleAddConfirm() {
try { if (this.isFlag) {
let params = { this.isFlag = false
id: this.warningForm.id, try {
merchantNo: this.warningForm.merchantNo || this.info.merchantId, let params = {
ewConRate: this.warningForm.ewConRate, id: this.warningForm.id,
ewAxbConRate: this.warningForm.ewAxbConRate, merchantNo: this.warningForm.merchantNo || this.info.merchantId,
ewLtConRate: this.warningForm.ewLtConRate, ewConRate: this.warningForm.ewConRate,
riConRate: this.warningForm.riConRate ewAxbConRate: this.warningForm.ewAxbConRate,
} ewLtConRate: this.warningForm.ewLtConRate,
const res = await saveOrUpdateWarningConfig(params) riConRate: this.warningForm.riConRate
if (res) { }
this.$message.success("保存成功") const res = await saveOrUpdateWarningConfig(params)
this.warningVisible = false if (res) {
this.$emit("confirmWarnDialog") this.$message.success("保存成功")
this.warningVisible = false
this.$emit("confirmWarnDialog")
}
} catch (error) {
this.$message.error(error)
} finally {
this.isFlag = true
} }
} catch (error) {
this.$message.error(error)
} }
}, },
handleClose() { handleClose() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!