diff --git a/src/views/archivesManagement/fileManager/components/addTableData.vue b/src/views/archivesManagement/fileManager/components/addTableData.vue index 4f39656..cf95a3b 100644 --- a/src/views/archivesManagement/fileManager/components/addTableData.vue +++ b/src/views/archivesManagement/fileManager/components/addTableData.vue @@ -179,15 +179,19 @@ export default { this.belongName = this.rowData.belongName; this.detailStatus = this.rowData.detailStatus; if ((this.isAdd === 'edit' || this.isAdd === 'detail') && this.rowData) { + + const res2 = await getFileManageByIdApi({id:this.rowData.id}); + const obj =res2.data; + console.error(obj); // 编辑模式:填充表单数据 this.form = { - id: this.rowData.id, - contentName: this.rowData.contentName || null, - term: this.rowData.term || null, - major: this.rowData.major || null, - unitName: this.rowData.unitName || null, - markCode: this.rowData.markCode || null, - classifyMark: this.rowData.classifyMark || null, + id: obj.id, + contentName: obj.contentName || null, + term: obj.term || null, + major: obj.major || null, + unitName: obj.unitName || null, + markCode: obj.markCode || null, + classifyMark: obj.classifyMark || null, parentId: this.rowData.parentId || null, level: 5, proId:this.projectId