소스 검색

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

yanghao 18 시간 전
부모
커밋
4d771b1525
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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>