|
@@ -20,7 +20,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- xindex: [],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -29,7 +28,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.deal();
|
|
|
this.$nextTick(() => {
|
|
|
this.initChart();
|
|
|
});
|
|
@@ -40,11 +38,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
- deal() {
|
|
|
- for (let index = 0; index < 35; index++) {
|
|
|
- this.xindex.push(index);
|
|
|
- }
|
|
|
- },
|
|
|
initChart() {
|
|
|
let seriesData = [];
|
|
|
this.warningTimeList.forEach((item) => {
|
|
@@ -75,7 +68,7 @@ export default {
|
|
|
{
|
|
|
name: "报警次数",
|
|
|
type: "pie",
|
|
|
- radius: ["30%", "60%"],
|
|
|
+ radius: ["30%", "55%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
itemStyle: {
|
|
|
borderRadius: 10,
|
|
@@ -115,13 +108,6 @@ export default {
|
|
|
};
|
|
|
option && myChart.setOption(option);
|
|
|
},
|
|
|
- Compare(property) {
|
|
|
- return function (a, b) {
|
|
|
- var value1 = a[property];
|
|
|
- var value2 = b[property];
|
|
|
- return value1 - value2;
|
|
|
- };
|
|
|
- },
|
|
|
},
|
|
|
watch: {
|
|
|
warningTimeList: {
|