1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
<template>
<b-container
:style="{ display: 'flex', 'flex-direction': 'column' }"
fluid="xxl pt-0 m-0"
>
<page-title :description="$t('SystemDescription.FansDynamicInformation')" />
<date-switch :switch-time-scale="switchTimeScale" :time-scale="timeScale" />
<div class="speed-description">
<img src="@/assets/images/fans-page/fans-icon.svg" />
<span class="bold-16px">{{ $t('fansPage.speedDescription') }}</span>
</div>
<div class="limit-speed-container">
<div class="speed-limt">
<img src="@/assets/images/labels/warning.svg" />
<span class="semi-bold-12px">{{ $t('fansPage.speedWarhihg') }}</span>
<b-form-input
v-model="fanSpeedWarninigInput"
type="number"
:min="0"
:max="fanSpeedShutdownInput"
class="form-control medium-12px"
>
</b-form-input>
</div>
<div class="speed-limt">
<img src="@/assets/images/labels/shutdown.svg" />
<span class="semi-bold-12px">{{ $t('fansPage.speedShutdown') }}</span>
<b-form-input
v-model="fanSpeedShutdownInput"
:min="fanSpeedWarninigInput"
:max="4000"
type="number"
class="form-control medium-12px"
>
</b-form-input>
</div>
<b-button class="save-button" variant="primary" @click="updateFansSpeed">
{{ $t('global.action.save') }}
</b-button>
</div>
<fans-dynamic-table
:speed-warninig="fanSpeedWarninig"
:speed-shutdown="fanSpeedShutdown"
:time-scale="timeScale"
/>
<indicators-table />
</b-container>
</template>
<script>
import PageTitle from '@/components/Global/PageTitle';
import DateSwitch from '@/components/Global/SilaComponents/DateSwitch';
import FansDynamicTable from './FansDynamicTable';
import IndicatorsTable from './IndicatorsTable';
export default {
components: { PageTitle, DateSwitch, FansDynamicTable, IndicatorsTable },
data() {
return {
timeScale: 'hour',
fanSpeedWarninigInput: 2450,
fanSpeedShutdownInput: 3150,
fanSpeedWarninig: 2450,
fanSpeedShutdown: 3150,
};
},
methods: {
switchTimeScale(period) {
this.timeScale = period;
},
updateFansSpeed() {
this.fanSpeedWarninig = +this.fanSpeedWarninigInput;
this.fanSpeedShutdown = +this.fanSpeedShutdownInput;
},
},
};
</script>
<style lang="scss" scoped>
.speed-description {
height: 56px;
padding-left: 36px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid $faint-secondary-primary-10;
}
.limit-speed-container {
height: 85px;
padding: 0 0 10px 32px;
display: flex;
align-items: flex-end;
gap: 24px;
}
.speed-limt {
height: 60px;
max-width: 312px;
display: flex;
align-items: baseline;
flex-flow: row wrap;
gap: 8px;
}
.save-button {
width: 151px;
height: 36px;
}
.form-control {
height: 36px;
}
.main-container {
overflow: auto;
}
</style>
|