From fdb04944a193550b72355e2e2a7cbf6659477acc Mon Sep 17 00:00:00 2001 From: Sigo Date: Thu, 30 Jun 2022 09:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=89=93=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/discount-coupon/management/components/pay.vue | 1 + src/pages/discount-coupon/management/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/discount-coupon/management/components/pay.vue b/src/pages/discount-coupon/management/components/pay.vue index 83f7f3d..882be86 100644 --- a/src/pages/discount-coupon/management/components/pay.vue +++ b/src/pages/discount-coupon/management/components/pay.vue @@ -38,6 +38,7 @@ export default { // ============================ 弹窗 ============================ // // 显示弹窗 show(row) { + row.state = 5 this.form = Object.assign({}, row); this.dialogFormVisible = true }, diff --git a/src/pages/discount-coupon/management/index.vue b/src/pages/discount-coupon/management/index.vue index 73eda52..2067341 100644 --- a/src/pages/discount-coupon/management/index.vue +++ b/src/pages/discount-coupon/management/index.vue @@ -249,6 +249,7 @@ export default { }) .then(async () => { let form = Object.assign({}, row); + form.state = 5 for (let key in form) { // format写法会将null类型强行转化成字符串的‘null’,传到后台,后台会报错,所以需要删掉值为null的字段 if (form[key] !== 0 && !form[key]) {