fix : 人员选择框,主次账号回显
This commit is contained in:
@@ -163,7 +163,8 @@ const selected = (select) => {
|
||||
let userInfo = {
|
||||
id: val.id,
|
||||
name: val.name,
|
||||
avatar: val.avatar,
|
||||
companyName: val.companyName,
|
||||
accountType: val.accountType,
|
||||
}
|
||||
userInfoList.push(userInfo)
|
||||
}
|
||||
|
||||
@@ -114,6 +114,8 @@ const selected = (select) => {
|
||||
for (const selectElement of select) {
|
||||
tableForm.value.projectChargePerson = selectElement.id
|
||||
tableForm.value.projectChargePersonName = selectElement.name
|
||||
tableForm.value.companyName = selectElement.companyName
|
||||
tableForm.value.accountType = selectElement.accountType
|
||||
}
|
||||
userList.value = select
|
||||
}
|
||||
@@ -159,6 +161,7 @@ const init = async () => {
|
||||
id: data.projectChargePerson,
|
||||
name: data.projectChargePersonName,
|
||||
companyName: data.companyName,
|
||||
accountType: data.accountType,
|
||||
}
|
||||
userList.value.push(userObj)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user