|
|
@@ -240,13 +240,14 @@ |
|
|
|
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", |
|
|
|
"#ea7ccc" |
|
|
|
], |
|
|
|
padding: [25, 25, 25, 25], |
|
|
|
enableScroll: false, |
|
|
|
padding: [15, 15, 0, 5], |
|
|
|
enableScroll: true, |
|
|
|
legend: {}, |
|
|
|
xAxis: { |
|
|
|
rotateLabel: true, |
|
|
|
rotateAngle: 90, |
|
|
|
fontSize: 10, |
|
|
|
itemCount: 4, |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
gridType: "dash", |
|
|
@@ -291,7 +292,6 @@ |
|
|
|
}) |
|
|
|
|
|
|
|
let arr1 = res.filter(arr => arr.indexType == index) |
|
|
|
|
|
|
|
arr1.map(ie => { |
|
|
|
let objs = this[item].findIndex(obj => { |
|
|
|
return obj.title == ie.indexName && obj.indexType == ie |
|
|
@@ -397,6 +397,9 @@ |
|
|
|
}] |
|
|
|
} |
|
|
|
this.$forceUpdate() |
|
|
|
} else { |
|
|
|
item.lineOptsect = null |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@@ -408,7 +411,6 @@ |
|
|
|
if (res) { |
|
|
|
this.IndicatorDistributionArr.forEach(item => { |
|
|
|
if (res[item.id]) { |
|
|
|
console.log('进来了') |
|
|
|
item.type = 'pie' |
|
|
|
item.canvasId = `IndicatorDistributionArrs${item.id}` |
|
|
|
item.lineOptsect = { |
|
|
@@ -426,7 +428,7 @@ |
|
|
|
pie: { |
|
|
|
activeOpacity: 0.5, |
|
|
|
activeRadius: 10, |
|
|
|
offsetAngle: 0, |
|
|
|
offsetAngle: 0.5, |
|
|
|
labelWidth: 15, |
|
|
|
border: false, |
|
|
|
borderWidth: 3, |
|
|
@@ -437,8 +439,17 @@ |
|
|
|
labelOffsetY: 10, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
// '无效原因' |
|
|
|
if (item.id == 55) { |
|
|
|
item.lineOpts.legend = { |
|
|
|
show: false |
|
|
|
} |
|
|
|
} |
|
|
|
this.$forceUpdate() |
|
|
|
} else { |
|
|
|
item.lineOptsect = null |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
|
|
|
@@ -467,6 +478,9 @@ |
|
|
|
item.lineOptsect.series[0].data.push(itme[item.params] || 0) |
|
|
|
}) |
|
|
|
this.$forceUpdate() |
|
|
|
} else { |
|
|
|
item.lineOptsect = null |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|