From ce2adb3bbc97dd77f991e93a758dcb6310817312 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Wed, 27 Jul 2022 15:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20=E6=96=B0=E5=A2=9E=20/=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/view-module.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mixins/view-module.js b/src/mixins/view-module.js index 079ac138..dcfabd2e 100644 --- a/src/mixins/view-module.js +++ b/src/mixins/view-module.js @@ -102,6 +102,14 @@ export default { this.page = 1 this.query() }, + // 新增 / 修改 + addOrUpdateHandle (id) { + this.addOrUpdateVisible = true + this.$nextTick(() => { + this.$refs.addOrUpdate.dataForm.id = id + this.$refs.addOrUpdate.init() + }) + }, // 删除 deleteHandle (id) { if (this.mixinViewModuleOptions.deleteIsBatch && !id && this.dataListSelections.length <= 0) {