fix(force-notice): 修复附件预览功能中的字段名大小写问题

修复了 forceNotice 模块中多个页面的 previewFile 方法中字段名大小写不一致的问题,
统一将 attachmentId、bizSeqNo、attachType 等字段名修改为小写形式 attachmentid、
bizseq、attachtype,确保附件预览功能正常工作。
This commit is contained in:
chenxf 2026-01-06 20:28:27 +08:00
parent 97cf733ae1
commit c40d55c2aa
5 changed files with 5 additions and 5 deletions

View File

@ -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.bizSeqNo}&attachType=${file.attachType}`, '_blank')
window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank')
},
getUsersWithPermission(isUpper) {
const ps = []

View File

@ -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.bizSeqNo}&attachType=${file.attachType}`, '_blank')
window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank')
},
getUsersWithPermission(isUpper) {
const ps = []

View File

@ -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.bizSeqNo}&attachType=${file.attachType}`, '_blank')
window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank')
},
getUsersWithPermission(isUpper) {
const ps = []

View File

@ -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.bizSeqNo}&attachType=${file.attachType}`, '_blank')
window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank')
},
getUsersWithPermission(isUpper) {
const ps = []

View File

@ -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.bizSeqNo}&attachType=${file.attachType}`, '_blank')
window.open(`${process.env.VUE_APP_BASE_API}/xrAttachment/getMaterial?id=${file.attachmentid || file?.response?.data?.attachmentid}&bizSeqNo=${file.bizseq}&attachType=${file.attachtype}`, '_blank')
},
getUsersWithPermission(isUpper) {
const ps = []