From dbd2143d346526f91c6617629fd17ee0659637dd Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Thu, 31 Jul 2025 16:07:47 +0800
Subject: [PATCH] 20250731
---
package.json | 1 +
src/views/fourTestReport/index.vue | 30 +++++++++---------------------
2 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/package.json b/package.json
index 8b54828..27d01df 100644
--- a/package.json
+++ b/package.json
@@ -113,6 +113,7 @@
"@babel/parser": "^7.7.4",
"@babel/register": "7.0.0",
"@vue/babel-plugin-transform-vue-jsx": "^1.2.1",
+ "@vue/babel-preset-app": "^5.0.8",
"@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3",
diff --git a/src/views/fourTestReport/index.vue b/src/views/fourTestReport/index.vue
index 0d3c187..cd76041 100644
--- a/src/views/fourTestReport/index.vue
+++ b/src/views/fourTestReport/index.vue
@@ -10,12 +10,6 @@
文件名称
-
档案档号:
{{
(currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0))
- ? reportData.parent?.archivesNo ?? ''
+ ? (reportData.parent && reportData.parent.archivesNo) || ''
: (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0)
- ? getArchivesSubet(currentReportInfo.archivesId)?.archivesNo ?? ''
+ ? (getArchivesSubet(currentReportInfo.archivesId) && getArchivesSubet(currentReportInfo.archivesId).archivesNo) || ''
: ''
}}
档案题名:
{{
(currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0))
- ? reportData.parent?.archivesName ?? ''
+ ? (reportData.parent && reportData.parent.archivesName) || ''
: (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0)
- ? getArchivesSubet(currentReportInfo.archivesId)?.archivesName ?? ''
+ ? (getArchivesSubet(currentReportInfo.archivesId) && getArchivesSubet(currentReportInfo.archivesId).archivesName) || ''
: ''
}}
@@ -90,7 +84,7 @@
真实性检测
-
+
@@ -121,7 +115,7 @@
完整性检测
-
+
@@ -152,7 +146,7 @@
可用性检测
-
+
@@ -183,7 +177,7 @@
安全性检测
-
+
@@ -252,19 +246,13 @@ export default {
previewPrintBtnLabel: '预览结束,开始打印',
zIndex: 20002, // 预览窗口的z-index,默认是20002,最好比默认值更高
extraCss: '', // 打印可引入外部的一个css文件
- extraHead: ',', // 打印头部文字
previewBeforeOpenCallback() { console.log('正在加载预览窗口!') }, // 预览窗口打开之前的callback
previewOpenCallback() { console.log('已经加载完预览窗口,预览打开了!') }, // 预览窗口打开时的callback
beforeOpenCallback() { console.log('开始打印之前!') }, // 开始打印之前的callback
openCallback() { console.log('执行打印了!') }, // 调用打印时的callback
closeCallback() { console.log('关闭了打印工具!') }, // 关闭打印的callback(无法区分确认or取消)
clickMounted() { console.log('点击v-print绑定的按钮了!') },
- // url: 'http://192.168.99.67:11100/downloadFile/category/AE8B188F0C0314F9BE31B8/82FBCAE96CBC9F50809838/7f3df862-f36d-4061-9c3e-e81556420742.pdf', // 打印指定的URL,确保同源策略相同
- // asyncUrl (reslove) {
- // setTimeout(() => {
- // reslove('http://localhost:8080/')
- // }, 2000)
- // },
standard: '',
extarCss: ''
}