Bläddra i källkod

修改简历文件展示

noob 4 år sedan
förälder
incheckning
08acfcd0e4

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

@@ -54,7 +54,9 @@
             </el-form-item>
             <el-form-item label="简历">
                 <!-- {{['女', '男'][info.delivererSex]}} -->
-                <el-link type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <el-link v-if="info.filePath" type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <div v-else>无简历文件</div>
+                <div style="font-size:12px">*doc/docx文件仅支持下载查看文件</div>
             </el-form-item>
           </el-form>
           <iframe v-else width="100%" height="100%" :src="$img + info.filePath"></iframe>

+ 4 - 2
src/views/candidateManage/resumeBin.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-02-07 18:00:09
+ * @LastEditTime : 2021-03-03 17:06:21
 -->
 <template>
 <div class="indexPage">
@@ -104,7 +104,9 @@
             </el-form-item>
             <el-form-item label="简历">
                 <!-- {{['女', '男'][info.delivererSex]}} -->
-                <el-link type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <el-link v-if="info.filePath" type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <div v-else>无简历文件</div>
+                <div style="font-size:12px">*doc/docx文件仅支持下载查看文件</div>
             </el-form-item>
             <el-form-item>
                 <el-button @click="closeVisible">取 消</el-button>

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

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 09:53:19
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-02-07 17:58:10
+ * @LastEditTime : 2021-03-03 17:04:59
 -->
 <template>
 <div class="indexPage">
@@ -101,7 +101,9 @@
             </el-form-item>
             <el-form-item label="简历">
                 <!-- {{['女', '男'][info.delivererSex]}} -->
-                <el-link type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <el-link v-if="info.filePath" type="primary" @click="openNewPage($img + info.filePath)">简历文件</el-link>
+                <div v-else>无简历文件</div>
+                <div style="font-size:12px">*doc/docx文件仅支持下载查看文件</div>
             </el-form-item>
             <el-form-item>
                 <el-button @click="closeVisible">取 消</el-button>