fix(forceNotice): 修复附件预览API路径错误

将 xrAttachment 路径修正为 attachment,统一API接口调用,
确保所有强制通知模块的附件预览功能正常工作。
This commit is contained in:
chenxf 2026-01-07 10:48:15 +08:00
parent 3466f9931d
commit e00900fc49
5 changed files with 5 additions and 5 deletions

View File

@ -697,7 +697,7 @@ export default {
}) })
}, },
previewFile(file) { 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) { getUsersWithPermission(isUpper) {
const ps = [] const ps = []

View File

@ -671,7 +671,7 @@ export default {
}) })
}, },
previewFile(file) { 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) { getUsersWithPermission(isUpper) {
const ps = [] const ps = []

View File

@ -533,7 +533,7 @@ export default {
}) })
}, },
previewFile(file) { 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) { getUsersWithPermission(isUpper) {
const ps = [] const ps = []

View File

@ -587,7 +587,7 @@ export default {
}) })
}, },
previewFile(file) { 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) { getUsersWithPermission(isUpper) {
const ps = [] const ps = []

View File

@ -581,7 +581,7 @@ export default {
}) })
}, },
previewFile(file) { 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) { getUsersWithPermission(isUpper) {
const ps = [] const ps = []