徐桐章 4 jaren geleden
bovenliggende
commit
ed552c21f7
2 gewijzigde bestanden met toevoegingen van 10 en 8 verwijderingen
  1. 2 2
      src/views/candidateManage/candidateList.vue
  2. 8 6
      src/views/candidateManage/resume.vue

+ 2 - 2
src/views/candidateManage/candidateList.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 15:25:06
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-16 22:27:50
+ * @LastEditTime: 2020-08-17 09:40:34
 -->
 <template>
   <div class="candidateList">
@@ -611,7 +611,7 @@ export default {
     },
     undetermined (row, type = false) {
       let ids = type ? row : [row.id]
-      let resumeInfoStatusList = ids.map(item => ({ id: item, isPass: 3 }))
+      let resumeInfoStatusList = ids.map(item => ({ id: item, interviewResult: 3 }))
       this.$api
         .post('/resumeInfo/changeInterviewResult', {
           reqdata: {

+ 8 - 6
src/views/candidateManage/resume.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:32:00
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-16 22:27:19
+ * @LastEditTime: 2020-08-17 09:50:29
 -->
 <template>
   <div>
@@ -86,17 +86,19 @@ export default {
   },
   methods: {
     through (val) {
-      let resumeInfoStatusList = [this.info.id].map((item) => ({
-        id: item,
-        interviewResult: val
-      }))
+      let resumeInfoStatusList = this.info.isPass ? [this.info.id].map((item) => ({ id: item, interviewResult: val })) : [this.info.id].map((item) => ({ id: item, isPass: val }))
+      let url = this.info.isPass ? '/resumeInfo/changeInterviewResult' : '/resumeInfo/changeReadType'
       this.$api
-        .post('/resumeInfo/changeInterviewResult', {
+        .post(url, {
           reqdata: {
             resumeInfoStatusList
           }
         })
         .then((res) => {
+          this.$message({
+            type: 'success',
+            message: '修改成功!'
+          })
           this.close()
           this.queryData(this.searchForm)
         })