[update] 外标和企标详情页同步获取文件列表

This commit is contained in:
lideqin
2024-10-11 14:34:24 +08:00
parent 7398f3c604
commit 38ff1d0999
2 changed files with 6 additions and 6 deletions
@@ -317,16 +317,16 @@ export default {
if (res.success) {
this.detailData = res.result
this.dataSource = this.detailData.checkList
this.fileField.forEach(item => {
this.fileField.forEach(async item => {
if (this.detailData[item]) {
const fileList = this.detailData[item].split(',')
const fileInfoList = []
fileList.forEach(async id => {
for (const id of fileList) {
const fileInfo = await this.getFileInfo(id)
if (fileInfo) {
fileInfoList.push(fileInfo)
}
})
}
this.$set(this.detailData, item + 'List', fileInfoList)
}
})
@@ -308,16 +308,16 @@ export default {
this.operateApiFunc.getDetailData({ id, standardNumber, type: 1 }).then(res => {
if (res.success) {
this.detailData = Object.assign({}, res.result || {})
this.fileField.forEach(item => {
this.fileField.map(async item => {
if (this.detailData[item]) {
const fileList = this.detailData[item].split(',')
const fileInfoList = []
fileList.forEach(async id => {
for (const id of fileList) {
const fileInfo = await this.getFileInfo(id)
if (fileInfo) {
fileInfoList.push(fileInfo)
}
})
}
this.$set(this.detailData, item + 'List', fileInfoList)
}
})