xtz 4 年 前
コミット
77873ee06a

+ 8 - 5
src/views/candidateManage/candidateAll.vue

@@ -224,7 +224,7 @@ export default {
           },
           {
             label: '面试应聘职位',
-            props: 'desiredPositionId'
+            props: 'positionName'
           },
           {
             label: '通知面试时间',
@@ -249,7 +249,7 @@ export default {
         width: 200,
         handle: [
           {
-            title: '修改简历',
+            title: '修改信息',
             method: 'update',
             type: 'info'
           },
@@ -282,7 +282,9 @@ export default {
         .then((res) => {
           this.totalrecords = res.totalrecords
           this.tableList = res.list.map(item => {
-            item.desiredPositionId = item.desiredPositionId ? this.downList1.some(i => i.id === item.desiredPositionId) ? this.downList1.find(i => i.id === item.desiredPositionId).positionName : '' : ''
+            item.delivererSex = item.delivererSex - 0 || 0
+            item.desiredPositionId = item.desiredPositionId - 0 || null
+            // item.desiredPositionId = item.desiredPositionId ? this.downList1.some(i => i.id === item.desiredPositionId) ? this.downList1.find(i => i.id === item.desiredPositionId).positionName : '' : ''
             item.state = item.interviewResult ? ['', '已通过', '未通过'][item.interviewResult] : item.isSendInviteMail ? '已通知' : ['未通过', '已通过', '已淘汰', '待定'][item.isPass]
             return item
           })
@@ -304,9 +306,10 @@ export default {
     search (form) {
       this.queryData(form)
     },
-    update ({ id }) {
+    update (row) {
       this.openDia()
-      this.form.id = id
+      console.log(row)
+      this.form = Object.assign({}, row)
     },
     submit () {
       let a

+ 11 - 7
src/views/candidateManage/candidateList.vue

@@ -39,6 +39,7 @@
       @del="del"
       @undetermined="undetermined"
       @openDia="openDia"
+      @update="update"
       @selection-change="selection"
       id="id"
     ></v-table>
@@ -359,7 +360,7 @@ export default {
           },
           {
             label: '面试应聘职位',
-            props: 'desiredPositionId'
+            props: 'positionName'
           },
           {
             label: '工作年限',
@@ -410,7 +411,7 @@ export default {
             type: 'danger'
           },
           {
-            title: '修改简历',
+            title: '修改信息',
             method: 'update',
             type: 'info'
           }
@@ -443,7 +444,7 @@ export default {
           },
           {
             label: '面试应聘职位',
-            props: 'desiredPositionId'
+            props: 'positionName'
           },
           {
             label: '工作年限',
@@ -512,7 +513,7 @@ export default {
           },
           {
             label: '面试应聘职位',
-            props: 'desiredPositionId'
+            props: 'positionName'
           },
           {
             label: '工作年限',
@@ -572,7 +573,9 @@ export default {
         .then((res) => {
           this.totalrecords = res.totalrecords
           this.tableList = res.list.map(item => {
-            item.desiredPositionId = item.desiredPositionId ? this.downList1.some(i => i.id === item.desiredPositionId) ? this.downList1.find(i => i.id === item.desiredPositionId).positionName : '' : ''
+            item.delivererSex = item.delivererSex - 0 || 0
+            item.desiredPositionId = item.desiredPositionId - 0 || null
+            // item.desiredPositionId = item.desiredPositionId ? this.downList1.some(i => i.id === item.desiredPositionId) ? this.downList1.find(i => i.id === item.desiredPositionId).positionName : '' : ''
             return item
           })
         })
@@ -735,7 +738,8 @@ export default {
     },
     update (row) {
       this.openVisible()
-      this.uform = row
+      console.log(row)
+      this.uform = Object.assign({}, row)
     },
     submit () {
       let a
@@ -835,7 +839,7 @@ export default {
               type: 'danger'
             },
             {
-              title: '修改简历',
+              title: '修改信息',
               method: 'update',
               type: 'info'
             }

+ 4 - 4
src/views/candidateManage/resumeList.vue

@@ -128,7 +128,7 @@
         </el-form-item>
         <el-form-item>
           <el-button @click="closeDia">取 消</el-button>
-          <el-button type="primary" @click="submit">修改简历</el-button>
+          <el-button type="primary" @click="submit">修改信息</el-button>
         </el-form-item>
       </el-form>
     </el-dialog>
@@ -310,7 +310,7 @@ export default {
             type: 'danger'
           },
           {
-            title: '修改简历',
+            title: '修改信息',
             method: 'update',
             type: 'info'
           }
@@ -592,7 +592,7 @@ export default {
     },
     update (row) {
       this.openDia()
-      this.uform = row
+      this.uform = Object.assign({}, row)
     },
     submit () {
       let a
@@ -671,7 +671,7 @@ export default {
               type: 'warning'
             },
             {
-              title: '修改简历',
+              title: '修改信息',
               method: 'update',
               type: 'info'
             }