From abf9a8727876e79d47f02264f89a96ddab582d46 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 11 Jul 2026 10:55:25 +0800
Subject: [PATCH] feat:重新提交
---
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue b/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
index f90cf04..0b8fcb2 100644
--- a/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
+++ b/applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
@@ -279,12 +279,20 @@
if (!row.link) {
ElMessage.warning('文件链接不存在')
} else if (allSupportedExtensions.includes(fileType)){
- let url = `${VITE_APP_PREVIEW_URL}/onlinePreview?url=` + encodeURIComponent(Base64.encode(row.link))
- // word/pdf 以可编辑的 html 模式打开(与 excel 一致)
- if (editableOfficeTypes.includes(fileType)) {
- url += '&officePreviewType=html'
- }
- window.open(url)
+ // let url = `${VITE_APP_PREVIEW_URL}/onlinePreview?url=` + encodeURIComponent(Base64.encode(row.link))
+ // // word/pdf 以可编辑的 html 模式打开(与 excel 一致)
+ // if (editableOfficeTypes.includes(fileType)) {
+ // url += '&officePreviewType=html'
+ // }
+ // window.open(url)
+ const route = router.resolve({
+ path: '/documentPreview/officeEdit',
+ query: {
+ attachId: row.id,
+ mode: 'view',
+ },
+ })
+ window.open(route.href, '_blank')
} else {
ElMessage.warning(`${fileType}文件格式,可以下载再查看`)
}
@@ -304,6 +312,7 @@
path: '/documentPreview/officeEdit',
query: {
attachId: row.id,
+ mode: 'edit',
},
})
window.open(route.href, '_blank')
--
Gitblit v1.9.3