|
@@ -172,11 +172,13 @@ export default {
|
|
|
return this.fireIndexLabel[this.type]
|
|
|
}
|
|
|
if (this.type === 0) {
|
|
|
+ const temp = this.monthLabel.slice()
|
|
|
if (this.activeIndex === 0) {
|
|
|
-
|
|
|
- return this.monthLabel.toSpliced(0, 1);
|
|
|
+ temp.splice(0, 1);
|
|
|
+ } else {
|
|
|
+ temp.splice(this.monthLabel.length - 1, 1);
|
|
|
}
|
|
|
- return this.monthLabel.toSpliced(this.monthLabel.length - 1, 1);
|
|
|
+ return temp;
|
|
|
} else {
|
|
|
return this.yearLabel
|
|
|
}
|
|
@@ -233,13 +235,21 @@ export default {
|
|
|
this.monthLabel = month.map(item => item.y)
|
|
|
this.yearLabel = year.map(item => item.n)
|
|
|
// console.log('009988--------',month);
|
|
|
- this.monthData = [
|
|
|
- month.map((item,index) => month.length - 1 === index ? ({ name: item.qhyy, value: item.hzqs, itemStyle: {
|
|
|
+ const temp1 = month.map((item,index) => month.length - 1 === index ? ({ name: item.qhyy, value: item.hzqs, itemStyle: {
|
|
|
color: "#cccccc89",
|
|
|
- } }) : ({ name: item.y, value: item.hzqs })).toSpliced(0, 1),
|
|
|
- month.map(item => ({ name: item.y, value: item.wrs })).toSpliced(month.length - 1, 1),
|
|
|
- month.map(item => ({ name: item.y, value: item.srs })).toSpliced(month.length - 1, 1),
|
|
|
- month.map(item => ({ name: item.y, value: parseInt(item.zzjjss / 10000) })).toSpliced(month.length - 1, 1),
|
|
|
+ } }) : ({ name: item.y, value: item.hzqs }));
|
|
|
+ const temp2 = month.map(item => ({ name: item.y, value: item.wrs }));
|
|
|
+ const temp3 = month.map(item => ({ name: item.y, value: item.srs }));
|
|
|
+ const temp4 = month.map(item => ({ name: item.y, value: parseInt(item.zzjjss / 10000) }));
|
|
|
+ temp1.splice(0, 1);
|
|
|
+ temp2.splice(month.length - 1, 1);
|
|
|
+ temp3.splice(month.length - 1, 1);
|
|
|
+ temp4.splice(month.length - 1, 1);
|
|
|
+ this.monthData = [
|
|
|
+ temp1,
|
|
|
+ temp2,
|
|
|
+ temp3,
|
|
|
+ temp4,
|
|
|
[]
|
|
|
];
|
|
|
this.yearData = [
|