From 14e286a7b6e29d9b14dc130d225904fb8455d4f1 Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Fri, 22 Sep 2023 13:57:49 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shop/shoptag-add-or-update.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/modules/shop/shoptag-add-or-update.vue b/src/views/modules/shop/shoptag-add-or-update.vue index 760bb57..eb90a44 100644 --- a/src/views/modules/shop/shoptag-add-or-update.vue +++ b/src/views/modules/shop/shoptag-add-or-update.vue @@ -2,7 +2,7 @@ + :visible.sync="visible" append-to-body @close="resetform"> @@ -36,7 +36,7 @@ }, - methods: { + methods: { init (row) { this.visible = true this.$nextTick(() => { @@ -46,7 +46,13 @@ this.dataForm.labelName = row.labelName } }) - }, + }, + // 关闭弹窗 + resetform() { + this.visible = false + this.dataForm.splId = 0 + console.log('重置id') + }, // 表单提交 dataFormSubmit () { this.$refs['dataForm'].validate((valid) => { @@ -68,6 +74,7 @@ onClose: () => { this.visible = false this.$emit('refreshDataList') + this.resetform() } }) } else { @@ -91,6 +98,7 @@ onClose: () => { this.visible = false this.$emit('refreshDataList') + this.resetform() } }) } else {