From 01e9fa87a2915ed15dab01ca385ba67cbb142428 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 31 Aug 2023 11:18:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entityList/entityListMixin.js | 63 ------------------- 1 file changed, 63 deletions(-) diff --git a/src/views/entityExplorer/entityList/entityListMixin.js b/src/views/entityExplorer/entityList/entityListMixin.js index f5656b55..b1b56cce 100644 --- a/src/views/entityExplorer/entityList/entityListMixin.js +++ b/src/views/entityExplorer/entityList/entityListMixin.js @@ -99,66 +99,6 @@ export default { }) window.open(href, '_blank') }, - querySecurity () { - const queryParams = { - startTime: getSecond(this.timeFilter.startTime), - endTime: getSecond(this.timeFilter.endTime) - } - let url - switch (this.entityData.entityType) { - case ('ip'): { - url = api.entityIpDetailSecurity - queryParams.ip = this.entityName - break - } - case ('domain'): { - url = api.entityDomainDetailSecurity - queryParams.domain = this.entityName - break - } - case ('app'): { - url = api.entityAppDetailSecurity - queryParams.appName = this.entityName - break - } - default: break - } - axios.get(url, { params: queryParams }).then(response => { - if (response.status === 200) { - this.entityData.securityCount = response.data.data.result ? response.data.data.result.length : 0 - } - }) - }, - queryPerformance () { - const queryParams = { - startTime: getSecond(this.timeFilter.startTime), - endTime: getSecond(this.timeFilter.endTime) - } - let url - switch (this.entityData.entityType) { - case ('ip'): { - url = api.entityIpDetailPerformance - queryParams.ip = this.entityName - break - } - case ('domain'): { - url = api.entityDomainDetailPerformance - queryParams.domain = this.entityName - break - } - case ('app'): { - url = api.entityAppDetailPerformance - queryParams.appName = this.entityName - break - } - default: break - } - axios.get(url, { params: queryParams }).then(response => { - if (response.status === 200) { - this.entityData.performanceCount = response.data.data.result ? response.data.data.result.length : 0 - } - }) - }, getQueryParams () { return { // startTime: getSecond(this.timeFilter.startTime), @@ -324,13 +264,10 @@ export default { this.debounceFunc = this.$_.debounce(this.resize, 200) window.addEventListener('resize', this.debounceFunc) this.chartOption = _.cloneDeep(entityListLineOption) - // this.entityData = _.cloneDeep(this.entity) this.entityData = { ...this.entityData, ...this.entity } this.initUrl() setTimeout(() => { - this.querySecurity() this.queryEntityDetailTraffic() - this.queryPerformance() this.queryNetworkQuantity() this.queryEventNum() })