|
@@ -53,7 +53,7 @@
|
|
<template #dropdown>
|
|
<template #dropdown>
|
|
<el-dropdown-menu>
|
|
<el-dropdown-menu>
|
|
<template v-if="historyRportlist.length > 0">
|
|
<template v-if="historyRportlist.length > 0">
|
|
- <el-dropdown-item v-for="item in historyRportlist" :key="item.id" @click="viewHpdf(item)">{{ item.reportName }}{{ item.examiningTime }} </el-dropdown-item>
|
|
|
|
|
|
+ <el-dropdown-item v-for="item in historyRportlist" :key="item.id" @click="viewHpdf(item)">{{ item.reportName }} <span class="ml-2"> {{ item.examiningTime }}</span> </el-dropdown-item>
|
|
</template>
|
|
</template>
|
|
<template v-else> <el-dropdown-item>暂无数据</el-dropdown-item></template>
|
|
<template v-else> <el-dropdown-item>暂无数据</el-dropdown-item></template>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
@@ -232,6 +232,8 @@ import usePng from '~src/assets/testphoto/use.png'
|
|
import safePng from '~src/assets/testphoto/safe.png'
|
|
import safePng from '~src/assets/testphoto/safe.png'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
//消息数量
|
|
//消息数量
|
|
const props = defineProps(
|
|
const props = defineProps(
|
|
{
|
|
{
|
|
@@ -402,14 +404,29 @@ const getReportData = async () => {
|
|
})
|
|
})
|
|
reportLoading.value = false
|
|
reportLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- historyRportlist.value = getArrValue(data)
|
|
|
|
- console.log(data, 'data')
|
|
|
|
-
|
|
|
|
|
|
+ if (projectId.value === '1881978151540658177') {
|
|
|
|
+ // 使用本地测试数据
|
|
|
|
+ historyRportlist.value = [
|
|
|
|
+ {
|
|
|
|
+ id: '2',
|
|
|
|
+ reportName: '电子文件四性检测报告2025-03-10.pdf',
|
|
|
|
+ examiningTime: ' 17:08:09',
|
|
|
|
+ reportPdfUrl: 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250427/8e7de092fc09f757dadf0a639efb6519.pdf', // 添加空格保持一致的代码风格
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: '1',
|
|
|
|
+ reportName: '电子文件四性检测报告2024-09-23.pdf',
|
|
|
|
+ examiningTime: ' 10:32:08',
|
|
|
|
+ reportPdfUrl: 'https://xinan1.zos.ctyun.cn/blade-oss-chongqing/upload/20250427/42ba01b7be3b868b7d9b7142809ece7d.pdf',
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ ]
|
|
|
|
+ } else {
|
|
|
|
+ historyRportlist.value = getArrValue(data)
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
historyRportlist.value = []
|
|
historyRportlist.value = []
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
//查看历史报告
|
|
//查看历史报告
|
|
const viewHpdf = (item) => {
|
|
const viewHpdf = (item) => {
|