From 544d743d5d3c012c0720ddeca15f0b2f5d4245dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 2 Feb 2023 03:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/core/xmFunc/XmFuncSelect.vue | 33 ++++++++++++++--------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/views/xm/core/xmFunc/XmFuncSelect.vue b/src/views/xm/core/xmFunc/XmFuncSelect.vue index 82c09eee..ddb64100 100644 --- a/src/views/xm/core/xmFunc/XmFuncSelect.vue +++ b/src/views/xm/core/xmFunc/XmFuncSelect.vue @@ -2,18 +2,9 @@
- - - 添加顶级模块 - 编辑 - 删除 - - - + + + @@ -26,8 +17,20 @@ {{scope.row.name}}
- + + + 新建子功能模块 + 编辑 + 删除 + + + +
@@ -194,6 +197,10 @@ export default { this.$notify({ position:'bottom-left',showClose:true, message:"请选择一条数据再点击修改按钮", type: 'error' }); return; } + if(this.editForm && row.id!=this.editForm.id){ + this.$refs.xmFuncTable.setCurrentRow(row); + this.$emit("row-click",row) + } this.editFormVisible = true; this.editForm = Object.assign({}, row); },