From 84201c1e88b65f16b6da2c85ab8eee23f37a3da1 Mon Sep 17 00:00:00 2001 From: Gary Gu <garygu@Garydebijibendiannao.local> Date: Mon, 30 Jun 2025 16:02:54 +0800 Subject: [PATCH] fix: 引入第三方字体 --- src/views/EquipmentView.vue | 51 +++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 39 insertions(+), 12 deletions(-) diff --git a/src/views/EquipmentView.vue b/src/views/EquipmentView.vue index ed32f55..7413ba0 100644 --- a/src/views/EquipmentView.vue +++ b/src/views/EquipmentView.vue @@ -45,8 +45,13 @@ backgroundRepeat: 'no-repeat', backgroundPosition: 'center center', backgroundSize: '100% 100%', + display: 'flex', + alignItems: 'center', }" > + <span style="font-family: PangMenZhengDaoBiaoTiTi !important; font-size: 24px; letter-spacing: 2px; white-space: nowrap; margin-left: 30px" + >重要设备状态</span + > </div> <div class="equipment-status" :style="sectionStyle"> <el-select v-model="deviceSelected" placeholder="请选择" @change="handleSelectChange"> @@ -105,8 +110,13 @@ backgroundRepeat: 'no-repeat', backgroundPosition: 'center center', backgroundSize: '100% 100%', + display: 'flex', + alignItems: 'center', }" > + <span style="font-family: PangMenZhengDaoBiaoTiTi !important; font-size: 24px; letter-spacing: 2px; white-space: nowrap; margin-left: 30px" + >环境监测</span + > </div> <div class="environment-grid" :style="sectionStyle"> <div class="env-item"> @@ -185,14 +195,25 @@ }, data() { return { - evnData: {}, - userData: {}, + evnData: { + Tmp: "0", + Rh: "0", + Pm25: "0", + Pm10: "0", + Ws: "0", + Wd: "无", + }, + userData: { + RealtimeUserNumber: 0, + TodayUserNumber: 0, + DutyUserTotle: 0, + }, deviceSelected: "", options: [], backgroundImage: new URL("@/assets/images/backgrounds/cover_bg.png", import.meta.url).href, titleImage: new URL("@/assets/images/titles/renyuan.png", import.meta.url).href, - middleImage: new URL("@/assets/images/titles/shebei.png", import.meta.url).href, - bottomImage: new URL("@/assets/images/titles/huanjing.png", import.meta.url).href, + middleImage: new URL("@/assets/images/titles/xiangmu.png", import.meta.url).href, + bottomImage: new URL("@/assets/images/titles/xiangmu.png", import.meta.url).href, bgImage: new URL("@/assets/images/titles/title_second.png", import.meta.url).href, enviorImage: new URL("@/assets/images/titles/wendu_bg.png", import.meta.url).href, deviceOnline: 0, @@ -269,14 +290,14 @@ }, data: [ { - value: 81.5, + value: 0, name: "", itemStyle: { color: "#00FFFF", }, }, { - value: 18.5, + value: 100, name: "", itemStyle: { color: "transparent", @@ -357,14 +378,14 @@ }, data: [ { - value: 33, + value: 0, name: "", itemStyle: { color: "#00FFFF", }, }, { - value: 77, + value: 100, name: "", itemStyle: { color: "transparent", @@ -445,14 +466,14 @@ }, data: [ { - value: 20, + value: 0, name: "", itemStyle: { color: "#00FFFF", }, }, { - value: 80, + value: 100, name: "", itemStyle: { color: "transparent", @@ -505,8 +526,8 @@ */ handleSelectChange(val) { this.getDeviceState(val); - this.getEnvData(val); - this.getUserData(val); + // this.getEnvData(val); + // this.getUserData(val); }, /** * 获取人员数据 @@ -1118,3 +1139,9 @@ display: none; } </style> +<style lang="scss"> + .el-scrollbar__wrap { + overflow-x: hidden; + overflow-y: scroll; + } +</style> -- Gitblit v1.9.3