修改标准评估第三步dataList数据

This commit is contained in:
宋伟佳
2022-01-25 17:06:42 +08:00
parent 16f24d0ed3
commit 79752dcc1b
@@ -548,7 +548,6 @@ export default {
});
}
if (addFlag) {
this.projectDataList = [];
let projectNames = "", projectNumbers = "";
this.selectProjectList.forEach(items => {
projectNames += items.projectName;
@@ -556,23 +555,16 @@ export default {
projectNumbers += items.projectNumber;
projectNumbers += ",";
});
this.$set(this.projectDataList, "projectName", projectNames);
this.$set(this.projectDataList, "projectNumber", projectNumbers);
this.$set(this.projectDataList, "managementHostName", this.selectProjectList[0].managementHostName);
this.$set(this.projectDataList, "developmentHostName", this.selectProjectList[0].developmentHostName);
this.$set(this.projectDataList, "categoryName", this.selectProjectList[0].categoryName);
this.$set(this.projectDataList, "projectStatus", this.selectProjectList[0].projectStatus);
this.$set(this.projectDataList, "uname", this.selectProjectList[0].uname);
this.$set(this.projectDataList, "unameId", this.selectProjectList[0].projectManager);
this.dataList.push({
projectName: this.projectDataList.projectName,
projectNumber: this.projectDataList.projectNumber,
managementHostName: this.projectDataList.managementHostName,
developmentHostName: this.projectDataList.developmentHostName,
categoryName: this.projectDataList.categoryName,
projectStatus: this.projectDataList.projectStatus,
uname: this.projectDataList.uname,
unameId: this.projectDataList.unameId,
projectName: projectNames,
projectNumber: projectNumbers,
managementHostName: this.selectProjectList[0].managementHostName,
developmentHostName: this.selectProjectList[0].developmentHostName,
categoryName: this.selectProjectList[0].categoryName,
projectStatus: this.selectProjectList[0].projectStatus,
projectGroup: this.selectProjectList[0].projectGroup,
uname: this.selectProjectList[0].uname,
unameId: this.selectProjectList[0].projectManager,
})
} else {
this.$message.warning("请勿重复添加数据");
@@ -624,6 +616,8 @@ export default {
this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
console.log(json);
return
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,