API异常分布
-
API异常次数统计
-
+
-
-
+
-
-
+
@@ -76,7 +91,7 @@ import * as echarts from 'echarts'
export default {
// components: {},
// props: {},
- data() {
+ data () {
return {
// 排行榜
RankingData: [
@@ -122,65 +137,67 @@ export default {
}
],
// 表格
- AnomalyStatisticsTable: [{
- name: '接口名称',
- address: 'http://hhhhhhhhhhhhhhhhhhhh',
- method: '调用方法',
- type: '组件类型',
- provider: '提供商名称',
- state: '监控状态'
- },
- {
- name: '接口名称',
- address: 'http://hhhhhhhhhhhhhhhhhhhh',
- method: '调用方法',
- type: '组件类型',
- provider: '提供商名称',
- state: '监控状态'
- },
- {
- name: '接口名称',
- address: 'http://hhhhhhhhhhhhhhhhhhhh',
- method: '调用方法',
- type: '组件类型',
- provider: '提供商名称',
- state: '监控状态'
- },
- {
- name: '接口名称',
- address: 'http://hhhhhhhhhhhhhhhhhhhh',
- method: '调用方法',
- type: '组件类型',
- provider: '提供商名称',
- state: '监控状态'
- },
- {
- name: '接口名称',
- address: 'http://hhhhhhhhhhhhhhhhhhhh',
- method: '调用方法',
- type: '组件类型',
- provider: '提供商名称',
- state: '监控状态'
- }],
+ AnomalyStatisticsTable: [
+ {
+ name: '接口名称',
+ address: 'http://hhhhhhhhhhhhhhhhhhhh',
+ method: '调用方法',
+ type: '组件类型',
+ provider: '提供商名称',
+ state: '监控状态'
+ },
+ {
+ name: '接口名称',
+ address: 'http://hhhhhhhhhhhhhhhhhhhh',
+ method: '调用方法',
+ type: '组件类型',
+ provider: '提供商名称',
+ state: '监控状态'
+ },
+ {
+ name: '接口名称',
+ address: 'http://hhhhhhhhhhhhhhhhhhhh',
+ method: '调用方法',
+ type: '组件类型',
+ provider: '提供商名称',
+ state: '监控状态'
+ },
+ {
+ name: '接口名称',
+ address: 'http://hhhhhhhhhhhhhhhhhhhh',
+ method: '调用方法',
+ type: '组件类型',
+ provider: '提供商名称',
+ state: '监控状态'
+ },
+ {
+ name: '接口名称',
+ address: 'http://hhhhhhhhhhhhhhhhhhhh',
+ method: '调用方法',
+ type: '组件类型',
+ provider: '提供商名称',
+ state: '监控状态'
+ }
+ ],
// 分页
currentPage4: 1,
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
@@ -190,15 +207,16 @@ export default {
trigger: 'item'
},
legend: {
+ itemHeight: 10,
+ itemWidth: 10,
+ itemGap: 15,
+ textStyle: {
+ fontSize: 12, // 图例文字字体大小
+ color: '#666666' // 图例文字颜色
+ },
bottom: '22%'
},
color: ['#0087ff', '#ff8a00', '#fcc549', '#49c988'],
- grid: {
- left: '0%',
- right: '0%',
- bottom: '10%',
- containLabel: true
- },
series: [
{
center: ['50%', '20%'],
@@ -263,7 +281,8 @@ export default {
}
.ApiBox {
- background: url("~@/assets/img/CapabilityOperationMonitoring/bg-blue.png") no-repeat;
+ background: url('~@/assets/img/CapabilityOperationMonitoring/bg-blue.png')
+ no-repeat;
background-size: 100%;
width: 22.5rem;
height: 6.875rem;
@@ -300,7 +319,8 @@ export default {
}
.ApiBox:last-of-type {
- background: url("~@/assets/img/CapabilityOperationMonitoring/bg-yellow.png") no-repeat;
+ background: url('~@/assets/img/CapabilityOperationMonitoring/bg-yellow.png')
+ no-repeat;
background-size: 100%;
div {
@@ -370,7 +390,11 @@ export default {
display: block;
height: 1.25rem;
width: 2.25rem;
- background: linear-gradient(to right, rgba(204, 204, 204, 0.6), rgba(0, 0, 0, 0));
+ background: linear-gradient(
+ to right,
+ rgba(204, 204, 204, 0.6),
+ rgba(0, 0, 0, 0)
+ );
}
}
@@ -397,7 +421,11 @@ export default {
.RankingListData:nth-of-type(1) i b {
width: 3.75rem;
- background: linear-gradient(to right, rgba(251, 59, 5, 0.6), rgba(0, 0, 0, 0));
+ background: linear-gradient(
+ to right,
+ rgba(251, 59, 5, 0.6),
+ rgba(0, 0, 0, 0)
+ );
}
.RankingListData:nth-of-type(1) span {
@@ -406,7 +434,11 @@ export default {
.RankingListData:nth-of-type(2) i b {
width: 3.125rem;
- background: linear-gradient(to right, rgba(251, 123, 5, 0.6), rgba(0, 0, 0, 0));
+ background: linear-gradient(
+ to right,
+ rgba(251, 123, 5, 0.6),
+ rgba(0, 0, 0, 0)
+ );
}
.RankingListData:nth-of-type(2) span {
@@ -415,7 +447,11 @@ export default {
.RankingListData:nth-of-type(3) i b {
width: 2.75rem;
- background: linear-gradient(to right, rgba(250, 179, 2, 0.6), rgba(0, 0, 0, 0));
+ background: linear-gradient(
+ to right,
+ rgba(250, 179, 2, 0.6),
+ rgba(0, 0, 0, 0)
+ );
}
.RankingListData:nth-of-type(3) span {
@@ -426,7 +462,8 @@ export default {
.AbnormalDistribution {
margin-right: 3.75rem;
- .container-body1 {}
+ .container-body1 {
+ }
}
.AnomalyStatistics {
@@ -501,9 +538,7 @@ export default {
}
}
}
-
}
-
}
}