[update] 企标更改流程传replaceFileId字段取值修改
This commit is contained in:
@@ -427,6 +427,7 @@ export default {
|
||||
]
|
||||
},
|
||||
standardCanOnlineEditFile: '', // 标准文件中本身就可以在线预览的文件
|
||||
replaceFileId: '', // 提交或保存时要传给replaceFileId的
|
||||
onEditFile: '' // 在线编辑的文件id
|
||||
}
|
||||
},
|
||||
@@ -482,8 +483,10 @@ export default {
|
||||
async getStandardFile (standardNumber) {
|
||||
await getStandardEditFileByNo({ standardNo: standardNumber }).then(res => {
|
||||
if (res.success) {
|
||||
const fileId = res.result ? res.result.replaceFileId : ''
|
||||
const fileId = res.result ? res.result.id : ''
|
||||
this.standardCanOnlineEditFile = fileId
|
||||
const replaceFileId = res.result ? res.result.replaceFileId : ''
|
||||
this.replaceFileId = replaceFileId
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -503,7 +506,7 @@ export default {
|
||||
}
|
||||
data.dataSource = this.dataSource
|
||||
data.onEditFile = this.onEditFile
|
||||
data.replaceFileId = this.standardCanOnlineEditFile
|
||||
data.replaceFileId = this.replaceFileId
|
||||
return data
|
||||
},
|
||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||
@@ -517,7 +520,7 @@ export default {
|
||||
data.formInline = { ...formInline, ...this.formInline }
|
||||
data.dataSource = this.dataSource
|
||||
data.onEditFile = this.onEditFile
|
||||
data.replaceFileId = this.standardCanOnlineEditFile
|
||||
data.replaceFileId = this.replaceFileId
|
||||
} else {
|
||||
this.$message.warning(this.$t('addAtLeastOneRowOfData'))
|
||||
data = false
|
||||
|
||||
Reference in New Issue
Block a user