From 09f78e906432630524435110ad07afe7c99705c7 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 7 Sep 2022 18:11:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingManage/demonMenu.vue | 11 +++++- src/views/trainingManage/editCondition.vue | 43 +++++++++++----------- src/views/trainingManage/trainingList.vue | 1 + 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/views/trainingManage/demonMenu.vue b/src/views/trainingManage/demonMenu.vue index 69ecaf11c..3f8aa49db 100644 --- a/src/views/trainingManage/demonMenu.vue +++ b/src/views/trainingManage/demonMenu.vue @@ -7,7 +7,7 @@ 实训列表 - + @@ -45,6 +45,7 @@ export default { hoverBtn: false, btnWidth: -600, materialsList: [], + refsList: ['editDetails', 'editCondition'], editData: {}, isAdmin: true }; @@ -107,8 +108,16 @@ export default { }, updateDetails(data) { this.editData = data; + this.closeAllDialog('editDetails'); this.$refs.editDetails.doShow(data); }, + closeAllDialog(noCloseName) { + this.refsList.forEach(key => { + if (key != noCloseName && this.$refs[key]) { + this.$refs[key].doClose(); + } + }); + }, openEditOperate(data) { console.log(data, '***'); this.$refs.editOperate.doShow(data); diff --git a/src/views/trainingManage/editCondition.vue b/src/views/trainingManage/editCondition.vue index 2140adde4..8a05ee87f 100644 --- a/src/views/trainingManage/editCondition.vue +++ b/src/views/trainingManage/editCondition.vue @@ -1,10 +1,10 @@