|
@@ -94,8 +94,8 @@ export default {
|
|
|
if ((this.plantName != '合计' && this.plantName == this.pointList[i].plantName)
|
|
|
|| this.plantName == '合计' || this.plantName == '') {
|
|
|
if (flag) {
|
|
|
- this.option.legend.data[i] = this.pointList[i].pointType
|
|
|
- this.option.series[0].data[i] = {value: this.pointList[i].jpl, name: this.pointList[i].pointType}
|
|
|
+ this.option.legend.data.push(this.pointList[i].pointType)
|
|
|
+ this.option.series[0].data.push({value: this.pointList[i].jpl, name: this.pointList[i].pointType})
|
|
|
} else {
|
|
|
this.option.series[0].data[j] = {
|
|
|
value: parseFloat(this.option.series[0].data[j].value) + parseFloat(this.pointList[i].jpl),
|