瀏覽代碼

增加样式

文毅 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="">