소스 검색

增加样式

文毅 1 년 전
부모
커밋
f3edcab3a6
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      h5/src/views/data/repertory.vue

+ 3 - 1
h5/src/views/data/repertory.vue

@@ -403,7 +403,9 @@
 						</el-table-column>
 						<el-table-column prop="attachment" label="附件" width="">
 							<template #default="scope">
-								<el-link :href="scope.row.attachment" target="_blank" type="primary">查看附件</el-link>
+								<el-link v-if="scope.row.attachment" :href="scope.row.attachment" target="_blank"
+									type="primary">查看附件</el-link>
+								<el-link v-else target="_blank" type="info" disabled>暂无附件</el-link>
 							</template>
 						</el-table-column>
 						<el-table-column fixed="right" label="操作" width="">