| | |
| | | }) |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | // actTabClick (type) { |
| | | // this.acttype = type |
| | |
| | | |
| | | const data = await this.getEquipment() |
| | | |
| | | const newData = data.filter(item => { |
| | | if (item.value != 0) { |
| | | return item |
| | | } |
| | | }) |
| | | |
| | | equipmentmyChart.setOption(this.initEquipmentOptions(data)) |
| | | |
| | | this.equipmentEchartsCarousel() |
| | | if (newData.length > 1) { |
| | | this.equipmentEchartsCarousel() |
| | | } else { |
| | | clearInterval(timer) |
| | | equipmentmyChart.off('mouseover') |
| | | equipmentmyChart.off('mouseout') |
| | | } |
| | | |
| | | }, |
| | | |
| | | // 现有设备options饼图数据 |
| | |
| | | } |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | fontSize: fontSize(16) |
| | | |
| | | fontSize: fontSize(16), |
| | | normal: { |
| | | formatter (e) { |
| | | if (e.data.value == 0) { |
| | | e.data.emphasis.label.show = false |
| | | } else { |
| | | return `${e.data.name}` |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | normal: { |