From 8a273cf10bcf7c59c06c81ec1f6e83d1f0f00196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 3 Mar 2022 16:25:27 +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/xmQuestion/XmQuestionEdit.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index 9bd446ad..595a9723 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -259,8 +259,7 @@ this.load.edit=false var tips=res.data.tips; if(tips.isOk){ - this.$emit('submit');// @submit="afterAddSubmit" - this.handleCancel(); + this.$emit('submit');// @submit="afterAddSubmit" } this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' }); }).catch( err => this.load.edit=false); @@ -318,15 +317,7 @@ } this.selectUserVisible=false }, - handleQuestion:function(tardgetBugStatus){ - - var oldBugStatus=this.editForm.bugStatus; - if(tardgetBugStatus=="closed"){ - if( !this.roles.some(i=>i.roleid=='testAdmin') && !this.roles.some(i=>i.roleid=='tester') && !this.roles.some(i=>i.roleid=='testTeamAdmin') ){ - this.$notify({showClose: true,message:"只有测试经理、测试组长、测试员可以关闭bug",type:"error"}); - return ; - } - } + handleQuestion:function(tardgetBugStatus){ this.editSubmit(tardgetBugStatus); }, formatterOption: function(row,column,cellValue, index){