|
@@ -69,7 +69,8 @@
|
|
|
placeholder="请选择"
|
|
|
multiple
|
|
|
:max="1"
|
|
|
- :keys="{ label: 'name', value: 'userId' }"
|
|
|
+ :keys="{ label: 'str', value: 'userId' }"
|
|
|
+ filterable
|
|
|
/>
|
|
|
<t-select
|
|
|
v-if="row.key === 'PROJECT_MANAGER'"
|
|
@@ -78,7 +79,8 @@
|
|
|
placeholder="请选择"
|
|
|
multiple
|
|
|
:max="1"
|
|
|
- :keys="{ label: 'name', value: 'userId' }"
|
|
|
+ :keys="{ label: 'str', value: 'userId' }"
|
|
|
+ filterable
|
|
|
/>
|
|
|
<t-select
|
|
|
v-if="row.key === 'ENGINEER'"
|
|
@@ -86,7 +88,8 @@
|
|
|
:options="options3"
|
|
|
placeholder="请选择"
|
|
|
multiple
|
|
|
- :keys="{ label: 'name', value: 'userId' }"
|
|
|
+ :keys="{ label: 'str', value: 'userId' }"
|
|
|
+ filterable
|
|
|
/>
|
|
|
</template>
|
|
|
<template #history="{ row }">
|
|
@@ -177,9 +180,22 @@ const getOptions = () => {
|
|
|
tableData.value[0].history = res.regionCoordinatorInfo.historicalList;
|
|
|
tableData.value[1].history = res.projectManagerInfo.historicalList;
|
|
|
tableData.value[2].history = res.engineerInfo.historicalList;
|
|
|
- options1.value = [...(res.regionCoordinatorInfo.canChooseList || [])];
|
|
|
- options2.value = [...(res.projectManagerInfo.canChooseList || [])];
|
|
|
- options3.value = [...(res.engineerInfo.canChooseList || [])];
|
|
|
+ options1.value = [...(res.regionCoordinatorInfo.canChooseList || [])].map(
|
|
|
+ (item) => {
|
|
|
+ item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
|
|
|
+ return item;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ options2.value = [...(res.projectManagerInfo.canChooseList || [])].map(
|
|
|
+ (item) => {
|
|
|
+ item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
|
|
|
+ return item;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ options3.value = [...(res.engineerInfo.canChooseList || [])].map((item) => {
|
|
|
+ item.str = `${item.supplierName}_${item.name}_${item.mobileNumber}`;
|
|
|
+ return item;
|
|
|
+ });
|
|
|
formData.allocationParams[0].userIdList = (
|
|
|
res.regionCoordinatorInfo.allocatedList || []
|
|
|
).map((item) => item.userId);
|