diff --git a/src/views/xm/core/xmMenu/XmMenuMng.vue b/src/views/xm/core/xmMenu/XmMenuMng.vue index d8e28c62..94a9e3d6 100644 --- a/src/views/xm/core/xmMenu/XmMenuMng.vue +++ b/src/views/xm/core/xmMenu/XmMenuMng.vue @@ -105,6 +105,8 @@ {{dicts.menuStatus.some(i=>i.id==scope.row.status)?dicts.menuStatus.find(i=>scope.row.status==i.id).name:''}} + + @@ -676,11 +676,6 @@ this.$emit("selected",row) }, showImportFromMenuTemplate(row){ - - if(!this.roles.some(i=>i.roleid=='productAdmin') && !this.roles.some(i=>i.roleid=='productTeamAdmin')){ - this.$notify({showClose: true, message: "只有产品经理、产品组长能够修改需求", type: 'error'}); - return false; - } if(!this.filters.product){ this.$notify.error("请选择产品模板") return; @@ -754,11 +749,6 @@ }).catch( err => this.load.add=false ); }, toBatchEdit(){ - - if(!this.roles.some(i=>i.roleid=='productAdmin') && !this.roles.some(i=>i.roleid=='productTeamAdmin')){ - this.$notify({showClose: true, message: "只有产品经理、产品组长能够修改需求", type: 'error'}); - return false; - } this.batchEditVisible=true; }, @@ -768,11 +758,6 @@ }, showTaskList(row){ - - if(!this.roles.some(i=>i.roleid=='productAdmin') && !this.roles.some(i=>i.roleid=='productTeamAdmin')){ - this.$notify({showClose: true, message: "只有产品经理、产品组长能够修改需求", type: 'error'}); - return false; - } this.editForm=row this.selectTaskVisible=true; }, @@ -784,19 +769,16 @@ this.$notify.error("请最少选择一个任务进行关联"); return; } - var menu=this.editForm - xmTasks.forEach(i=>{ - i.menuId=menu.menuId - i.menuName=menu.menuName - i.productId=menu.productId - i.productName=menu.productName - }); + this.selectTaskVisible=false; - - batchRelTasksWithMenu(xmTasks).then(res=>{ + var params={ + menuId:this.editForm.menuId, + taskIds:xmTasks.map(i=>i.id) + } + batchRelTasksWithMenu(params).then(res=>{ var tips = res.data.tips if(tips.isOk){ - this.getXmMenus() + //this.getXmMenus() } this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error'}); }); diff --git a/src/views/xm/core/xmTask/XmTaskList.vue b/src/views/xm/core/xmTask/XmTaskList.vue index 05727632..c64f9c73 100644 --- a/src/views/xm/core/xmTask/XmTaskList.vue +++ b/src/views/xm/core/xmTask/XmTaskList.vue @@ -43,15 +43,27 @@ stripe fit border - default-expand-all - :tree-props="{children: 'children', hasChildren: 'hasChildren'}" + :tree-props="{children: 'children', hasChildren: 'childrenCnt'}" row-key="id" :height="tableHeight" > - + @@ -91,6 +103,7 @@