Browse Source

fix: 求职意向人员选择调整

zhangying 2 months ago
parent
commit
365bb03093
1 changed files with 4 additions and 3 deletions
  1. 4 3
      vue/src/views/jobUserManager/jobhunt/edit.vue

+ 4 - 3
vue/src/views/jobUserManager/jobhunt/edit.vue

@@ -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;