From 23c48503a88a8e3a98dc9c599fd7f91f18c57b8a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 8 Jan 2024 17:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/home/right/right.vue | 32 +++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/pages/modules/home/right/right.vue b/src/pages/modules/home/right/right.vue index f0d5214..3359ed4 100644 --- a/src/pages/modules/home/right/right.vue +++ b/src/pages/modules/home/right/right.vue @@ -201,7 +201,7 @@ export default { let img = {pointerImg: pointerImg} let cdata = [] this.capacityRate.map(el => { - cdata.push({name: el.device_name, data: el.numerical}) + cdata.push({name: el.device_name, data: el.numerical.toFixed(0)}) }) let centerArr = [['25%', '38%'], ['75%', '38%'], ['25%', '89%'], ['75%', '89%']] let topArr = ['39%', '39%', '90%', '90%'] @@ -887,7 +887,7 @@ export default { _wh(100%, 100%) .scroll_wrap _wh(100%, 100%) - padding 20px 20px 0 20px + padding 20px 20px 5px 20px .scroll_tab_1 _wh(100%, 38px) background center / 100% url('../../../../images/table-bg_1.png') no-repeat @@ -904,12 +904,20 @@ export default { padding 0 5px overflow hidden box-sizing border-box - &:nth-child(1), &:nth-child(2), &:nth-child(3), &:nth-child(4) - width 8% + &:nth-child(1) + width 5% + &:nth-child(2) + width 8% + &:nth-child(3) + width 14% + &:nth-child(4) + width 8% + &:nth-child(5) + width 12% &:nth-child(7) - width 19% - &:nth-child(9) width 19% + &:nth-child(9) + width 14% .state display block _wh(20px, 14px) @@ -939,12 +947,20 @@ export default { // white-space nowrap padding 0 5px overflow hidden - &:nth-child(1), &:nth-child(2), &:nth-child(3), &:nth-child(4) + &:nth-child(1) + width 5% + &:nth-child(2) width 8% + &:nth-child(3) + width 14% + &:nth-child(4) + width 8% + &:nth-child(5) + width 12% &:nth-child(7) width 19% &:nth-child(9) - width 19% + width 14% .state display block _wh(20px, 14px)