|
|
@@ -5,7 +5,8 @@
|
|
|
padding
|
|
|
background
|
|
|
>
|
|
|
- <div class="l-grid--info mini">
|
|
|
+ <span class="c-sibling-item--v u-font-size--sm u-bold">策略配置</span>
|
|
|
+ <div class="c-sibling-item--v l-grid--info mini">
|
|
|
<button
|
|
|
class="o-button"
|
|
|
@click="onAlarmStratConfig"
|
|
|
@@ -16,23 +17,62 @@
|
|
|
class="o-button"
|
|
|
@click="onAutoRestartConfig"
|
|
|
>
|
|
|
- 设备定时重启
|
|
|
+ 定时重启策略
|
|
|
</button>
|
|
|
- <alarm-strat-config-dialog ref="alarmStratConfigDialog" />
|
|
|
- <auto-restart-config-dialog ref="autoRestartConfigDialog" />
|
|
|
</div>
|
|
|
+ <span class="c-sibling-item--v u-font-size--sm u-bold">安全配置</span>
|
|
|
+ <div class="c-sibling-item--v l-grid--info mini">
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="onPowerConfig"
|
|
|
+ >
|
|
|
+ 电源标签
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="onUnattendConfig"
|
|
|
+ >
|
|
|
+ 无人值守
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="onTemperatureThresholdConfig"
|
|
|
+ >
|
|
|
+ 温度传感器阈值
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="onDeviationThresholdConfig"
|
|
|
+ >
|
|
|
+ 位移传感器阈值
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <alarm-strat-config-dialog ref="alarmStratConfigDialog" />
|
|
|
+ <auto-restart-config-dialog ref="autoRestartConfigDialog" />
|
|
|
+ <power-config-dialog ref="powerConfigDialog" />
|
|
|
+ <unattend-config-dialog ref="unattendConfigDialog" />
|
|
|
+ <temperature-Threshold-config-dialog ref="temperatureThresholdConfigDialog" />
|
|
|
+ <deviation-Threshold-config-dialog ref="DeviationThresholdConfigDialog" />
|
|
|
</wrapper>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import AlarmStratConfigDialog from './components/AlarmStratConfigDialog'
|
|
|
-import AutoRestartConfigDialog from './components/AutoRestartConfigDialog'
|
|
|
+import AlarmStratConfigDialog from './components/AlarmStratConfigDialog.vue'
|
|
|
+import AutoRestartConfigDialog from './components/AutoRestartConfigDialog.vue'
|
|
|
+import PowerConfigDialog from './components/PowerConfigDialog.vue'
|
|
|
+import UnattendConfigDialog from './components/UnattendConfigDialog.vue'
|
|
|
+import TemperatureThresholdConfigDialog from './components/TemperatureThresholdConfigDialog.vue'
|
|
|
+import DeviationThresholdConfigDialog from './components/DeviationThresholdConfigDialog.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'TenantSettings',
|
|
|
components: {
|
|
|
AlarmStratConfigDialog,
|
|
|
- AutoRestartConfigDialog
|
|
|
+ AutoRestartConfigDialog,
|
|
|
+ PowerConfigDialog,
|
|
|
+ UnattendConfigDialog,
|
|
|
+ TemperatureThresholdConfigDialog,
|
|
|
+ DeviationThresholdConfigDialog
|
|
|
},
|
|
|
methods: {
|
|
|
onAlarmStratConfig () {
|
|
|
@@ -40,6 +80,18 @@ export default {
|
|
|
},
|
|
|
onAutoRestartConfig () {
|
|
|
this.$refs.autoRestartConfigDialog.show()
|
|
|
+ },
|
|
|
+ onPowerConfig () {
|
|
|
+ this.$refs.powerConfigDialog.show()
|
|
|
+ },
|
|
|
+ onUnattendConfig () {
|
|
|
+ this.$refs.unattendConfigDialog.show()
|
|
|
+ },
|
|
|
+ onTemperatureThresholdConfig () {
|
|
|
+ this.$refs.temperatureThresholdConfigDialog.show()
|
|
|
+ },
|
|
|
+ onDeviationThresholdConfig () {
|
|
|
+ this.$refs.DeviationThresholdConfigDialog.show()
|
|
|
}
|
|
|
}
|
|
|
}
|