From 5719443a7598721afc352badcdffa8d9b222464c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sat, 26 Feb 2022 16:36:47 +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 --- .../core/xmProjectGroup/XmProjectGroupMng.vue | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue b/src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue index bc3df2d6..79b89f4d 100644 --- a/src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue +++ b/src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue @@ -40,11 +40,11 @@ width="50%" > 新增下级小组 - 通过模板批量导入下级小组 + 通过模板批量导入下级小组 新增下级小组 - 通过模板批量导入下级小组 + 通过模板批量导入下级小组 @@ -361,15 +361,35 @@ if(this.xmProduct && this.xmProduct.id){ this.addForm.productId=this.xmProduct.id this.addForm.pgClass="1" - this.addForm.projectId="" + this.addForm.projectId=null }else{ - this.addForm.productId="" + this.addForm.productId=null this.addForm.pgClass="0" this.addForm.projectId=this.selProject.id } this.addFormVisible = true; //this.addForm=Object.assign({}, this.editForm); }, + //显示新增界面 XmProjectGroup xm_project_group + showAddSub: function (row) { + if(this.xmProduct && this.xmProduct.id){ + this.addForm.productId=this.xmProduct.id + this.addForm.pgClass="1" + this.addForm.projectId=null + }else{ + this.addForm.productId=null + this.addForm.pgClass="0" + this.addForm.projectId=this.selProject.id + } + if(row){ + this.addForm.pgroupId=row.id + this.addForm.pgroupName=row.groupName + this.addForm.groupName=row.groupName+"-"+"下级小组xx" + this.addForm.id=null + } + this.addFormVisible = true; + //this.addForm=Object.assign({}, this.editForm); + }, afterAddSubmit(){ this.addFormVisible=false; this.pageInfo.count=true;