diff --git a/src/views/laboratory/overview/components/monitorData.vue b/src/views/laboratory/overview/components/monitorData.vue new file mode 100644 index 0000000..54b2b9d --- /dev/null +++ b/src/views/laboratory/overview/components/monitorData.vue @@ -0,0 +1,102 @@ + + + + + + + {{ props.title }} + + + {{ item }} + + + + 温度:ㅤ {{ props.temperature }} + + + + 温度:ㅤ {{ props.humidity }} + + + + 电压:ㅤ {{ props.voltage }} + + + + 烟雾:ㅤ {{ props.smoke }} + + + + 氧气:ㅤ {{ props.oxygen }} + + + + + diff --git a/src/views/laboratory/overview/components/monitorData.vue b/src/views/laboratory/overview/components/monitorData.vue new file mode 100644 index 0000000..54b2b9d --- /dev/null +++ b/src/views/laboratory/overview/components/monitorData.vue @@ -0,0 +1,102 @@ + + + + + + + {{ props.title }} + + + {{ item }} + + + + 温度:ㅤ {{ props.temperature }} + + + + 温度:ㅤ {{ props.humidity }} + + + + 电压:ㅤ {{ props.voltage }} + + + + 烟雾:ㅤ {{ props.smoke }} + + + + 氧气:ㅤ {{ props.oxygen }} + + + + + diff --git a/src/views/laboratory/overview/index.vue b/src/views/laboratory/overview/index.vue index 30a6d4f..a6cf254 100644 --- a/src/views/laboratory/overview/index.vue +++ b/src/views/laboratory/overview/index.vue @@ -3,6 +3,7 @@ import type { Ref } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import MessageCom from './components/message.vue' +import monitorData from './components/monitorData.vue' import type { IList, IListQuery } from '@/views/laboratory/alarm/current/list-interface' import type { TableColumn } from '@/components/NormalTable/table_interface' import { operateAlarm } from '@/api/laboratory/alarm/current' @@ -177,6 +178,29 @@ }) } +// --------------------------------------图---------------------------------------------------------- +const temperatureHumidityRoomIn = ref({ // 温湿度计量工作间(内) + temperature: '23℃', // 温度 + humidity: '42%', // 湿度 + voltage: '220V', // 电压 + smoke: '12', // 烟雾 +}) +const temperatureHumidityRoomOut = ref({ // 温湿度计量工作间(外) + temperature: '12℃', // 温度 + humidity: '23%', // 湿度 + voltage: '110V', // 电压 +}) + +const dangerousGoodsStore = ref({ // 危险品仓库 + smoke: '100', // 烟雾 +}) + +const electricalMetrologyRoom = ref({ // 电学计量工作间 + temperature: '23℃', // 温度 + humidity: '42%', // 湿度 + voltage: '220V', // 电压 +}) + // ------------------------------------钩子---------------------------------------------------------- onMounted(() => { fetchData() @@ -185,9 +209,45 @@ - + + + + + + + +