diff --git a/src/views/commandScreen/commandCenter/rightAll.vue b/src/views/commandScreen/commandCenter/rightAll.vue index 1ff87f6a..6147a781 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'} }, ]