|
|
@@ -7,7 +7,7 @@ |
|
|
|
<!-- </view> --> |
|
|
|
<view> |
|
|
|
<view class="pearson"> |
|
|
|
已选择人员:{{names||'暂无'}} |
|
|
|
已选择:{{names||'暂无'}} |
|
|
|
</view> |
|
|
|
<view style="display: flex;justify-content: center;"> |
|
|
|
<view class="cu-btn sm line-red" @tap="itemClear" style="font-size: 16px;margin: 4px;"> |
|
|
@@ -64,8 +64,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 |
|
|
@@ -82,7 +82,7 @@ export default { |
|
|
|
this.type = type || 'user' |
|
|
|
|
|
|
|
const selectType = { user: '职员', department: '部门', company: '公司' }[type] |
|
|
|
this.SET_TITLE(`请选择一个${selectType}`) |
|
|
|
this.SET_TITLE(`请选择${selectType}`) |
|
|
|
}, |
|
|
|
|
|
|
|
findItem(arr,item){ |
|
|
|