From f5b4cdc0731e105cc72a3aedce7c58f711113d7b Mon Sep 17 00:00:00 2001 From: lxz Date: Tue, 2 Jan 2024 18:13:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=95=E9=A6=86=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/index/leftBottom.vue | 8 ++-- src/components/index/leftCenter.vue | 2 +- src/components/index/rightTop.vue | 2 +- src/components/warnPop.vue | 64 +++++++++++++---------------- 4 files changed, 35 insertions(+), 41 deletions(-) diff --git a/src/components/index/leftBottom.vue b/src/components/index/leftBottom.vue index f3567f2..95fa7f4 100644 --- a/src/components/index/leftBottom.vue +++ b/src/components/index/leftBottom.vue @@ -6,7 +6,7 @@ import scrollTable from "@/components/scrollTable.vue" import { ref, reactive, onMounted } from "vue" import { plantProductCountApi } from "@/api.js" import { areaObj } from "@/store/index.js" -const userInfoStore=areaObj() +const userInfoStore = areaObj() // ...userInfoStore.userInfo const alignFn = (num) => { let arr = [] @@ -22,7 +22,7 @@ const config2 = reactive({ headerStyle: "background:#0E316B", align: alignFn(4), - data: [ ] + data: [] }) @@ -45,14 +45,14 @@ const correctionListFn = (list) => { plantProductCountApi( { - ...userInfoStore.userInfo + ...userInfoStore.userInfo } ).then(res => { correctionListFn(res.data.list).forEach(item => { config2.data.push( - [item[0].kind, `` , item[1].kind,`` ] + [item[0].kind, ``, item[1].kind, ``] ) }) }) diff --git a/src/components/index/leftCenter.vue b/src/components/index/leftCenter.vue index 1d5e02f..b607a45 100644 --- a/src/components/index/leftCenter.vue +++ b/src/components/index/leftCenter.vue @@ -46,7 +46,7 @@ const setOnlineFn = (data) => { title: [ { - text: (data.value / data.total * 100) + '%', + text: (data.value / data.total * 100).toFixed(2) + '%', x: 'center', top: '42%', textStyle: { diff --git a/src/components/index/rightTop.vue b/src/components/index/rightTop.vue index 61ae6f3..25b075e 100644 --- a/src/components/index/rightTop.vue +++ b/src/components/index/rightTop.vue @@ -1,7 +1,7 @@