|
@@ -26,6 +26,9 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<HcTable :loading="tableLoading" :column="tableColumn" :datas="tableData">
|
|
|
+ <template #conFileName="{row}">
|
|
|
+ <div class="text-link text-blue" @click="viewPdf(row)">{{ row?.conFileName }}</div>
|
|
|
+ </template>
|
|
|
<template #action="{row, index}">
|
|
|
<el-button type="primary" size="small" @click="editRowClick(row)">编辑</el-button>
|
|
|
<el-button type="danger" size="small" @click="delRowClick(row)">删除</el-button>
|
|
@@ -173,6 +176,7 @@ const uploadFileRef = ref(null)
|
|
|
const uploadOptions = {
|
|
|
headers: getTokenHeader(),
|
|
|
multiple: false,
|
|
|
+ size: 50
|
|
|
}
|
|
|
|
|
|
//上传文件
|
|
@@ -218,4 +222,13 @@ const formModalClose = () => {
|
|
|
formModal.value = false
|
|
|
formModalLoading.value = false
|
|
|
}
|
|
|
+
|
|
|
+//查看pdf
|
|
|
+const viewPdf = ({fileUrl}) => {
|
|
|
+ if (fileUrl) {
|
|
|
+ window.open(fileUrl, '_blank')
|
|
|
+ } else {
|
|
|
+ window.$message.error('暂无文件')
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|