From ab8e9cb2a5b1714fb74475593c89389ece16d224 Mon Sep 17 00:00:00 2001 From: lb Date: Sun, 8 Oct 2023 14:30:50 +0800 Subject: [PATCH] update --- .../equipment/timing-diagram/status/demo.html | 25 ++--- src/views/print/design.vue | 21 +++- src/views/print/drag.css | 41 ++++++++ src/views/print/drag.js | 96 +++++++++++++++++++ 4 files changed, 163 insertions(+), 20 deletions(-) create mode 100644 src/views/print/drag.css create mode 100644 src/views/print/drag.js diff --git a/src/views/equipment/timing-diagram/status/demo.html b/src/views/equipment/timing-diagram/status/demo.html index 51a59d21..9c8770a1 100644 --- a/src/views/equipment/timing-diagram/status/demo.html +++ b/src/views/equipment/timing-diagram/status/demo.html @@ -215,50 +215,45 @@ // return new Date(y,m,d,h,M,0,0).getTime() //} data: [ - { - // 01:00 ~ 05:00 + { name: '运行', - value: [0, 1695747600000, 1695762000000, 0], + value: [0, 1696730000000, 1696734040450, 0], itemStyle: { normal: { color: types[0].color, }, }, }, - { - // 5:00 ~ 8:00 + { name: '故障', - value: [0, 1695762000000, 1695772800000, 0], + value: [0, 1696737040000, 1696754040450, 0], itemStyle: { normal: { color: types[1].color, }, }, }, - { - // 8:00 ~ 8:39 + { name: '计划停机', - value: [0, 1695772800000, 1695775140000, 0], + value: [0, 1696755000000, 1696759000000, 0], itemStyle: { normal: { color: types[2].color, }, }, }, - { - // 08:39 ~ 18:00 + { name: '运行', - value: [0, 1695775140000, 1695808800000, 0], + value: [0, 1696759000000, 1696769000000, 0], itemStyle: { normal: { color: types[0].color, }, }, }, - { - // 18:00 ~ 23:30 + { name: '计划停机', - value: [0, 1695808800000, 1695828600000, 0], + value: [0, 1696769400000, 1696779000000, 0], itemStyle: { normal: { color: types[2].color, diff --git a/src/views/print/design.vue b/src/views/print/design.vue index b4986804..97e31726 100644 --- a/src/views/print/design.vue +++ b/src/views/print/design.vue @@ -11,7 +11,7 @@
-
+

组件

@@ -25,10 +25,10 @@