Commit dc5dce91 authored by jingnan's avatar jingnan 👀

站位关系维护人员传参修改

parent 0758475a
......@@ -81,6 +81,23 @@ export default {
if (this.item.secret) {
params.secretCode = this.$store.state.user.userInfo.secretCode
}
let subTypeName = ''
switch (this.item.title) {
case '计划员':
subTypeName = 'PositionPlanner'
break
case '工程师':
subTypeName = 'PositionEngineer'
break
case '站位长':
subTypeName = 'ExtPositionUserLink'
break
case '准备工':
subTypeName = 'PropareLink'
break
default:
break
}
getUsersByAccount(params).then(res => {
const arr = []
this.bindValue.forEach(item => {
......@@ -97,7 +114,7 @@ export default {
disabled: element.disabled,
target: element,
targetId: element.id,
subTypeName: this.basicData && this.basicData.propareLinks && this.basicData.propareLinks[0] && this.basicData.propareLinks[0].subTypeName || ''
subTypeName: this.basicData && this.basicData.propareLinks && this.basicData.propareLinks[0] && this.basicData.propareLinks[0].subTypeName || this.basicData.extPositionUserLinks && this.basicData.extPositionUserLinks[0] && this.basicData.extPositionUserLinks[0].subTypeName || subTypeName || ''
}
})
} else {
......
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