前端代码提交
This commit is contained in:
parent
a351302a7e
commit
ccbb26cb2d
|
|
@ -179,7 +179,7 @@ export default {
|
||||||
this.detailStatus = this.rowData.detailStatus;
|
this.detailStatus = this.rowData.detailStatus;
|
||||||
if ((this.isAdd === 'edit' || this.isAdd === 'detail') && this.rowData) {
|
if ((this.isAdd === 'edit' || this.isAdd === 'detail') && this.rowData) {
|
||||||
|
|
||||||
const res2 = await getFileManageByIdApi({id:this.rowData.id});
|
const res2 = await getFileManageByIdApi({id:this.rowData.id,proId:this.projectId});
|
||||||
const obj =res2.data;
|
const obj =res2.data;
|
||||||
|
|
||||||
// 编辑模式:填充表单数据
|
// 编辑模式:填充表单数据
|
||||||
|
|
@ -198,7 +198,9 @@ export default {
|
||||||
const fileList = [{name:obj.fileName,businessId:obj.businessId}];
|
const fileList = [{name:obj.fileName,businessId:obj.businessId}];
|
||||||
this.fileList = fileList;
|
this.fileList = fileList;
|
||||||
} else {
|
} else {
|
||||||
const res = await getFileManageByIdApi({id:this.rowData.id});
|
const id = this.rowData.id;
|
||||||
|
const proId = this.projectId;
|
||||||
|
const res = await getFileManageByIdApi({id,proId});
|
||||||
const obj =res.data;
|
const obj =res.data;
|
||||||
// 新增模式:重置表单
|
// 新增模式:重置表单
|
||||||
this.form = {
|
this.form = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue