Commit 069f2dbb authored by zhengke's avatar zhengke

修改

parent cb507b8e
......@@ -621,17 +621,18 @@
if (this.selected.length > 0) {
this.msg.OldChangePlanItemList = [];
this.msg.NewChangePlanItemList = [];
let newArray = JSON.parse(JSON.stringify(this.selected))
newArray.forEach(x=>{
x.NewPlan.PlanTimeList = x.TimeList;
delete x.NewPlan.TimeList
this.selected.forEach(x => {
this.msg.OldChangePlanItemList.push(x);
this.msg.NewChangePlanItemList.push(x.NewPlan)
})
this.selected.forEach(x => {
this.msg.OldChangePlanItemList.forEach(x=>{
delete x.NewPlan
x.PlanTimeList=x.TimeList
delete x.TimeList
this.msg.OldChangePlanItemList.push(x);
})
this.msg.NewChangePlanItemList.forEach(x=>{
x.PlanTimeList=x.TimeList
delete x.TimeList
})
this.msg.AllChangePlanItem = {};
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment