|
@@ -294,12 +294,13 @@
|
|
|
<el-select
|
|
|
v-model="bug.assigner"
|
|
|
filterable
|
|
|
+ multiple
|
|
|
remote
|
|
|
placeholder="请输入姓名或邮箱前缀"
|
|
|
:remote-method="searchAssigner"
|
|
|
:loading="userLoading"
|
|
|
@change="bugUpdate(bug,'userInfo')"
|
|
|
- @focus="isAssignerFocusOpen?searchAssigner(bug.assigner):null;isAssignerFocusOpen = false"
|
|
|
+ @focus="isAssignerFocusOpen?searchAssigner(bug.assigner, 1):null"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item,index) in assignerOptions"
|
|
@@ -322,13 +323,14 @@
|
|
|
<el-form-item label="修复人">
|
|
|
<el-select
|
|
|
v-model="bug.currentHandler"
|
|
|
+ multiple
|
|
|
filterable
|
|
|
remote
|
|
|
placeholder="请输入姓名或邮箱前缀"
|
|
|
:remote-method="searchCurrentHandler"
|
|
|
:loading="userLoading"
|
|
|
@change="bugUpdate(bug,'userInfo')"
|
|
|
- @focus="isCurrentHandlerOpen?searchCurrentHandler(bug.currentHandler):null;isCurrentHandlerOpen = false"
|
|
|
+ @focus="isCurrentHandlerOpen?searchCurrentHandler(bug.currentHandler, 1):null"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item,index) in currentHandlerOptions"
|
|
@@ -365,7 +367,7 @@
|
|
|
<el-form-item label="待测试时间">
|
|
|
<div class="tips">
|
|
|
<el-tooltip class="item" effect="dark" content="最后一次改成待测试状态的时间" placement="bottom-start">
|
|
|
- <i class="el-icon-warning" />
|
|
|
+ <!-- <i class="el-icon-warning" /> -->
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
<div style="padding-left: 15px" class="bug_manage_div"> :{{ bug.waitTestTime }}</div>
|
|
@@ -761,8 +763,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.$store.state.data.status = true
|
|
|
- this.$store.state.data.bizId = true
|
|
|
if (this.type !== 'page') {
|
|
|
var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
|
|
|
height -= 130
|
|
@@ -774,33 +774,46 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.bugGetEnum()
|
|
|
- this.bugGet(this.id, false).then(res => {
|
|
|
- const assignerItem = {
|
|
|
- idapName: null,
|
|
|
- name: this.bug.assignerList,
|
|
|
- idap: this.bug.assigner
|
|
|
- }
|
|
|
- this.assignerOptions.push(assignerItem)
|
|
|
- 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)
|
|
|
- }
|
|
|
- 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 // 客户端
|
|
|
- this.getVersionList(this.bug.appId)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.bugGet(this.id, false).then(res => {
|
|
|
+ if (this.bug.assignerList.search(',') !== -1) {
|
|
|
+ const data = this.bug.assignerList.split(',')
|
|
|
+ for (const i in data) {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.assignerList.split(',')[i]
|
|
|
+ assignerItem.idap = this.bug.assigner[i]
|
|
|
+ this.assignerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.assignerList
|
|
|
+ assignerItem.idap = this.bug.assigner
|
|
|
+ this.assignerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ if (this.bug.currentHandlerList.search(',') !== -1) {
|
|
|
+ for (const i in this.bug.currentHandlerList.split(',')) {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.currentHandlerList.split(',')[i]
|
|
|
+ assignerItem.idap = this.bug.currentHandler[i]
|
|
|
+ this.currentHandlerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.currentHandlerList
|
|
|
+ assignerItem.idap = this.bug.currentHandler
|
|
|
+ this.currentHandlerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ this.changeWidthOnBlur()
|
|
|
+ releaseList().then(res => {
|
|
|
+ this.appClientList = res.data.appClient // 客户端
|
|
|
+ this.getVersionList(this.bug.appId)
|
|
|
+ })
|
|
|
+ this.RichText()
|
|
|
})
|
|
|
- this.RichText()
|
|
|
})
|
|
|
this.getCommentList()
|
|
|
this.getBusinessLinePlatformModule()
|
|
@@ -808,36 +821,47 @@ export default {
|
|
|
this.taskEnumList = res.data // 所属任务
|
|
|
})
|
|
|
},
|
|
|
- destroyed() {
|
|
|
- this.$store.state.data.status = false
|
|
|
- this.$store.state.data.bizId = false
|
|
|
- },
|
|
|
methods: {
|
|
|
closeDrawer() {
|
|
|
this.$emit('close', false)
|
|
|
},
|
|
|
init() {
|
|
|
this.bugGet(this.id, false).then(res => {
|
|
|
- const assignerItem = {
|
|
|
- idapName: null,
|
|
|
- name: this.bug.assignerList,
|
|
|
- idap: this.bug.assigner
|
|
|
+ console.log(this.bug.currentHandler, 'cdsc')
|
|
|
+ console.log(this.bug.assigner, 'cdssdsc')
|
|
|
+ if (this.bug.assignerList.search(',') !== -1) {
|
|
|
+ for (const i in this.bug.assignerList.split(',')) {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.assignerList.split(',')[i]
|
|
|
+ assignerItem.idap = this.bug.assigner[i]
|
|
|
+ this.assignerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ const assignerItem = {
|
|
|
+ idapName: null,
|
|
|
+ name: this.bug.assignerList,
|
|
|
+ idap: this.bug.assigner
|
|
|
+ }
|
|
|
+ this.assignerOptions.push(assignerItem)
|
|
|
}
|
|
|
- this.assignerOptions.push(assignerItem)
|
|
|
- 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]
|
|
|
+ if (this.bug.currentHandlerList.search(',') !== -1) {
|
|
|
+ for (const i in this.bug.currentHandlerList.split(',')) {
|
|
|
+ const assignerItem = {}
|
|
|
+ assignerItem.idapName = ''
|
|
|
+ assignerItem.name = this.bug.currentHandlerList.split(',')[i]
|
|
|
+ assignerItem.idap = this.bug.currentHandler[i]
|
|
|
+ this.currentHandlerOptions.push(assignerItem)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ const assignerItem = {
|
|
|
+ idapName: null,
|
|
|
+ name: this.bug.currentHandlerList,
|
|
|
+ idap: this.bug.currentHandler
|
|
|
+ }
|
|
|
this.currentHandlerOptions.push(assignerItem)
|
|
|
}
|
|
|
- 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 => {
|
|
@@ -1004,6 +1028,8 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
this.bug = res.data
|
|
|
+ this.bug.currentHandler = res.data.currentHandler.split(',')
|
|
|
+ this.bug.assigner = res.data.assigner.split(',')
|
|
|
this.bugModel = JSON.parse(JSON.stringify(res.data))
|
|
|
this.bugDescribe = this.bug.bugDescribe
|
|
|
if (this.bugDescribe !== null) {
|
|
@@ -1071,13 +1097,20 @@ export default {
|
|
|
}
|
|
|
let objData
|
|
|
if (form) {
|
|
|
- objData = { bugBaseInfo: form, user: userData }
|
|
|
+ const data = form
|
|
|
+ data.currentHandler = form.currentHandler.join(',')
|
|
|
+ data.assigner = form.assigner.join(',')
|
|
|
+ objData = { bugBaseInfo: data, user: userData }
|
|
|
} else {
|
|
|
- objData = { bugBaseInfo: this.bug, user: userData }
|
|
|
+ const data = form
|
|
|
+ data.currentHandler = form.currentHandler.join(',')
|
|
|
+ data.assigner = form.assigner.join(',')
|
|
|
+ objData = { bugBaseInfo: data, user: userData }
|
|
|
}
|
|
|
return bugUpdate(objData).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.changeWidthOnBlur()
|
|
|
+ this.init()
|
|
|
this.bugModel = JSON.parse(JSON.stringify(this.bug))
|
|
|
this.$emit('update', false)
|
|
|
} else {
|
|
@@ -1113,15 +1146,33 @@ export default {
|
|
|
}))
|
|
|
})
|
|
|
},
|
|
|
- searchAssigner(val) {
|
|
|
- this.searchUser(val).then(res => {
|
|
|
- this.assignerOptions = res.data
|
|
|
- })
|
|
|
+ searchAssigner(val, key) {
|
|
|
+ if (key === 1) {
|
|
|
+ this.assignerOptions = []
|
|
|
+ val.map(item => {
|
|
|
+ this.searchUser(item).then(res => {
|
|
|
+ this.assignerOptions.push(res.data[0])
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.searchUser(val).then(res => {
|
|
|
+ this.assignerOptions = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
- searchCurrentHandler(val) {
|
|
|
- this.searchUser(val).then(res => {
|
|
|
- this.currentHandlerOptions = res.data
|
|
|
- })
|
|
|
+ searchCurrentHandler(val, key) {
|
|
|
+ if (key === 1) {
|
|
|
+ this.currentHandlerOptions = []
|
|
|
+ val.map(item => {
|
|
|
+ this.searchUser(item).then(res => {
|
|
|
+ this.currentHandlerOptions.push(res.data[0])
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.searchUser(val).then(res => {
|
|
|
+ this.currentHandlerOptions = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
bugNameChangeWith(val) {
|
|
|
if (this.showWordLimit) {
|
|
@@ -1451,7 +1502,7 @@ export default {
|
|
|
margin:10px 0 5px 0;
|
|
|
}
|
|
|
.tips {
|
|
|
- color:#F56C6C;
|
|
|
+ color:#DCDFE6;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.file-dialog {
|