fix : 人员选择框,主次账号回显

This commit is contained in:
2024-07-03 22:58:01 +08:00
parent bbc883a116
commit 842fa7b782
3 changed files with 9 additions and 3 deletions

View File

@@ -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)
}

View File

@@ -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)
}