|
|
|
@ -963,7 +963,7 @@ export default { |
|
|
|
handleLegendChange(type) { |
|
|
|
handleLegendChange(type) { |
|
|
|
// 如果需要重新加载数据,可以调用 |
|
|
|
// 如果需要重新加载数据,可以调用 |
|
|
|
this.formLabelAlign.planStatusList = []; |
|
|
|
this.formLabelAlign.planStatusList = []; |
|
|
|
|
|
|
|
console.log('legendStatus', this.legendStatus); |
|
|
|
if (this.legendStatus.completed) { |
|
|
|
if (this.legendStatus.completed) { |
|
|
|
this.formLabelAlign.planStatusList.push('5'); |
|
|
|
this.formLabelAlign.planStatusList.push('5'); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1080,9 +1080,7 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
let seeData = sessionStorage.getItem('formLabelAlign'); |
|
|
|
let seeData = sessionStorage.getItem('formLabelAlign'); |
|
|
|
let seeLegend = sessionStorage.getItem('legendStatus'); |
|
|
|
let seeLegend = sessionStorage.getItem('legendStatus'); |
|
|
|
if (seeLegend) { |
|
|
|
|
|
|
|
this.legendStatus = JSON.parse(seeLegend); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (seeData) { |
|
|
|
if (seeData) { |
|
|
|
this.formLabelAlign = JSON.parse(seeData); |
|
|
|
this.formLabelAlign = JSON.parse(seeData); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1090,6 +1088,20 @@ export default { |
|
|
|
this.formLabelAlign.startTime = this.formLabelAlign.timeRange[0]; |
|
|
|
this.formLabelAlign.startTime = this.formLabelAlign.timeRange[0]; |
|
|
|
this.formLabelAlign.endTime = this.formLabelAlign.timeRange[1]; |
|
|
|
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; |
|
|
|
this.loading = true; |
|
|
|
await getData(this.formLabelAlign).then(res => { |
|
|
|
await getData(this.formLabelAlign).then(res => { |
|
|
|
this.processData(res.data.data); |
|
|
|
this.processData(res.data.data); |
|
|
|
@ -1316,7 +1328,6 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 任务 样式计算 |
|
|
|
// 任务 样式计算 |
|
|
|
getStatusColor(row) { |
|
|
|
getStatusColor(row) { |
|
|
|
console.log('计算状态颜色', row.planStatus, row.remindStatus); |
|
|
|
|
|
|
|
if (row.planStatus === '1') { |
|
|
|
if (row.planStatus === '1') { |
|
|
|
if (row.remindStatus === '1') { |
|
|
|
if (row.remindStatus === '1') { |
|
|
|
return '#FFD700'; // 黄色(可自定义) |
|
|
|
return '#FFD700'; // 黄色(可自定义) |
|
|
|
|