From 88e497e20a51a2a127c4bc59f036f5367ab0670e Mon Sep 17 00:00:00 2001 From: whycwx <1272078254@qq.com> Date: 星期五, 23 七月 2021 10:18:45 +0800 Subject: [PATCH] 动图 --- src/pages/monitoring/js/diagramStates.js | 84 ------------------------------------------ 1 files changed, 0 insertions(+), 84 deletions(-) diff --git a/src/pages/monitoring/js/diagramStates.js b/src/pages/monitoring/js/diagramStates.js index 17e8e3a..a6ad3c7 100644 --- a/src/pages/monitoring/js/diagramStates.js +++ b/src/pages/monitoring/js/diagramStates.js @@ -13,17 +13,8 @@ // diagram.del(/^line.*dot$/); if (type == "run1") { run1Charge(diagram); - // run2Charge(diagram); - // run3Charge(diagram); } - if (type == "run2") { - run2Charge(diagram); - } - - if (type == "run3") { - run3Charge(diagram); - } } // 杩愯鐘舵��1 @@ -81,79 +72,4 @@ points: [line5[1], line6[1]], }); } - -// 杩愯鐘舵��2 -function run2Charge(diagram) { - - // // 绾挎潯3 - // let line3 = diagram.getOption('line3').points; - // // 绾挎潯4 - // let line4 = diagram.getOption('line4').points; - // diagram.moveDot({ - // id: 'line3_dot', - // fillStyle: springGreen, - // strokeStyle: springGreen, - // radius: scalcRadius, - // flush: true, - // points: [line3[0], line4[1]], - // }); - // // 绾挎潯5 - // let line5 = diagram.getOption('line5').points; - // // 绾挎潯6 - // let line6 = diagram.getOption('line6').points; - // diagram.moveDot({ - // id: 'line5_dot', - // fillStyle: springGreen, - // strokeStyle: springGreen, - // radius: scalcRadius, - // flush: true, - // points: [line5[0], line6[1]], - // }); -} - -function run3Charge(diagram) { - - // 绾挎潯1 - let line1 = diagram.getOption('line1').points; - // 绾挎潯2 - let line2 = diagram.getOption('line2').points; - diagram.moveDot({ - id: 'line1_dot', - fillStyle: springGreen, - strokeStyle: springGreen, - radius: scalcRadius, - flush: true, - points: [line1[0], line2[1]], - }); - - // 绾挎潯3 - let line3 = diagram.getOption('line3').points; - // 绾挎潯4 - let line4 = diagram.getOption('line4').points; - diagram.moveDot({ - id: 'line3_dot', - fillStyle: springGreen, - strokeStyle: springGreen, - radius: scalcRadius, - flush: true, - points: [line3[0], line4[1]], - }); - - - // 绾挎潯5 - let line5 = diagram.getOption('line5').points; - // 绾挎潯6 - let line6 = diagram.getOption('line6').points; - diagram.moveDot({ - id: 'line5_dot', - fillStyle: springGreen, - strokeStyle: springGreen, - radius: scalcRadius, - flush: true, - points: [line5[0], line6[1]], - }); - -} - - export default diagramStates; \ No newline at end of file -- Gitblit v1.9.1