From 21c0655b0b53ba47798b81bc33658c3db95d002c Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Wed, 15 Nov 2023 17:27:17 +0800 Subject: [PATCH] =?UTF-8?q?BI=E6=A0=B9=E6=8D=AE=E5=AE=A2=E6=88=B7=E6=8F=90?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE,?= =?UTF-8?q?=E4=B8=AD=E9=97=B4=E7=9A=84=E8=A6=81=E5=AF=B9=E4=B8=8A=20?= =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E6=96=B9=E7=9A=84=E6=95=B0=E6=8D=AE=E5=AF=B9?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BI/index.vue | 51 +++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/src/views/BI/index.vue b/src/views/BI/index.vue index 06c0c50..9902e72 100644 --- a/src/views/BI/index.vue +++ b/src/views/BI/index.vue @@ -540,16 +540,25 @@ export default { ).then((data) => { var yinhuanCount = [] data.valList.forEach((item, index) => { - if (item.HIDDENLEVEL == 'hiddenLevel1001') { // 忽略 + // if (item.HIDDENLEVEL == 'hiddenLevel1001') { // 忽略 + // yinhuanCount[0] = item.count + // } else if (item.HIDDENLEVEL == 'hiddenLevel1002') { // 一般隐患 + // yinhuanCount[1] = item.count + // } else if (item.HIDDENLEVEL == 'pecial') { // 特殊处置 + // yinhuanCount[2] = item.count + // } else if (item.HIDDENLEVEL == 'jdyh001') { // 较大隐患 + // yinhuanCount[3] = item.count + // } else if (item.HIDDENLEVEL == 'hiddenLevel2002') { // 重大隐患 + // yinhuanCount[4] = item.count + // } + if (item.HIDDENLEVEL == 'hiddenLevel1004') { // 轻微隐患 yinhuanCount[0] = item.count - } else if (item.HIDDENLEVEL == 'hiddenLevel1002') { // 一般隐患 + }else if (item.HIDDENLEVEL == 'hiddenLevel1002') { // 一般隐患 yinhuanCount[1] = item.count - } else if (item.HIDDENLEVEL == 'pecial') { // 特殊处置 + } else if (item.HIDDENLEVEL == 'jdyh001') { // 较大隐患 yinhuanCount[2] = item.count - } else if (item.HIDDENLEVEL == 'jdyh001') { // 较大隐患 - yinhuanCount[3] = item.count } else if (item.HIDDENLEVEL == 'hiddenLevel2002') { // 重大隐患 - yinhuanCount[4] = item.count + yinhuanCount[3] = item.count } }) this.initEcharts5(yinhuanCount) @@ -868,7 +877,7 @@ export default { left: 'center', top: '30%', style: { - text: '\n\n项', + text: '\n\n次', fill: '#ffffff', textAlign: 'center', fontSize: '12px', @@ -1056,8 +1065,8 @@ export default { labelLine: { normal: { show: true, - length: 15, - length2: 15 + length: 1, + length2: 1 } }, label: { @@ -1085,11 +1094,15 @@ export default { right: '0%', bottom: '15%', data: [ - '忽略', - '一般', - '特殊处置', - '较大隐患', - '重大隐患' + // '忽略' + // '一般', + // '特殊处置', + // '较大隐患', + // '重大隐患' + '轻微隐患', + '一般隐患', + '较大隐患', + '重大隐患' ], width: '20', height: '10', @@ -1125,22 +1138,18 @@ export default { data: [ { value: yinhuanCount[0], - name: '忽略' + name: '轻微隐患' }, { value: yinhuanCount[1], - name: '一般' + name: '一般隐患' }, { value: yinhuanCount[2], - name: '特殊处置' - }, - { - value: yinhuanCount[3], name: '较大隐患' }, { - value: yinhuanCount[4], + value: yinhuanCount[3], name: '重大隐患' }, {