From 84428dba0aad4979acfc3619a18b61585bc700b7 Mon Sep 17 00:00:00 2001 From: hzz Date: Mon, 14 Aug 2023 09:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=BA=E6=A2=B0=E5=88=86?= =?UTF-8?q?=E5=8E=82=E8=AE=BE=E5=A4=87=E4=B8=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../child/son/components/timeguagu.vue | 32 +- src/views/Mechanics/child/son/index.vue | 460 +++++++++--------- src/views/Mechanics/indexNew.vue | 2 +- 3 files changed, 267 insertions(+), 227 deletions(-) diff --git a/src/views/Mechanics/child/son/components/timeguagu.vue b/src/views/Mechanics/child/son/components/timeguagu.vue index 76826bd..097bda2 100644 --- a/src/views/Mechanics/child/son/components/timeguagu.vue +++ b/src/views/Mechanics/child/son/components/timeguagu.vue @@ -12,7 +12,11 @@
@@ -23,11 +27,13 @@ import { EDataPerson, EDataPersonItem } from "@/type/Mechanics"; import border6 from "@/components/borderBox/border6.vue"; const { proxy } = getCurrentInstance() as any; import { useI18n } from 'vue-i18n' -let {t} = useI18n(); +let { t } = useI18n(); let props = defineProps<{ title: string; + handle: 't' | 'f' }>(); let inguagu = ref(); +let inguagud = ref(); let refborder6 = ref(); @@ -90,6 +96,9 @@ function setchartWH(width: any, height: any) { inguagu.value.style.height = height + "px"; inguagu.value.style.width = width - 30 + "px"; + inguagud.value.style.height = height + "px"; + inguagud.value.style.width = width - 30 + "px"; + refborder6.value.resetWH(); if (echartsData.inguagu.box) { echartsData.inguagu.box.resize(); @@ -110,5 +119,24 @@ defineExpose({ box-sizing: border-box; padding: 10px; } + +.empty { + position: relative; + display: flex; + align-items: center; + width: 100%; + height: 100%; + justify-content: center; +} +.empty-title { + position: absolute; + top:10px; + left: 20px; + font-size: 22px; + font-weight: bolder; + color: white; + +} + \ No newline at end of file diff --git a/src/views/Mechanics/child/son/index.vue b/src/views/Mechanics/child/son/index.vue index 2fc40ed..c27ebbb 100644 --- a/src/views/Mechanics/child/son/index.vue +++ b/src/views/Mechanics/child/son/index.vue @@ -8,248 +8,260 @@ * 版权信息 : 2023 by ${再登软件}, All Rights Reserved. --> + +
+
+ + + + + + +
+
+ + + + +
+
+ + +
+
+ + - - onUnmounted(() => { - clearTimeout(time) - }) - - - - + color: #20aec5; + background-color: #100c2a; +} + - +.title>h1 { + font-size: 30px; + position: absolute; + top: 10px; +} + +.header { + position: relative; +} + +.header p { + position: absolute; + right: 50px; + bottom: 20px; + font-size: 20px; +} + +.content { + width: 100%; + --header: 100px; + height: calc(1080px - var(--header)); + display: flex; +} + +.center { + margin: 0 30px; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; +} + +.left { + display: flex; + flex-wrap: wrap; + justify-content: space-around; + align-items: flex-end; +} + +.right { + margin-right: 30px; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-end; +} + - + \ No newline at end of file diff --git a/src/views/Mechanics/indexNew.vue b/src/views/Mechanics/indexNew.vue index 1f09aa4..2d6a2e6 100644 --- a/src/views/Mechanics/indexNew.vue +++ b/src/views/Mechanics/indexNew.vue @@ -171,7 +171,7 @@ async function reqDeviceTotelListMFfun() { item.name, item.dept, compare[item.status] ? compare[item.status] : '停机', - item.activation + '%', + item.activation, // item.failure + '%' ] })