From e00900fc49d2f6a2c823f046e8721af3927a127e Mon Sep 17 00:00:00 2001 From: chenxf Date: Wed, 7 Jan 2026 10:48:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(forceNotice):=20=E4=BF=AE=E5=A4=8D=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E9=A2=84=E8=A7=88API=E8=B7=AF=E5=BE=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 xrAttachment 路径修正为 attachment,统一API接口调用, 确保所有强制通知模块的附件预览功能正常工作。 --- src/views/forceNotice/force/handle.vue | 2 +- src/views/forceNotice/inclusion/handle.vue | 2 +- src/views/forceNotice/liccan/handle.vue | 2 +- src/views/forceNotice/recovery/handle.vue | 2 +- src/views/forceNotice/remove/handle.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/forceNotice/force/handle.vue b/src/views/forceNotice/force/handle.vue index 45af18c..07e20ca 100644 --- a/src/views/forceNotice/force/handle.vue +++ b/src/views/forceNotice/force/handle.vue @@ -697,7 +697,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/attachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/inclusion/handle.vue b/src/views/forceNotice/inclusion/handle.vue index 171d28b..8ac9aee 100644 --- a/src/views/forceNotice/inclusion/handle.vue +++ b/src/views/forceNotice/inclusion/handle.vue @@ -671,7 +671,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/attachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/liccan/handle.vue b/src/views/forceNotice/liccan/handle.vue index a6cd35c..70f077d 100644 --- a/src/views/forceNotice/liccan/handle.vue +++ b/src/views/forceNotice/liccan/handle.vue @@ -533,7 +533,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/attachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/recovery/handle.vue b/src/views/forceNotice/recovery/handle.vue index 378b093..394f089 100644 --- a/src/views/forceNotice/recovery/handle.vue +++ b/src/views/forceNotice/recovery/handle.vue @@ -587,7 +587,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/attachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = [] diff --git a/src/views/forceNotice/remove/handle.vue b/src/views/forceNotice/remove/handle.vue index 7a879b7..98e0175 100644 --- a/src/views/forceNotice/remove/handle.vue +++ b/src/views/forceNotice/remove/handle.vue @@ -581,7 +581,7 @@ export default { }) }, previewFile(file) { - window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') + window.open(`${process.env.VUE_APP_BASE_API}/attachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank') }, getUsersWithPermission(isUpper) { const ps = []