|
|
@@ -59,8 +59,8 @@ export default { |
|
|
|
let arr = this.ids.split(",") |
|
|
|
let items = [] |
|
|
|
for (let s of arr) { |
|
|
|
if(this.GET_GLOBAL("user")[s]){ |
|
|
|
items.push({...this.GET_GLOBAL("user")[s],id:s}) |
|
|
|
if(this.GET_GLOBAL(type)[s]){ |
|
|
|
items.push({...this.GET_GLOBAL(type)[s],id:s}) |
|
|
|
} |
|
|
|
} |
|
|
|
this.items = items |
|
|
@@ -77,7 +77,7 @@ export default { |
|
|
|
this.type = type || 'user' |
|
|
|
|
|
|
|
const selectType = { user: '职员', department: '部门', company: '公司' }[type] |
|
|
|
this.SET_TITLE(`请选择一个${selectType}`) |
|
|
|
this.SET_TITLE(`请选择${selectType}`) |
|
|
|
}, |
|
|
|
|
|
|
|
findItem(arr,item){ |
|
|
|