fix(forceNotice): 修复附件预览API路径错误
将 xrAttachment 路径修正为 attachment,统一API接口调用, 确保所有强制通知模块的附件预览功能正常工作。
This commit is contained in:
parent
3466f9931d
commit
e00900fc49
|
|
@ -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 = []
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
|
|
|
||||||
|
|
@ -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 = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue