|
@@ -375,7 +375,6 @@ export default {
|
|
|
this.departmentName = this.department[0].label
|
|
|
},
|
|
|
changeTeam(command) {
|
|
|
- console.log(command, '团队')
|
|
|
if (command.length > 0) {
|
|
|
let [a, b, stop] = ['', '', true]
|
|
|
command.map(e => {
|
|
@@ -393,7 +392,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
const arr = command[0]
|
|
|
- console.log(this.datas, 'njdibcjbcjsdi')
|
|
|
if (this.teamData.teamCode === 0 && arr[0] === -1) { // 默认全选
|
|
|
this.teamData = { teamBizName: '团队', teamNames: [...this.datas], teamCode: 1 }
|
|
|
const list = this.datas.slice(1)
|
|
@@ -415,9 +413,9 @@ export default {
|
|
|
this.searchForm.teamIds = list.map(item => { return item[1] })
|
|
|
} else if (arr[0] !== -1) { // 基础多选
|
|
|
this.teamData.teamNames = command
|
|
|
+ const data = command.map(i => { return i[1] })
|
|
|
this.teamData.teamBizName = a + (b ? ' / ' + b : '')
|
|
|
- const list = this.datas.slice(1)
|
|
|
- this.searchForm.teamIds = list.map(item => { return item[1] })
|
|
|
+ this.searchForm.teamIds = data
|
|
|
}
|
|
|
}
|
|
|
} else {
|