Explorar o código

fix 绑定问题

wolyshaw %!s(int64=4) %!d(string=hai) anos
pai
achega
11620a3bc9
Modificáronse 2 ficheiros con 24 adicións e 4 borrados
  1. 14 3
      src/views/HumanResources/form.vue
  2. 10 1
      src/views/HumanResources/index.vue

+ 14 - 3
src/views/HumanResources/form.vue

@@ -119,7 +119,15 @@
               <th class="description-label">信息来源</th>
               <td class="description-content">
                 <el-form-item prop="sourceFrom">
-                  <el-input size="mini" v-model.trim="form.sourceFrom" placeholder="请输入信息来源"/>
+                  <el-select v-model.trim="form.sourceFrom"
+                              clearable
+                              filterable
+                              placeholder="请选择信息来源">
+                    <el-option label="BOSS"
+                                value="BOSS"></el-option>
+                    <el-option label="转介绍"
+                                value="转介绍"></el-option>
+                  </el-select>
                 </el-form-item>
               </td>
               <th class="description-label">其他综合情况</th>
@@ -444,13 +452,16 @@ export default {
       } else {
         this.form.educations = [{level: '', school: '', year: ''}]
       }
+      this.form = {...this.form}
     },
     addEducation() {
-      this.form.educations = [...this.educations, {level: '', school: '', year: ''}]
+      this.form.educations = [...this.form.educations, {level: '', school: '', year: ''}]
+      this.form = {...this.form}
     },
     removeEducation(index) {
       this.form.educations[index] = null
-      this.form.educations = this.educations.filter(item => !!item)
+      this.form.educations = this.form.educations.filter(item => !!item)
+      this.form = {...this.form}
     },
     onTypeSubmit() {
       this.$refs['ruleForm'].validate(valid => {

+ 10 - 1
src/views/HumanResources/index.vue

@@ -12,7 +12,15 @@
           <el-input placeholder="姓名手机号" v-model.trim="searchForm.userNameOrIdOrMobile" clearable></el-input>
         </el-form-item>
         <el-form-item>
-          <el-input placeholder="信息来源" v-model.trim="searchForm.sourceFrom" clearable></el-input>
+          <el-select v-model.trim="searchForm.sourceFrom"
+                     clearable
+                     filterable
+                     placeholder="请选择信息来源">
+            <el-option label="BOSS"
+                       value="BOSS"></el-option>
+            <el-option label="转介绍"
+                       value="转介绍"></el-option>
+          </el-select>
         </el-form-item>
         <el-form-item>
           <el-select v-model.trim="searchForm.jobNature"
@@ -143,6 +151,7 @@
           <el-table-column align="center" prop="emergencyContactName" label="紧急联系人"></el-table-column>
           <el-table-column align="center" prop="emergencyContactRelation" label="紧急联系人关系"></el-table-column>
           <el-table-column align="center" prop="emergencyContactPhone" label="紧急联系人电话"></el-table-column>
+          <el-table-column align="center" prop="updateTime" label="最后一次操作时间时间"></el-table-column>
           <el-table-column align="center" prop="resignationDate" label="离职时间">
             <template slot-scope="scope">
               {{ scope.row.resignationDate | dayjsFormat}}