From e32153c2228a174a00ad3d19fad214c9efb5b251 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Tue, 14 Jun 2022 21:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/index.vue | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/vue/src/views/index.vue b/vue/src/views/index.vue index 80f20617..7d512361 100644 --- a/vue/src/views/index.vue +++ b/vue/src/views/index.vue @@ -549,7 +549,7 @@ export default { productName: data[i].productName, activeTime: data[i].activeTime == null ? '' : data[i].activeTime, deviceId: data[i].deviceId, - serialNumber:data[i].serialNumber, + serialNumber: data[i].serialNumber, }); } } @@ -806,22 +806,20 @@ export default { data: ['连接数量', '会话数量', '主题数量', '订阅数量', '路由数量', '保留消息'] }, series: [{ - name: '历史最大数', - type: 'bar', - data: [this.stats["connections.max"], this.stats["sessions.max"], this.stats["topics.max"], this.stats["subscribers.max"], this.stats["routes.max"], this.stats["retained.max"]], - itemStyle: { - color: '#409EFF' - } - }, - { - name: '当前数量', - type: 'bar', - data: [this.stats["connections.count"], this.stats["sessions.count"], this.stats["topics.count"], this.stats["subscribers.count"], this.stats["routes.count"], this.stats["retained.count"]], - itemStyle: { - color: '#67C23A' - } + name: '当前数量', + type: 'bar', + data: [this.stats["connections.count"], this.stats["sessions.count"], this.stats["topics.count"], this.stats["subscribers.count"], this.stats["routes.count"], this.stats["retained.count"]], + itemStyle: { + color: '#67C23A' } - ] + }, { + name: '历史最大数', + type: 'bar', + data: [this.stats["connections.max"], this.stats["sessions.max"], this.stats["topics.max"], this.stats["subscribers.max"], this.stats["routes.max"], this.stats["retained.max"]], + itemStyle: { + color: '#409EFF' + } + }] }; option && myChart.setOption(option);