From ae84d2078d0076611b4d2ce78fc1084a38038e1c Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Wed, 27 Jul 2022 13:02:34 +0300 Subject: fx fan chart --- src/components/_sila/Global/Chart.vue | 30 +++++++++++++++++------------- src/views/_sila/Fans/Dynamic/FanSpeed.vue | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index 1cb6f11c..3622e76f 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -209,20 +209,24 @@ export default { this.categories = this.setSpeed(4000); this.minRange = 4000; this.minTickInterval = 1000; - this.plotBands = [ - { - color: '#F0AC0C1A', - dashStyle: 'solid', - from: this.notNormal, - to: this.critical, - }, - { - color: '#FF41411A', - dashStyle: 'solid', - from: this.critical, - to: this.warning, + this.plotLines.push({ + color: '#1A3E5B', + dashStyle: 'solid', + value: this.shutdown, + width: 2, + label: { + text: 'Пороговое значения отказ', + align: 'right', + style: { + fontFamily: 'Inter', + fontSize: '12px', + fontStyle: 'normal', + fontWeight: '400', + lineHeight: '16px', + color: '#0C1C2999', + }, }, - ]; + }); break; case 'memory': this.categories = this.setCategories(101, 'С°'); diff --git a/src/views/_sila/Fans/Dynamic/FanSpeed.vue b/src/views/_sila/Fans/Dynamic/FanSpeed.vue index b597db8a..ba6e6c82 100644 --- a/src/views/_sila/Fans/Dynamic/FanSpeed.vue +++ b/src/views/_sila/Fans/Dynamic/FanSpeed.vue @@ -92,7 +92,7 @@ export default { }, data() { return { - warning: 72, + warning: 2450, shutdown: 3150, fields: [ { -- cgit v1.2.3