fix : 人员选择框,主次账号回显
This commit is contained in:
@@ -153,8 +153,6 @@ import {
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||
import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
||||
import {ref} from "vue";
|
||||
|
||||
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
||||
|
||||
const userList = ref([])
|
||||
@@ -213,6 +211,7 @@ const showPersonnelPicker = (row, index) => {
|
||||
id: row.researchPersonnelId,
|
||||
name: row.researchPersonnel,
|
||||
companyName: row.companyName,
|
||||
accountType: row.accountType,
|
||||
}
|
||||
userList.value=[userObj]
|
||||
}
|
||||
@@ -229,6 +228,8 @@ const selected = (select) => {
|
||||
if (index === currentIndex.value) {
|
||||
item.researchPersonnelId = select[0].id
|
||||
item.researchPersonnel = select[0].name
|
||||
item.companyName = select[0].companyName
|
||||
item.accountType = select[0].accountType
|
||||
}
|
||||
})
|
||||
// userList.value=select
|
||||
@@ -382,6 +383,7 @@ const handleResubmit = (instance) => {
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log('formData.value.apportionmentMonth',new Date(formData.value.apportionmentMonth))
|
||||
let params = {
|
||||
allocationId: formData.value.allocationId,
|
||||
shareName: formData.value.shareName,
|
||||
|
||||
@@ -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