Commit c7dc9ed0 by qinjianhui

fix: 问题修改

parent 79a41f40
...@@ -91,7 +91,9 @@ ...@@ -91,7 +91,9 @@
style="width: 120px" style="width: 120px"
placeholder="请选择" placeholder="请选择"
clearable clearable
v-model="searchForm.leader" multiple
collapse-tags
v-model="searchForm.leaders"
> >
<el-option <el-option
v-for="user in userList" v-for="user in userList"
...@@ -480,7 +482,7 @@ export default { ...@@ -480,7 +482,7 @@ export default {
selections: [], selections: [],
is_tab: '1', is_tab: '1',
statusCode: 'PRE_HANDLING', statusCode: 'PRE_HANDLING',
searchForm: { timeProp: 'create_time', leader: '', prop: 'createTime' }, searchForm: { timeProp: 'create_time', leaders: [], prop: 'createTime' },
isEdit: false, isEdit: false,
sourceData: [], sourceData: [],
currentRowId: '', currentRowId: '',
...@@ -812,7 +814,7 @@ export default { ...@@ -812,7 +814,7 @@ export default {
}, },
handleNodeClick(data) { handleNodeClick(data) {
if (data.statusCode !== 'IN_PROGRESS') { if (data.statusCode !== 'IN_PROGRESS') {
this.searchForm.leader = '' this.searchForm.leaders = ''
} }
this.statusCode = data.statusCode this.statusCode = data.statusCode
this.getlist() this.getlist()
...@@ -829,6 +831,7 @@ export default { ...@@ -829,6 +831,7 @@ export default {
startTime: this.periodTime && this.periodTime[0], startTime: this.periodTime && this.periodTime[0],
endTime: this.periodTime && this.periodTime[1], endTime: this.periodTime && this.periodTime[1],
...this.searchForm, ...this.searchForm,
leaders: this.searchForm.leaders && this.searchForm.leaders.join(','),
}) })
.then((res) => { .then((res) => {
this.sourceData = res.data.records this.sourceData = res.data.records
...@@ -937,11 +940,11 @@ export default { ...@@ -937,11 +940,11 @@ export default {
if (val === 'IN_PROGRESS') { if (val === 'IN_PROGRESS') {
this.$set( this.$set(
this.searchForm, this.searchForm,
'leader', 'leaders',
this.userInfo.id, [this.userInfo.id],
) )
} else { } 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