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 @@