徐桐章 4 years ago
parent
commit
2d796c5a65

+ 6 - 3
src/views/candidateManage/candidateAll.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:17:25
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 19:07:37
+ * @LastEditTime: 2020-08-11 14:21:15
 -->
 <template>
   <div class="indexPage">
@@ -101,7 +101,7 @@ export default {
           },
           {
             label: '简历状态',
-            props: ''
+            props: 'state'
           },
           {
             label: '工作年限',
@@ -169,7 +169,10 @@ export default {
         })
         .then((res) => {
           this.totalrecords = res.totalrecords
-          this.tableList = res.list
+          this.tableList = res.list.map(item => {
+            item.state = item.isPass ? item.interviewResult === 0 ? '未通过' : item.interviewResult === 1 ? '已通过' : '已淘汰' : '未读'
+            return item
+          })
         })
     },
     queryDownList () {

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

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 15:25:06
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 19:27:12
+ * @LastEditTime: 2020-08-11 14:27:17
 -->
 <template>
   <div class="indexPage">
@@ -332,7 +332,6 @@ export default {
     }
   },
   mounted () {
-    this.queryData()
     this.queryDownList()
   },
   components: {
@@ -351,7 +350,10 @@ export default {
         })
         .then((res) => {
           this.totalrecords = res.totalrecords
-          this.tableList = res.list
+          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 : '' : ''
+            return item
+          })
         })
     },
     queryDownList () {
@@ -364,6 +366,8 @@ export default {
             value: item.id,
             label: item.positionName
           }))
+          this.downList1 = res.list
+          this.queryData()
         })
       this.$api
         .post('/template/queryTemplateList', {

+ 9 - 3
src/views/companyManage/formManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:24:44
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 14:48:01
+ * @LastEditTime: 2020-08-11 15:49:07
 -->
 <template>
   <div class="indexPage">
@@ -62,6 +62,8 @@ export default {
       page: 1,
       state: 0,
       form: {
+        formName: '',
+        formIntroduce: '',
         checkList: []
       },
       formConfigList: [],
@@ -227,6 +229,8 @@ export default {
     close () {
       this.dialogFormVisible = false
       this.form = {
+        formName: '',
+        formIntroduce: '',
         checkList: []
       }
     },
@@ -237,8 +241,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }

+ 19 - 9
src/views/companyManage/positionInfo.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 17:19:43
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 14:47:52
+ * @LastEditTime: 2020-08-11 15:53:18
 -->
 <template>
   <div class="indexPage">
@@ -36,12 +36,12 @@
           ></el-input>
           <div v-else>{{form.positionIntroduce}}</div>
         </el-form-item>
-        <el-form-item label="职位状态" prop="status">
-          <el-radio-group v-if="state!==2" v-model="form.status">
+        <el-form-item label="职位状态" prop="isDisable">
+          <el-radio-group v-if="state!==2" v-model="form.isDisable">
             <el-radio :label="0">启用</el-radio>
             <el-radio :label="1">禁用</el-radio>
           </el-radio-group>
-          <div v-else>{{['启用', '禁用'][form.status]}}</div>
+          <div v-else>{{['启用', '禁用'][form.isDisable]}}</div>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -59,14 +59,18 @@ export default {
       tableList: [],
       dialogFormVisible: false,
       page: 1,
-      form: {},
+      form: {
+        positionName: '',
+        positionIntroduce: '',
+        isDisable: 0
+      },
       totalrecords: 0,
       state: 0,
       pickList: [],
       rules: {
         positionName: [{ required: true, message: '请填写职位名称', trigger: 'change' }],
         positionIntroduce: [{ required: true, message: '请填写职位描述', trigger: 'change' }],
-        status: [{ required: true, message: '请选择职位状态', trigger: 'change' }]
+        isDisable: [{ required: true, message: '请选择职位状态', trigger: 'change' }]
       },
       list: [],
       btn: [
@@ -188,7 +192,11 @@ export default {
     },
     close () {
       this.dialogFormVisible = false
-      this.form = {}
+      this.form = {
+        positionName: '',
+        positionIntroduce: '',
+        isDisable: 0
+      }
     },
     callPage (val) {
       this.page = val
@@ -197,8 +205,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }

+ 5 - 3
src/views/companyManage/procedureManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:00:46
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-11 13:00:39
+ * @LastEditTime: 2020-08-11 15:48:51
 -->
 <template>
   <div class="indexPage">
@@ -325,8 +325,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }

+ 5 - 3
src/views/companyManage/sceneManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:12:21
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 14:48:10
+ * @LastEditTime: 2020-08-11 15:48:44
 -->
 <template>
   <div class="indexPage">
@@ -178,8 +178,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }

+ 8 - 6
src/views/companyManage/templateManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:28:13
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 14:48:18
+ * @LastEditTime: 2020-08-11 15:48:06
 -->
 <template>
   <div class="indexPage">
@@ -171,9 +171,9 @@ export default {
         .then((res) => {
           this.totalrecords = res.totalrecords
           this.tableList = res.list.map(item => {
-            item.sceneName = this.downList0.find(i => i.id === item.sceneId).sceneName
-            item.processName = this.downList1.find(i => i.id === item.processId).processName
-            item.formName = this.downList2.find(i => i.id === item.formId).formName
+            item.sceneName = this.downList0.some(i => i.id === item.sceneId) ? this.downList0.find(i => i.id === item.sceneId).sceneName : ''
+            item.processName = this.downList1.some(i => i.id === item.processId) ? this.downList1.find(i => i.id === item.processId).processName : ''
+            item.formName = this.downList2.some(i => i.id === item.formId) ? this.downList2.find(i => i.id === item.formId).formName : ''
             return item
           })
         })
@@ -262,8 +262,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }

+ 9 - 4
src/views/companyManage/videoManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-28 16:06:20
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 14:48:29
+ * @LastEditTime: 2020-08-11 15:45:22
 -->
 <template>
   <div class="indexPage">
@@ -58,7 +58,10 @@ export default {
     return {
       tableList: [],
       dialogFormVisible: false,
-      form: {},
+      form: {
+        videoName: '',
+        videoPath: ''
+      },
       page: 1,
       totalrecords: 0,
       state: 0,
@@ -196,8 +199,10 @@ export default {
   },
   watch: {
     dialogFormVisible: function (val, oldVla) {
-      if (this.$refs['form'] !== undefined) {
-        this.$refs['form'].resetFields()
+      if (this.state === 2) {
+        if (this.$refs['form'] !== undefined) {
+          this.$refs['form'].resetFields()
+        }
       }
     }
   }