From 0fdaf276a078264e33afc183fa550c2422569b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 25 Jun 2022 21:28:41 +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 --- .../xm/core/xmMenuWorkItem/XmSubMenuList.vue | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue b/src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue index 2b647b67..e66abece 100644 --- a/src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue +++ b/src/views/xm/core/xmMenuWorkItem/XmSubMenuList.vue @@ -21,7 +21,9 @@ {{scope.row.seqNo}}  {{scope.row.menuName}} - + + + @@ -103,6 +105,10 @@ 确 定 + + + + @@ -149,9 +155,13 @@ export default { data() { return{ load:{edit:false,list:false,add:false,del:false}, - xmMenus:[], - editForm:{menuName:'',dclass:'3'}, + xmMenus:[], + //编辑xmMenu界面初始化数据 + editForm: { + menuId:'',menuName:'',pmenuId:'',productId:'',remark:'',status:'',online:'',demandUrl:'',codeUrl:'',designUrl:'',docUrl:'',helpUrl:'',operDocUrl:'',ntype:'0',childrenCnt:0,sinceVersion:'',proposerId:'',proposerName:'',dlvl:'0',dtype:'0',priority:'0',source:'1',dclass:'3' + }, addForm:{menuName:'',dclass:'3'}, + editFormVisible:false, addFormVisible:false, addFormRules:{ menuName:[ @@ -270,6 +280,11 @@ export default { } }) }, + + showEdit(row,index){ + this.editForm=row + this.editFormVisible=true + }, initData(){ this.xmMenus=[] @@ -401,6 +416,7 @@ export default { XmMenuWorkload, XmGroupDialog, XmIterationSelect, + 'xm-menu-edit':()=>import('../xmMenu/XmMenuEdit') }, mounted() { this.initData();