Browse Source

甘特图调整

pull/63/head
liwei 3 years ago
parent
commit
383a515b11
1 changed files with 11 additions and 12 deletions
  1. +11
    -12
      src/views/productplan/workbench/schedule.vue

+ 11
- 12
src/views/productplan/workbench/schedule.vue View File

@ -805,8 +805,18 @@
},
}) => {
this.fullscreenLoading = false;
gantt.clearAll();
if (code === 200) {
// WorLineId
this.addMarker(WorklineDict[this.parms['WorkLine-WorkLineid']] || {})
this.equipmentList = [{
title: WorklineDict[this.parms['WorkLine-WorkLineid']].WorklineTab['WorkLine-Descr'],
workLoadArray: WorklineDict[this.parms['WorkLine-WorkLineid']].WorkLoadArray,
}, ]
this.disabledDate = WorklineDict[this.parms['WorkLine-WorkLineid']].TimeCurve.TimeLineArray || []
this.wiewPlanList(UnPlannedTaskArray || [])
}
// gantt.templates.timeline_cell_class
gantt.clearAll();
const data = [{
_is_bg: true,
id: 10001,
@ -825,17 +835,6 @@
data.forEach((item) => {
gantt.getAnothersStore().addItem(item)
})
if (code === 200) {
// WorLineId
this.addMarker(WorklineDict[this.parms['WorkLine-WorkLineid']] || {})
this.equipmentList = [{
title: WorklineDict[this.parms['WorkLine-WorkLineid']].WorklineTab['WorkLine-Descr'],
workLoadArray: WorklineDict[this.parms['WorkLine-WorkLineid']].WorkLoadArray,
}, ]
this.disabledDate = WorklineDict[this.parms['WorkLine-WorkLineid']].TimeCurve.TimeLineArray || []
this.wiewPlanList(UnPlannedTaskArray || [])
}
})
},
//


Loading…
Cancel
Save