lrf402788946 5 лет назад
Родитель
Сommit
af15aca176
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      src/views/teacher/verify.vue

+ 7 - 2
src/views/teacher/verify.vue

@@ -14,7 +14,9 @@
                 {{ info.zynumber }}
               </el-form-item>
               <el-form-item label="职业资格证图片" prop="zynumberfile" v-if="info.zynumberfile">
-                <pic :src="info.zynumberfile"></pic>
+                <template v-for="(i, index) in info.zynumberfile">
+                  <pic :key="index" v-if="i && i.uri" :src="i.uri" />
+                </template>
               </el-form-item>
             </el-tab-pane>
             <el-tab-pane label="教学资料" name="3">
@@ -24,7 +26,7 @@
                     <template v-for="(url, uindex) in file.url">
                       <el-form-item :key="`${findex}-${uindex}`">
                         <el-tooltip content="点击下载" placement="top" effect="dark">
-                          <el-button type="text">{{ url.name }}</el-button>
+                          <el-button type="text" @click="toDownLoad(url.uri)">{{ url.name }}</el-button>
                         </el-tooltip>
                       </el-form-item>
                     </template>
@@ -118,6 +120,9 @@ export default {
       msg = `${this.keyWord}审核成功`;
       if (this.$checkRes(res, msg)) this.$router.push({ path: '/teacher/index' });
     },
+    toDownLoad(uri) {
+      window.open(uri);
+    },
   },
   computed: {
     status() {