qinzhipeng_v 5 éve
szülő
commit
cc91b5a0a5

+ 26 - 10
src/views/projectManage/bugList/details/index.vue

@@ -781,12 +781,20 @@ export default {
         idap: this.bug.assigner
       }
       this.assignerOptions.push(assignerItem)
-      const currentHandlerItem = {
-        idapName: null,
-        name: this.bug.currentHandlerList,
-        idap: this.bug.currentHandler
+      for (const i in this.bug.currentHandlerList.split(',')) {
+        const assignerItem = {}
+        assignerItem.idapName = ''
+        assignerItem.name = this.bug.currentHandlerList.split(',')[i]
+        assignerItem.idap = this.bug.currentHandler.split(',')[i]
+        this.currentHandlerOptions.push(assignerItem)
       }
-      this.currentHandlerOptions.push(currentHandlerItem)
+      console.log(this.currentHandlerOptions, 'mouned')
+      // const currentHandlerItem = {
+      //   idapName: null,
+      //   name: this.bug.currentHandlerList,
+      //   idap: this.bug.currentHandler
+      // }
+      // this.currentHandlerOptions.push(currentHandlerItem)
       this.changeWidthOnBlur()
       releaseList().then(res => {
         this.appClientList = res.data.appClient // 客户端
@@ -816,12 +824,20 @@ export default {
           idap: this.bug.assigner
         }
         this.assignerOptions.push(assignerItem)
-        const currentHandlerItem = {
-          idapName: null,
-          name: this.bug.currentHandlerList,
-          idap: this.bug.currentHandler
+        for (const i in this.bug.currentHandlerList.split(',')) {
+          const assignerItem = {}
+          assignerItem.idapName = ''
+          assignerItem.name = this.bug.currentHandlerList.split(',')[i]
+          assignerItem.idap = this.bug.currentHandler.split(',')[i]
+          this.currentHandlerOptions.push(assignerItem)
         }
-        this.currentHandlerOptions.push(currentHandlerItem)
+        console.log(this.currentHandlerOptions, 'mouned')
+        // const currentHandlerItem = {
+        //   idapName: null,
+        //   name: this.bug.currentHandlerList,
+        //   idap: this.bug.currentHandler
+        // }
+        // this.currentHandlerOptions.push(currentHandlerItem)
         this.changeWidthOnBlur()
         this.getCommentList()
         releaseList().then(res => {

+ 6 - 3
src/views/projectManage/bugList/file/createdBug.vue

@@ -56,7 +56,7 @@
                 </el-form-item>
 
                 <el-form-item label="责任人" style="width:100%;" prop="assigner">
-                  <el-select v-model="formInline.assigner" filterable remote reserve-keyword :remote-method="remoteMethod" :loading="loading" size="small" style="width: 100%" placeholder="请输入姓名或邮箱前缀" @change="getcurrentHandler(formInline.assigner)">
+                  <el-select v-model="formInline.assigner" multiple filterable remote :remote-method="remoteMethod" :loading="loading" size="small" style="width: 100%" placeholder="请输入姓名或邮箱前缀" @change="getcurrentHandler(formInline.assigner)">
                     <el-option v-for="item in options" :key="item.idap" :label="item.name" :value="test2(item, 0)">
                       <div style="display: flex;justify-content: start;">
                         <div style="min-width:100px;color: #8492a6; font-size: 13px; overflow:hidden">{{ item.deptName }}</div>
@@ -99,7 +99,7 @@
                   <el-input v-model="formInline.creatorList" :disabled="true" size="small" placeholder="请输入姓名或邮箱前缀" style="width:100%;" />
                 </el-form-item>
                 <el-form-item label="修复人" style="width:100%;" prop="currentHandler">
-                  <el-select v-model="formInline.currentHandler" filterable remote reserve-keyword :remote-method="remoteMethod" :loading="loading" size="small" style="width: 100%" placeholder="请输入姓名或邮箱前缀">
+                  <el-select v-model="formInline.currentHandler" multiple filterable remote :remote-method="remoteMethod" :loading="loading" size="small" style="width: 100%" placeholder="请输入姓名或邮箱前缀">
                     <el-option v-for="item in options" :key="item.idap" :label="item.name" :value="test2(item, 0)">
                       <div style="display: flex;justify-content: start;">
                         <div style="min-width:100px;color: #8492a6; font-size: 13px; overflow:hidden">{{ item.deptName }}</div>
@@ -367,8 +367,11 @@ export default {
     bug_created(e) { // 创建(提交)
       this.$refs['formInline'].validate((valid) => {
         if (valid) {
+          const data = e
+          data.currentHandler = e.currentHandler.join()
+          data.assigner = e.assigner.join()
           var user = { name: this.userNames, ename: this.userInformation, id: '' }
-          bugCreate({ bugBaseInfo: e, user }).then(res => {
+          bugCreate({ bugBaseInfo: data, user }).then(res => {
             this.bugListSelect()
             this.modalShow = false
             this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })