CN-334 Detection--严重程度趋势图更改
1.x轴接口返回数据格式更改,安全事件和服务质量事件都需要更改 2.修复detection俩页面查询出数据后页面卡死问题 3.列表下拉内容假数据去掉,对接接口数据
This commit is contained in:
@@ -75,31 +75,17 @@ export default {
|
||||
methods: {
|
||||
query () {
|
||||
this.basicInfo = {
|
||||
clientLocationCountry: 1212,
|
||||
clientLocationProvince: '112.2.2.3',
|
||||
clientLocationRegion: 'China',
|
||||
clientAsn: 'Hebei',
|
||||
serverLocationCountry: 'Xingtai',
|
||||
serverLocationProvince: 'hehe',
|
||||
serverLocationRegion: '2.2.2.2',
|
||||
serverAsn: 'China',
|
||||
domainCategoryName: 'Hebei',
|
||||
domainCategoryGroup: 'Xingtai',
|
||||
domainReputationScore: 'hehe',
|
||||
domainReputationLevel: 'high',
|
||||
appCategory: 'vpn',
|
||||
appSubcategory: 'foreign vpn',
|
||||
appRisk: 'critical'
|
||||
}
|
||||
/* this.queryBasic().then(responses => {
|
||||
}) */
|
||||
this.queryBasic().then(responses => {
|
||||
})
|
||||
},
|
||||
queryBasic () {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
get(api.detection.performanceEvent.overviewBasic, { serverIp: this.detection.appName }).then(response => {
|
||||
if (response.code === 200) {
|
||||
resolve(response.data.list)
|
||||
this.basicInfo = response.data.result[0]
|
||||
resolve(response.data.result)
|
||||
} else {
|
||||
reject(response)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user