|
@@ -35,7 +35,11 @@
|
|
|
</HcTooltip>
|
|
|
</template>
|
|
|
|
|
|
- <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCheck @selection-change="tableSelection"/>
|
|
|
+ <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCheck @selection-change="tableSelection">
|
|
|
+ <template #name="{row}">
|
|
|
+ <span class="text-link" @click="viewPdf(row.id)">{{row?.name}}</span>
|
|
|
+ </template>
|
|
|
+ </HcTable>
|
|
|
<template #action>
|
|
|
<HcPages :pages="searchForm" @change="pageChange"/>
|
|
|
</template>
|
|
@@ -188,11 +192,6 @@ const getClassIfyList = async () => {
|
|
|
const TreeAutoExpandKeys = ref(getStoreValue('scanningTreeExpandKeys') || [])
|
|
|
|
|
|
//项目树被点击
|
|
|
-const treeNodeInfo = ref({})
|
|
|
-const treeDataInfo = ref({})
|
|
|
-const nodeIds = ref('')
|
|
|
-const isStorageNode = ref(0)
|
|
|
-const isBuiltDrawing = ref(0)
|
|
|
const nodeElTreeClick = ({node, data, keys, key}) => {
|
|
|
console.log('点击',data);
|
|
|
searchForm.value.total = 0
|
|
@@ -203,6 +202,23 @@ const nodeElTreeClick = ({node, data, keys, key}) => {
|
|
|
//缓存展开的节点
|
|
|
setStoreValue('scanningTreeExpandKeys', keys)
|
|
|
}
|
|
|
+//预览pdf
|
|
|
+const viewPdf=async(id)=>{
|
|
|
+ window.$message?.info('预览案卷需要合并pdf,需要一点时间')
|
|
|
+ const { error, code, data,msg } = await tuningApi.printArchive({
|
|
|
+ id:id
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ if(data){
|
|
|
+ window.open(data, '_blank')
|
|
|
+ }else{
|
|
|
+ window.$message?.warning('文件不存在')
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ window.$message?.warning(msg)
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|