fix : 修复研究人员每行的回显

This commit is contained in:
2024-07-03 20:47:47 +08:00
parent 9edf5d484f
commit 0f0fa0f4e0
9 changed files with 63 additions and 816 deletions

View File

@@ -208,6 +208,14 @@ const researchOptions = ref([])
const showPersonnelPicker = (row, index) => {
currentRow.value = row
currentIndex.value = index
if(row.companyName){
let userObj = {
id: row.researchPersonnelId,
name: row.researchPersonnel,
companyName: row.companyName,
}
userList.value.push(userObj)
}
userPicker.value.showUserPicker()
}
const selected = (select) => {
@@ -413,12 +421,6 @@ const getDetailList = async () => {
if (code === 1000) {
data.rows.forEach(item => {
item.researchPersonnelId = Number(item.researchPersonnelId)
let userObj = {
id: item.researchPersonnelId,
name: item.researchPersonnel,
companyName: item.companyName,
}
userList.value.push(userObj)
})
formData.value.tableData = data.rows
nextTick(() => {