From 194f6fcb3ccc1e1255e95440014c40d137bbf538 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Tue, 28 Jun 2022 19:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E8=BF=90=E8=A1=8C=E7=9B=91?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{日历.png => calendar.png} | Bin .../components/AbnormalSituation.vue | 117 +++++++------- .../CapabilityOperationMonitoringTime.vue | 99 ------------ .../CapabilityOperationMonitoring/index.vue | 147 ++++++++++++++++-- 4 files changed, 191 insertions(+), 172 deletions(-) rename back/src/assets/img/CapabilityOperationMonitoring/{日历.png => calendar.png} (100%) delete mode 100644 back/src/views/modules/sys/CapabilityOperationMonitoring/components/CapabilityOperationMonitoringTime.vue diff --git a/back/src/assets/img/CapabilityOperationMonitoring/日历.png b/back/src/assets/img/CapabilityOperationMonitoring/calendar.png similarity index 100% rename from back/src/assets/img/CapabilityOperationMonitoring/日历.png rename to back/src/assets/img/CapabilityOperationMonitoring/calendar.png diff --git a/back/src/views/modules/sys/CapabilityOperationMonitoring/components/AbnormalSituation.vue b/back/src/views/modules/sys/CapabilityOperationMonitoring/components/AbnormalSituation.vue index db068641..d0406ad0 100644 --- a/back/src/views/modules/sys/CapabilityOperationMonitoring/components/AbnormalSituation.vue +++ b/back/src/views/modules/sys/CapabilityOperationMonitoring/components/AbnormalSituation.vue @@ -24,20 +24,9 @@

API异常次数排行TOP10

@@ -91,7 +76,7 @@ import * as echarts from 'echarts' export default { // components: {}, // props: {}, - data () { + data() { return { // 排行榜 RankingData: [ @@ -184,20 +169,20 @@ export default { total: 0 } }, - mounted () { + mounted() { this.myEchars() // 分页 this.total = this.AnomalyStatisticsTable.length }, methods: { // 分页 - handleSizeChange (val) { + handleSizeChange(val) { console.log(`每页 ${val} 条`) }, - handleCurrentChange (val) { + handleCurrentChange(val) { console.log(`当前页: ${val}`) }, - myEchars () { + myEchars() { var chartDom = document.getElementById('main') var myChart = echarts.init(chartDom) var option @@ -214,12 +199,23 @@ export default { fontSize: 12, // 图例文字字体大小 color: '#666666' // 图例文字颜色 }, - bottom: '22%' + bottom: '13%', + formatter: function (name) { + var index = 0 + var clientlabels = ['智能算法', '图层服务', '开发组件', '业务组件'] + var clientcounts = ['25%', '25%', '25%', '25%'] + clientlabels.forEach(function (value, i) { + if (value == name) { + index = i + } + }) + return name + ' ' + clientcounts[index] + } }, color: ['#0087ff', '#ff8a00', '#fcc549', '#49c988'], series: [ { - center: ['50%', '20%'], + center: ['50%', '23%'], name: 'api异常分布', type: 'pie', radius: ['40%', '70%'], @@ -261,7 +257,6 @@ export default { diff --git a/back/src/views/modules/sys/CapabilityOperationMonitoring/index.vue b/back/src/views/modules/sys/CapabilityOperationMonitoring/index.vue index 62e2f0e8..eebaeb82 100644 --- a/back/src/views/modules/sys/CapabilityOperationMonitoring/index.vue +++ b/back/src/views/modules/sys/CapabilityOperationMonitoring/index.vue @@ -1,8 +1,23 @@