事业部确认人功能开发
This commit is contained in:
@@ -531,7 +531,6 @@ const changeFun = async (val: any, type: string) => {
|
||||
}
|
||||
if (editFormInfo.value.simType) {
|
||||
await disposeDeptMember();
|
||||
// formData.pMemberList = await disposeDeptMember();
|
||||
}
|
||||
}
|
||||
if (nodeId) {
|
||||
@@ -634,7 +633,6 @@ const changeFun = async (val: any, type: string) => {
|
||||
if (val.key === 'simType') {
|
||||
if (editFormInfo.value.projectId) {
|
||||
await disposeDeptMember();
|
||||
// formData.pMemberList = await disposeDeptMember();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -656,6 +654,33 @@ const disposeDeptMember = async () => {
|
||||
const res = await listDeptApi({ current: 1, size: 999 });
|
||||
deptList.value = res.data.data;
|
||||
}
|
||||
if (simulationType.value !== '有限元仿真') {
|
||||
for (let index = 0; index < deptList.value.length; index++) {
|
||||
if (simulationType.value === deptList.value[index].deptName) {
|
||||
editFormInfo.value.pMemberList =
|
||||
deptList.value[index].userId + '-' + deptList.value[index].deptName;
|
||||
pMemberId = deptList.value[index].userId;
|
||||
}
|
||||
}
|
||||
return pMemberId;
|
||||
}
|
||||
const disFun = (simType: string) => {
|
||||
for (let index = 0; index < deptList.value.length; index++) {
|
||||
if (deptList.value[index].deptName.includes(simType)) {
|
||||
editFormInfo.value.pMemberList =
|
||||
deptList.value[index].userId + '-' + deptList.value[index].deptName;
|
||||
pMemberId = deptList.value[index].userId;
|
||||
}
|
||||
}
|
||||
return pMemberId;
|
||||
};
|
||||
if (editFormInfo.value.simType.includes('流体')) {
|
||||
return disFun('流体');
|
||||
}
|
||||
|
||||
if (editFormInfo.value.simType.includes('热力学')) {
|
||||
return disFun('热力学');
|
||||
}
|
||||
const matchingDeptList = deptList.value.filter((item: any) => {
|
||||
return item.deptName.indexOf(currentProjectUndertaker.value) !== -1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user