徐桐章 4 years ago
parent
commit
0efe6a47d0

+ 4 - 1
src/views/candidateManage/candidateAll.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:17:25
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-11 14:21:15
+ * @LastEditTime: 2020-08-11 17:15:43
 -->
 <template>
   <div class="indexPage">
@@ -32,6 +32,7 @@ export default {
       page: 1,
       totalrecords: 0,
       pickList: [],
+      downList1: [],
       searchForm: {},
       info: {},
       list: [
@@ -170,6 +171,7 @@ 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.state = item.isPass ? item.interviewResult === 0 ? '未通过' : item.interviewResult === 1 ? '已通过' : '已淘汰' : '未读'
             return item
           })
@@ -185,6 +187,7 @@ export default {
             value: item.id,
             label: item.positionName
           }))
+          this.downList1 = res.list
         })
     },
     search (form) {

+ 3 - 3
src/views/candidateManage/resume.vue

@@ -4,13 +4,13 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:32:00
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 19:22:25
+ * @LastEditTime: 2020-08-11 17:18:52
 -->
 <template>
   <div>
     <el-dialog
       :visible.sync="dialogFormVisible"
-      width="1400px"
+      :width="info.filePath?'1400px':'700px'"
       :before-close="close"
       :close-on-click-modal="false"
     >
@@ -46,7 +46,7 @@
             <el-button type="success" @click="through(1)">标记为通过</el-button>
           </div>
         </div>
-        <div class="right">
+        <div class="right" v-if="info.filePath">
           <iframe width="100%" height="100%" :src="$img + info.filePath"></iframe>
         </div>
       </div>

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

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-10 20:09:51
+ * @LastEditTime: 2020-08-11 17:17:36
 -->
 <template>
   <div class="indexPage">
@@ -360,7 +360,7 @@ export default {
           }
         })
         .then((res) => {
-          window.open(this.$img + res.object.filePath)
+          res.object.filePath ? window.open(this.$img + res.object.filePath) : this.$message({ type: 'info', message: '无此人简历' })
         })
     },
     launch () {