fix(force-notice): 修复附件预览功能中的字段名大小写问题
修复了 forceNotice 模块中多个页面的 previewFile 方法中字段名大小写不一致的问题, 统一将 attachmentId、bizSeqNo、attachType 等字段名修改为小写形式 attachmentid、 bizseq、attachtype,确保附件预览功能正常工作。
This commit is contained in:
parent
97cf733ae1
commit
c40d55c2aa
|
|
@ -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.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) {
|
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.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) {
|
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.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) {
|
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.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) {
|
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.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) {
|
getUsersWithPermission(isUpper) {
|
||||||
const ps = []
|
const ps = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue