|
@@ -336,10 +336,10 @@ export default {
|
|
|
}).then(({ data: { count, data } }) => {
|
|
|
this.table_loading = false;
|
|
|
this.total = count;
|
|
|
- this.table_list = data.map((element,index) => ({
|
|
|
+ this.table_list = data.map((element, index) => ({
|
|
|
...element,
|
|
|
deal: element.draft === "1" && element.sts === "0" ? "1" : "0",
|
|
|
- No: index + 1
|
|
|
+ No: index + 1,
|
|
|
}));
|
|
|
console.log(this.table_list);
|
|
|
});
|
|
@@ -360,7 +360,7 @@ export default {
|
|
|
this.title = "新建";
|
|
|
this.isCheck = false;
|
|
|
this.add_form = {};
|
|
|
- this.fileInfo.fileList = []
|
|
|
+ this.fileInfo.fileList = [];
|
|
|
break;
|
|
|
case "summary":
|
|
|
this.summary_visible = !this.summary_visible;
|
|
@@ -401,14 +401,9 @@ export default {
|
|
|
fileName.push(element.fileName);
|
|
|
fileIds.push(element.fileCode);
|
|
|
});
|
|
|
- // this.add_form = {
|
|
|
- // fileNames: fileName.join(","),
|
|
|
- // fileIds: fileIds.join(","),
|
|
|
- // };
|
|
|
- this.fileInfo.fileList = v
|
|
|
- this.add_form.fileNames = fileName.join(",")
|
|
|
- this.add_form.fileIds = fileIds.join(",")
|
|
|
- console.log(this.fileInfo.fileList);
|
|
|
+ this.add_form.fileNames = fileName.join(",");
|
|
|
+ this.add_form.fileIds = fileIds.join(",");
|
|
|
+ console.log(this.add_form,'this.add_form')
|
|
|
},
|
|
|
// 获取模态框信息
|
|
|
getDialogData(row) {
|
|
@@ -424,8 +419,7 @@ export default {
|
|
|
id,
|
|
|
type,
|
|
|
},
|
|
|
- }).then(({ data }) => {
|
|
|
- let body = data.body;
|
|
|
+ }).then(({ data: { body } }) => {
|
|
|
console.log(body, "body");
|
|
|
this.ids = [body.id.toString()];
|
|
|
this.add_form = {
|
|
@@ -436,10 +430,14 @@ export default {
|
|
|
fileNames: body.fileNames,
|
|
|
fileIds: body.fileIds,
|
|
|
};
|
|
|
- // this.fileInfo.fileList = body.fileNames.split(',')
|
|
|
- this.table_list_approve = body.bpmTaskList.map((item,index) => ({
|
|
|
+ this.fileInfo.fileList = body.fileNames.split(",").map((el, index) => ({
|
|
|
+ fileName: el,
|
|
|
+ name: el,
|
|
|
+ fileCode: body.fileIds.split(",")[index],
|
|
|
+ }));
|
|
|
+ this.table_list_approve = body.bpmTaskList.map((item, index) => ({
|
|
|
...item,
|
|
|
- No: index + 1
|
|
|
+ No: index + 1,
|
|
|
}));
|
|
|
});
|
|
|
},
|
|
@@ -538,7 +536,7 @@ export default {
|
|
|
}
|
|
|
this.edit_visible = false;
|
|
|
this.add_visible = false;
|
|
|
- this.fileInfo.fileList = []
|
|
|
+ this.fileInfo.fileList = [];
|
|
|
}
|
|
|
});
|
|
|
},
|