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