Selaa lähdekoodia

Merge branch 'qhse_fix' of shuzhihua/pms-iot-vue into master

yanghao 18 tuntia sitten
vanhempi
commit
4d771b1525
1 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 7 2
      src/views/pms/qhse/certificate.vue

+ 7 - 2
src/views/pms/qhse/certificate.vue

@@ -115,8 +115,13 @@
             <template #default="scope">
               <el-button link type="primary" @click="handleEdit(scope.row)"> 编辑 </el-button>
               <el-button link type="danger" @click="handleDelete(scope.row.id)"> 删除 </el-button>
-              <el-button link type="success" @click="handleViewImage(scope.row.certPic)">
-                查看
+              <el-button
+                link
+                type="success"
+                v-if="scope.row.certPic"
+                @click="handleViewImage(scope.row.certPic)"
+              >
+                查看证书
               </el-button>
             </template>
           </el-table-column>