排产看板调整

dev-scheduling
zhangdi 2 months ago
parent 4406b66225
commit 7d9f5ac539
  1. 21
      src/views/productionSchedulingPlan/schedulingDashboard/container.vue

@ -963,7 +963,7 @@ export default {
handleLegendChange(type) {
//
this.formLabelAlign.planStatusList = [];
console.log('legendStatus', this.legendStatus);
if (this.legendStatus.completed) {
this.formLabelAlign.planStatusList.push('5');
}
@ -1080,9 +1080,7 @@ export default {
// }
let seeData = sessionStorage.getItem('formLabelAlign');
let seeLegend = sessionStorage.getItem('legendStatus');
if (seeLegend) {
this.legendStatus = JSON.parse(seeLegend);
}
if (seeData) {
this.formLabelAlign = JSON.parse(seeData);
}
@ -1090,6 +1088,20 @@ export default {
this.formLabelAlign.startTime = this.formLabelAlign.timeRange[0];
this.formLabelAlign.endTime = this.formLabelAlign.timeRange[1];
}
if (seeLegend) {
this.legendStatus = JSON.parse(seeLegend);
this.formLabelAlign.planStatusList = [];
if (this.legendStatus.completed) {
this.formLabelAlign.planStatusList.push('5');
}
if (this.legendStatus.processing) {
this.formLabelAlign.planStatusList.push('2', '3');
}
if (this.legendStatus.pending) {
this.formLabelAlign.planStatusList.push('1');
}
}
this.loading = true;
await getData(this.formLabelAlign).then(res => {
this.processData(res.data.data);
@ -1316,7 +1328,6 @@ export default {
},
//
getStatusColor(row) {
console.log('计算状态颜色', row.planStatus, row.remindStatus);
if (row.planStatus === '1') {
if (row.remindStatus === '1') {
return '#FFD700'; //

Loading…
Cancel
Save