This commit is contained in:
2025-03-10 16:33:55 +08:00
parent 8e9b2f6444
commit bbd9972761
3 changed files with 8 additions and 6 deletions

View File

@@ -62,8 +62,8 @@ function getTodayStart(today) {
/** 颜色配置 */
const types = [
{ name: '运行', color: '#288AFF' },
{ name: '故障', color: '#FC9C91' },
{ name: '计划停机', color: '#FFDC94' },
{ name: '故障', color: '#FC9C91' },
{ name: '空白', color: '#F2F4F9' },
];
@@ -267,7 +267,7 @@ export default class GanttGraph {
ylist.push(eqArr.key)
eqArr.forEach(item => {
xdata.push({
name: ['运行', '故障', '计划停机'][item.status],
name: ['运行', '计划停机', '故障'][item.status],
showName: eqArr.key,
value: [index, item.startTime, item.startTime + item.duration * 60 * 1000, 0],
itemStyle: {