合同管理问题

This commit is contained in:
bb_pan 2025-02-12 13:50:38 +08:00
parent 796d16ac3f
commit d99e0f1380
1 changed files with 9 additions and 1 deletions

View File

@ -526,11 +526,19 @@ const onDialogClose_2 = () => {}
//
const onFileChange = (fileList: any) => {
addAndEditForm.value.fileInfoTempList = []
const origin = window.location.origin
const isProd = origin.indexOf('sgwpdm.ah.sgcc.com.cn') > -1
const fileListTemp = fileList.map((e: any) => {
console.log('111111', e)
let testUrl = ''
if (import.meta.env.VITE_API_URL == '/proxyApi') {
testUrl = e.url // -
} else {
testUrl = origin + '/ahbns/' + e.url // -
}
return {
fileName: e.name,
fileUrl: e.url,
fileUrl: isProd ? 'http://sgwpdm.ah.sgcc.com.cn/iws/ahbns/' + e.url : testUrl,
}
})