Commit c7dc9ed0 by qinjianhui

fix: 问题修改

parent 79a41f40
......@@ -91,7 +91,9 @@
style="width: 120px"
placeholder="请选择"
clearable
v-model="searchForm.leader"
multiple
collapse-tags
v-model="searchForm.leaders"
>
<el-option
v-for="user in userList"
......@@ -480,7 +482,7 @@ export default {
selections: [],
is_tab: '1',
statusCode: 'PRE_HANDLING',
searchForm: { timeProp: 'create_time', leader: '', prop: 'createTime' },
searchForm: { timeProp: 'create_time', leaders: [], prop: 'createTime' },
isEdit: false,
sourceData: [],
currentRowId: '',
......@@ -812,7 +814,7 @@ export default {
},
handleNodeClick(data) {
if (data.statusCode !== 'IN_PROGRESS') {
this.searchForm.leader = ''
this.searchForm.leaders = ''
}
this.statusCode = data.statusCode
this.getlist()
......@@ -829,6 +831,7 @@ export default {
startTime: this.periodTime && this.periodTime[0],
endTime: this.periodTime && this.periodTime[1],
...this.searchForm,
leaders: this.searchForm.leaders && this.searchForm.leaders.join(','),
})
.then((res) => {
this.sourceData = res.data.records
......@@ -937,11 +940,11 @@ export default {
if (val === 'IN_PROGRESS') {
this.$set(
this.searchForm,
'leader',
this.userInfo.id,
'leaders',
[this.userInfo.id],
)
} else {
this.$set(this.searchForm, 'leader', '')
this.$set(this.searchForm, 'leaders', [])
}
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment