From 78c70e90f7ad3f11ee4526b46430275ffaa9962c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 19 Jun 2022 11:58:46 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xm/core/xmQuestion/XmQuestionAdd.vue | 18 ++-- .../xm/core/xmQuestion/XmQuestionEdit.vue | 87 +++++++------------ 2 files changed, 35 insertions(+), 70 deletions(-) diff --git a/src/views/xm/core/xmQuestion/XmQuestionAdd.vue b/src/views/xm/core/xmQuestion/XmQuestionAdd.vue index ffc15a4e..ab2fec9a 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionAdd.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionAdd.vue @@ -93,10 +93,8 @@ - - - -
+ 点击切换为富文本编辑|普通文本 +
@@ -106,10 +104,8 @@ - - - -
+ 点击切换为富文本编辑|普通文本 +
@@ -119,10 +115,8 @@ - - - -
+ 点击切换为富文本编辑|普通文本 +
diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index db74dc84..4174ec10 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -36,7 +36,7 @@ 提出人
创建人
- 其它人
+ 其它人
指派给 @@ -70,7 +70,7 @@ - {{editForm.askUsername?editForm.askUsername:'未关联提出人'}} + {{editForm.askUsername?editForm.askUsername:'未关联提出人'}} @@ -124,11 +124,9 @@ - - - 切换为富文本输入 - -
+ + 点击切换为富文本编辑|普通文本 +
@@ -142,10 +140,8 @@ - - - -
+ 点击切换为富文本编辑|普通文本 +
@@ -160,10 +156,8 @@ - - - -
+ 点击切换为富文本编辑|普通文本 +
@@ -435,54 +429,21 @@ }, onUserConfirm:function(groupUsers){ if(groupUsers==null || groupUsers.length==0){ - if(this.userFieldName=='askUsername'){ - this.editForm.askUserid='' - this.editForm.askUsername='' - }else if(this.userFieldName=='handlerUsername'){ - this.editForm.handlerUserid='' - this.editForm.handlerUsername=''; - } - }else{ - var user=groupUsers[0] - if(this.userFieldName=='askUsername'){ - this.editForm.askUserid=user.userid - this.editForm.askUsername=user.username - }else if(this.userFieldName=='handlerUsername'){ - this.editForm.handlerUserid=user.userid - this.editForm.handlerUsername=user.username - } + + }else{ + if(this.userFieldName==='handlerUserid'){ + this.editForm.handlerUserid=groupUsers[0].userid + this.editForm.handlerUsername=groupUsers[0].username + }else if(this.userFieldName==='askUserid'){ + this.editForm.askUserid=groupUsers[0].userid + this.editForm.askUsername=groupUsers[0].username + } + this.editXmQuestionSomeFields(this.editForm,this.userFieldName,groupUsers) } this.selectUserVisible=false }, handleQuestion:function(tardgetBugStatus){ this.editSubmit(tardgetBugStatus); - }, - formatterOption: function(row,column,cellValue, index){ - var columnName=column.property; - var key=""; - if(columnName=='handleStatus'){ - key="bugStatus" - }else if(columnName=='bugType'){ - key="bugType" - }else if(columnName=='handleSolution'){ - key="bugSolution" - }else if(columnName=='bugSeverity'){ - key="bugSeverity" - }else if(columnName=='priority'){ - key="priority" - }else{ - return cellValue - } - if(this.dicts[key]==undefined || this.dicts[key]==null || this.dicts[key].length==0 ){ - return cellValue; - } - var list=this.dicts[key].filter(i=>i.id==cellValue) - if(list.length>0){ - return list[0].name - }else{ - return cellValue; - } - }, showSelectTask:function(){ if(this.selProject==null){ @@ -514,10 +475,13 @@ sendToCreater(){ this.editForm.handlerUsername=this.editForm.createUsername this.editForm.handlerUserid=this.editForm.createUserid + this.editXmQuestionSomeFields(this.editForm,"handlerUserid",[{userid:this.editForm.createUserid,username:this.editForm.createUsername}]) + }, sendToAsk(){ this.editForm.handlerUsername=this.editForm.askUsername this.editForm.handlerUserid=this.editForm.askUserid + this.editXmQuestionSomeFields(this.editForm,"handlerUserid",[{userid:this.editForm.askUserid,username:this.editForm.askUsername}]) }, /**end 在上面加自定义方法**/ @@ -573,6 +537,13 @@ }else{ return; } + }else if(fieldName==='askUserid'){ + if($event){ + params[fieldName]=$event[0].userid; + params.askUsername=$event[0].username + }else{ + return; + } }else if(fieldName==='tagIds'){ if($event){ params[fieldName]=$event.map(i=>i.tagId).join(",");