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 {