|
@@ -38,8 +38,8 @@
|
|
|
<template #index="{ index }">
|
|
|
<span>{{ index + 1 }}</span>
|
|
|
</template>
|
|
|
- <template #secretLevelValue="{ row }">
|
|
|
- <span class="text-link">{{ row.secretLevelValue }}</span>
|
|
|
+ <template #secretLevelValue="{ row, index }">
|
|
|
+ <span class="text-link" @click="viewPdf(row, index)">{{ row.secretLevelValue }}</span>
|
|
|
</template>
|
|
|
<template #pageN="{ row }">
|
|
|
<span class="text-link">{{ row.pageN }}</span>
|
|
@@ -57,7 +57,7 @@
|
|
|
<script setup>
|
|
|
import { onMounted, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
-
|
|
|
+import { toPdfPage } from '~uti/btn-auth'
|
|
|
import { getArrValue } from 'js-fast-way'
|
|
|
|
|
|
|
|
@@ -87,6 +87,7 @@ onMounted(() => {
|
|
|
|
|
|
setTableColumns()
|
|
|
|
|
|
+ getTableData()
|
|
|
|
|
|
})
|
|
|
|
|
@@ -154,11 +155,43 @@ const setTableColumns = () => {
|
|
|
]
|
|
|
}
|
|
|
const tableData = ref([
|
|
|
- // { fileNumber: 'T.J01标', name: '张三', storageTimeValue: '2022-06-20 14:52:30', secretLevelValue: '电子档案移交接收登记表(TJ01标)', pageN: '电子档案移交接收登记表(TJ01标)' },
|
|
|
+ { fileNumber: '第一合同段', name: '', storageTimeValue: '2025年6月28日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第二合同段', name: '', storageTimeValue: '2025年6月15日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第三合同段', name: '', storageTimeValue: '2025年6月28日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第四合同段', name: '', storageTimeValue: '2025年7月1日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '机电标', name: '', storageTimeValue: '2025年6月20日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第一总监办', name: '', storageTimeValue: '2025年6月29日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第二总监办', name: '', storageTimeValue: '2025年6月18日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第三总监办', name: '', storageTimeValue: '2025年7月5日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '第四总监办', name: '', storageTimeValue: '2025年6月22日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+ { fileNumber: '机电标总监b办', name: '', storageTimeValue: '2025年7月4日', secretLevelValue: '电子文件归档登记表', pageN: '' },
|
|
|
+])
|
|
|
+const fileList = ref([
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/06a6e5f71d66798623097496cc321df1.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/325c9dce91b916fccb80b7ba73497654.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/cc97965300fe13d9a21002aee98f0071.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/37e618620dd51a9e4da8fa538f072063.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/32511fae0de31d5640d59bc3be14867b.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/7048622a0c02c00a790af2e17d08e2bc.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/29f39ee3725235112e3e03d7a222d5a2.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/a48dd837535301f8a5d7d30a5196c441.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/cd57867285b97d8579ab0700667d7971.pdf',
|
|
|
+ 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250724/79b6b1fe18c8d540ff982890b6925ffc.pdf',
|
|
|
])
|
|
|
+// const toPdfPage(data)
|
|
|
+const viewPdf = (row, index)=>{
|
|
|
+ toPdfPage(fileList.value[index])
|
|
|
+
|
|
|
+}
|
|
|
//获取数据
|
|
|
const tableLoading = ref(false)
|
|
|
const getTableData = async () => {
|
|
|
+
|
|
|
+ if (projectId.value !== '1881978151540658177') {
|
|
|
+ tableData.value = []
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// tableLoading.value = true
|
|
|
// const { error, code, data } = await tuningApi.pageByArchive({
|