| | |
| | | import HdwLight from "@/components/HdwLight.vue"; |
| | | import runMonitorModule from "@/views/airConditioning/js/runMonitorModule"; |
| | | const {runMonitorData} = runMonitorModule(); |
| | | |
| | | import paramsMonitorModule from "@/views/airConditioning/js/paramsMonitorModule"; |
| | | const {paramsMonitorData} = paramsMonitorModule(); |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | </template> |
| | | <div class="air-params-monitor"> |
| | | <div class="input-list"> |
| | | <div class="input-item" v-for="(item, index) in runMonitorData" :key="'key'+index"> |
| | | <div class="input-item" v-for="(item, index) in paramsMonitorData" :key="'key'+index"> |
| | | <div class="input-box input-text">{{ item.label }}</div> |
| | | <div class="input-box input-content">{{ item.value }}</div> |
| | | <div class="input-box input-unit">{{ item.unit }}</div> |
New file |
| | |
| | | import {reactive} from "vue"; |
| | | |
| | | const paramsMonitorModule = ()=>{ |
| | | const paramsMonitorData = reactive([ |
| | | { |
| | | label: "温度上限", |
| | | value: "℃" |
| | | }, |
| | | { |
| | | label: "温度下限", |
| | | value: 0, |
| | | unit: "℃" |
| | | }, |
| | | { |
| | | label: "湿度上限", |
| | | value: 0, |
| | | unit: "%" |
| | | }, |
| | | { |
| | | label: "湿度下限", |
| | | value: 0, |
| | | unit: "%" |
| | | }, |
| | | { |
| | | label: "温度设定值", |
| | | value: 0, |
| | | unit: "℃" |
| | | }, |
| | | { |
| | | label: "湿度设定值", |
| | | value: 0, |
| | | unit: "%" |
| | | }, |
| | | ]); |
| | | |
| | | return {paramsMonitorData}; |
| | | }; |
| | | export default paramsMonitorModule; |