feat: 网络概况 折线图接口调试
This commit is contained in:
@@ -133,6 +133,14 @@ export const api = {
|
|||||||
DnsServiceInsights: {
|
DnsServiceInsights: {
|
||||||
alarmInfoCount: '/interface/dns/alarmInfoCount'
|
alarmInfoCount: '/interface/dns/alarmInfoCount'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// networkOverview
|
||||||
|
netWorkOverview: {
|
||||||
|
totalTrafficAnalysis: 'interface/overview/totalTrafficAnalysis',
|
||||||
|
eventSeverity: '/interface/overview/eventSeverity',
|
||||||
|
eventType: '/interface/overview/eventType',
|
||||||
|
ddosEventAnalysis: '/interface/overview/ddosEventAnalysis',
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,49 +10,61 @@
|
|||||||
<network-overview-ddos-detection
|
<network-overview-ddos-detection
|
||||||
v-else-if="chart.type === typeMapping.networkOverview.ddosDetection"
|
v-else-if="chart.type === typeMapping.networkOverview.ddosDetection"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
|
:time-filter="timeFilter"
|
||||||
></network-overview-ddos-detection>
|
></network-overview-ddos-detection>
|
||||||
<network-overview-performance-event
|
<network-overview-performance-event
|
||||||
v-else-if="chart.type === typeMapping.networkOverview.performanceEvent"
|
v-else-if="chart.type === typeMapping.networkOverview.performanceEvent"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
|
:time-filter="timeFilter"
|
||||||
></network-overview-performance-event>
|
></network-overview-performance-event>
|
||||||
<network-overview-tabs
|
<network-overview-tabs
|
||||||
v-else-if="chart.type === typeMapping.networkOverview.table"
|
v-else-if="chart.type === typeMapping.networkOverview.table"
|
||||||
|
:time-filter="timeFilter"
|
||||||
></network-overview-tabs>
|
></network-overview-tabs>
|
||||||
<network-overview-apps
|
<network-overview-apps
|
||||||
v-else-if="chart.type === typeMapping.networkOverview.appList"
|
v-else-if="chart.type === typeMapping.networkOverview.appList"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
|
:time-filter="timeFilter"
|
||||||
>
|
>
|
||||||
</network-overview-apps>
|
</network-overview-apps>
|
||||||
<npm-tabs
|
<npm-tabs
|
||||||
v-else-if="chart.type === typeMapping.npm.npmTabs"
|
v-else-if="chart.type === typeMapping.npm.npmTabs"
|
||||||
|
:time-filter="timeFilter"
|
||||||
@tabChange="npmTabChange"
|
@tabChange="npmTabChange"
|
||||||
></npm-tabs>
|
></npm-tabs>
|
||||||
<npm-network-quantity
|
<npm-network-quantity
|
||||||
v-else-if="chart.type === typeMapping.npm.npmNetworkQuantity"
|
v-else-if="chart.type === typeMapping.npm.npmNetworkQuantity"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-network-quantity>
|
></npm-network-quantity>
|
||||||
<npm-app-category-score
|
<npm-app-category-score
|
||||||
v-else-if="chart.type === typeMapping.npm.npmAppCategoryScore"
|
v-else-if="chart.type === typeMapping.npm.npmAppCategoryScore"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-app-category-score>
|
></npm-app-category-score>
|
||||||
<npm-map
|
<npm-map
|
||||||
v-else-if="chart.type === typeMapping.npm.npmMap"
|
v-else-if="chart.type === typeMapping.npm.npmMap"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-map>
|
></npm-map>
|
||||||
<npm-line
|
<npm-line
|
||||||
v-else-if="chart.type === typeMapping.npm.npmLine"
|
v-else-if="chart.type === typeMapping.npm.npmLine"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-line>
|
></npm-line>
|
||||||
<npm-events-header
|
<npm-events-header
|
||||||
v-else-if="chart.type === typeMapping.npm.npmEventsHeader"
|
v-else-if="chart.type === typeMapping.npm.npmEventsHeader"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-events-header>
|
></npm-events-header>
|
||||||
<npm-events-by-type
|
<npm-events-by-type
|
||||||
v-else-if="chart.type === typeMapping.npm.npmEventsByType"
|
v-else-if="chart.type === typeMapping.npm.npmEventsByType"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-events-by-type>
|
></npm-events-by-type>
|
||||||
<npm-recent-events
|
<npm-recent-events
|
||||||
v-else-if="chart.type === typeMapping.npm.npmRecentEvents"
|
v-else-if="chart.type === typeMapping.npm.npmRecentEvents"
|
||||||
|
:time-filter="timeFilter"
|
||||||
:chart="chart"
|
:chart="chart"
|
||||||
></npm-recent-events>
|
></npm-recent-events>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -22,12 +22,11 @@ export const pieChartOption1 = {
|
|||||||
fontFamily: 'SimHei',
|
fontFamily: 'SimHei',
|
||||||
rich: {
|
rich: {
|
||||||
a: {
|
a: {
|
||||||
width: 35,
|
width: 65,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
fontWeight: 'bold'
|
fontWeight: 'bold'
|
||||||
},
|
},
|
||||||
b: {
|
b: {
|
||||||
width: 6,
|
|
||||||
align: 'left',
|
align: 'left',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: '#575757'
|
color: '#575757'
|
||||||
@@ -39,10 +38,10 @@ export const pieChartOption1 = {
|
|||||||
let value
|
let value
|
||||||
data.forEach(t => {
|
data.forEach(t => {
|
||||||
if (t.name === name) {
|
if (t.name === name) {
|
||||||
value = t.describe
|
value = t.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const arr = ['{a|' + ' ' + name + '}' + '{b|' + value + '}']
|
const arr = ['{a|' + ' ' + value + '}' + '{b|' + name + '}']
|
||||||
return arr
|
return arr
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -75,12 +74,11 @@ export const pieChartOption2 = {
|
|||||||
fontFamily: 'SimHei',
|
fontFamily: 'SimHei',
|
||||||
rich: {
|
rich: {
|
||||||
a: {
|
a: {
|
||||||
width: 35,
|
width: 65,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
fontWeight: 'bold'
|
fontWeight: 'bold'
|
||||||
},
|
},
|
||||||
b: {
|
b: {
|
||||||
width: 6,
|
|
||||||
align: 'left',
|
align: 'left',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: '#575757'
|
color: '#575757'
|
||||||
@@ -92,10 +90,10 @@ export const pieChartOption2 = {
|
|||||||
let value
|
let value
|
||||||
data.forEach(t => {
|
data.forEach(t => {
|
||||||
if (t.name === name) {
|
if (t.name === name) {
|
||||||
value = t.describe
|
value = t.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const arr = ['{a|' + ' ' + name + '}' + '{b|' + value + '}']
|
const arr = ['{a|' + ' ' + value + '}' + '{b|' + name + '}']
|
||||||
return arr
|
return arr
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -155,9 +153,9 @@ export const stackedLineChartOption = {
|
|||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
top: '30%',
|
top: '12%',
|
||||||
left: '1%',
|
left: '2%',
|
||||||
right: '2%',
|
right: '1.5%',
|
||||||
bottom: 15,
|
bottom: 15,
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user