BI根据客户提出的优化数据,中间的要对上

右上方的数据对上
pull/2/head
guoyuepeng 2023-11-15 17:27:17 +08:00
parent fc6f97c03e
commit 21c0655b0b
1 changed files with 30 additions and 21 deletions

View File

@ -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') { //
yinhuanCount[1] = item.count
} else if (item.HIDDENLEVEL == 'pecial') { //
yinhuanCount[2] = item.count
} else if (item.HIDDENLEVEL == 'jdyh001') { //
yinhuanCount[3] = item.count
yinhuanCount[2] = 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,9 +1094,13 @@ export default {
right: '0%',
bottom: '15%',
data: [
'忽略',
'一般',
'特殊处置',
// ''
// '',
// '',
// '',
// ''
'轻微隐患',
'一般隐患',
'较大隐患',
'重大隐患'
],
@ -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: '重大隐患'
},
{