From dc94bfd51f828a2dd502e209adbdc033536c5321 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 22 Mar 2024 10:10:57 +0800 Subject: [PATCH] 1 --- .../equipment/timing-diagram/status/index.vue | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/views/equipment/timing-diagram/status/index.vue b/src/views/equipment/timing-diagram/status/index.vue index 2b1f5559..8ab97201 100644 --- a/src/views/equipment/timing-diagram/status/index.vue +++ b/src/views/equipment/timing-diagram/status/index.vue @@ -171,26 +171,26 @@ export default { eqList: [], startTime: null, gantt: null, - demo: [ - [ - { - equipmentName: '一大线四区2小线清洗机', - duration: 30, - relativeDuration: 0.6, - status: 0, - startPos: 0, - startTime: 1711073203686, - }, - { - equipmentName: '一大线四区2小线清洗机', - duration: 20, - relativeDuration: 0.4, - status: 2, - startPos: 30, - startTime: 1711072203686, - }, - ], - ], + // demo: [ + // [ + // { + // equipmentName: '一大线四区2小线清洗机', + // duration: 30, + // relativeDuration: 0.6, + // status: 0, + // startPos: 0, + // startTime: 1711073203686, + // }, + // { + // equipmentName: '一大线四区2小线清洗机', + // duration: 20, + // relativeDuration: 0.4, + // status: 2, + // startPos: 30, + // startTime: 1711072203686, + // }, + // ], + // ], }; }, computed: {}, @@ -258,11 +258,11 @@ export default { this.existingEquipments = Object.values(data).map( (eq) => eq[0].equipmentId ); - // this.graphList = this.objectToArray(data); - this.graphList = this.demo.map(item => { - item.key = item[0].equipmentName; - return item; - }); + this.graphList = this.objectToArray(data); + // this.graphList = this.demo.map(item => { + // item.key = item[0].equipmentName; + // return item; + // }); } },