shuishen
2023-02-04 1204a85b95a774b229964d27500a3ed436767243
现有设备图表显示调整
1 files modified
28 ■■■■ changed files
src/views/home/components/rightContainer.vue 28 ●●●● patch | view | raw | blame | history
src/views/home/components/rightContainer.vue
@@ -183,6 +183,7 @@
        })
    },
    methods: {
        // actTabClick (type) {
        //     this.acttype = type
@@ -460,9 +461,22 @@
            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饼图数据
@@ -553,8 +567,16 @@
                                }
                                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: {