|
@@ -12,7 +12,8 @@
|
|
|
@search="selectJobUserList"
|
|
|
@change="jobUserChange"
|
|
|
:field-names="{
|
|
|
- value:'name',
|
|
|
+ label:'name',
|
|
|
+ value:'jobUserID',
|
|
|
}"
|
|
|
>
|
|
|
<template #option="item">
|
|
@@ -257,7 +258,6 @@ export default defineComponent({
|
|
|
setProfessionId(value);
|
|
|
}
|
|
|
function jobUserChange(value: any) {
|
|
|
- formData.dataModel.name = value;
|
|
|
setJobUserId(value);
|
|
|
}
|
|
|
|
|
@@ -272,8 +272,9 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
function setJobUserId(value:any){
|
|
|
- const curJobUser = jobUserList.value.find(x => x.name === value);
|
|
|
+ const curJobUser = jobUserList.value.find(x => x.jobUserID === value);
|
|
|
if (curJobUser) {
|
|
|
+ formData.dataModel.jobUserName = curJobUser.name;
|
|
|
formData.dataModel.jobUserID = curJobUser.jobUserID;
|
|
|
} else {
|
|
|
formData.dataModel.jobUserID = null;
|