Commit f7312547 authored by jingnan's avatar jingnan 👀

工时分配操作者可以查询其他班组下的人员,人员取值接口修改

parent 0f9046d9
......@@ -22,6 +22,7 @@
size="small"
filterable
remote
:remote-method="getUserData"
:loading="loading"
@change="saveDxUserInfo"
>
......@@ -157,7 +158,7 @@ export default {
created() {
},
mounted() {
this.getUserData()
// this.getUserData()
},
methods: {
getTableData() {
......@@ -286,19 +287,14 @@ export default {
return true
}
},
getUserData() {
getUserData(query) {
const params = {
'pageFrom': 1,
'pageSize': 9999,
'pageSize': 100,
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'extProcessSkillId',
'operator': 'EQ',
'value': this.basicData.joExecutePlan && this.basicData.joExecutePlan.extProcessSkillId || this.basicData.extProcessSkillId || ''
}
],
'operator': 'AND'
}
......@@ -307,6 +303,7 @@ export default {
'operator': 'AND'
},
'openProps': [
{ 'name': 'extProcessSkill' },
{ 'name': 'dxUserInfo'
},
{ 'name': 'dxPost' }
......@@ -320,18 +317,21 @@ export default {
}
this.loading = true
this.userData = []
post(`/ExtProcessSkillUser/search`, params).then(res => {
post(`/ExtProcessSkillUser/queryAll?user=${query}`, params).then(res => {
res.items && res.items.content.map(item => {
this.userData.push(
{
label: `${item.dxUserInfo.name}(${item.dxUserInfo.number})`,
value: item.id
}
)
if (item.dxUserInfo && item.extProcessSkill) {
this.userData.push(
{
label: `${item.dxUserInfo.name}(${item.dxUserInfo.number})(${item.extProcessSkill.resCode}_${item.extProcessSkill.resName})`,
value: item.id
}
)
}
})
}).catch(err => {
console.log(err)
}).finally(() => {
this.loading = false
})
},
handleAdd() {
......
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