From 35fd369831a8385d8d85b19cf24279824cf7b6cc Mon Sep 17 00:00:00 2001 From: Vce Date: Thu, 13 Jun 2024 00:38:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=8C=87=E6=8C=A5?= =?UTF-8?q?=E9=83=A8=E5=A4=A7=E5=B1=8F=E5=8F=B3=E4=B8=8B=E8=A7=92=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E4=BD=9C=E4=B8=9A=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BD=9C=E4=B8=9A=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commandScreen/commandCenter/rightAll.vue | 72 ++++++++++++++----- 1 file changed, 56 insertions(+), 16 deletions(-) diff --git a/src/views/commandScreen/commandCenter/rightAll.vue b/src/views/commandScreen/commandCenter/rightAll.vue index 1ff87f6..6147a78 100644 --- a/src/views/commandScreen/commandCenter/rightAll.vue +++ b/src/views/commandScreen/commandCenter/rightAll.vue @@ -938,10 +938,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzGroundSafetNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#5470c6", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //临时用电 @@ -950,10 +955,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzTemporaryElectricitySafeNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#91cc75", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //高处作业 @@ -962,10 +972,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzHighJobSafeNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#fac858", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //盲板抽堵 @@ -974,10 +989,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzBlindPlatePlugSafeNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#ee6666", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //动火作业 @@ -986,10 +1006,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzSpecialOperationFireSafetyNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#73c0de", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //断路作业 @@ -998,10 +1023,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzOpenCircuitSafeNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#3ba272", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //吊装作业 @@ -1010,10 +1040,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzHoistSafetyWorkNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#fc8452", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, //受限空间 @@ -1022,10 +1057,15 @@ function getSpecialEchart() { // data: safeList.map(item => item.y), data: specialList.value.map((item: any) => item.xzLimitSpaceSafeNum), type: "bar", - barWidth: "35%", + barWidth: "65%", color: "#9a60b4", stack: 'total', - // label: { show: true}, + label: { + show: true, + textStyle:{ + fontSize:'3px' + } + }, emphasis:{focus: 'series'} }, ]