CN-1325 fix: 在Entity列表页搜索时,搜索结果中Relationship区域数据展示不全

This commit is contained in:
刘洪洪
2023-09-20 11:31:37 +08:00
parent 354fc2665b
commit c963941e3d
3 changed files with 13 additions and 15 deletions

View File

@@ -217,7 +217,7 @@ import Chart from '@/views/charts/Chart'
import _ from 'lodash'
import axios from 'axios'
import relatedServer from '@/mixins/relatedServer'
import { dateFormatByAppearance, getMillisecond, getSecond } from '@/utils/date-util'
import { dateFormatByAppearance, getMillisecond } from '@/utils/date-util'
import Loading from '@/components/common/Loading'
import { ref } from 'vue'
@@ -320,10 +320,7 @@ export default {
dateFormatByAppearance,
getQueryParams () {
return {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
appName: this.entity.entityValue
resource: this.entity.entityValue
}
},
getPerformanceQueryParams () {

View File

@@ -325,10 +325,14 @@ export default {
getMillisecond,
dateFormatByAppearance,
getQueryParams () {
return {
resource: this.entity.entityValue
}
},
getQueryParamsWithTime () {
return {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
domain: this.entity.entityValue
}
},
@@ -351,7 +355,7 @@ export default {
})
},
getBasicProperties () {
axios.get(this.basicProperties, { params: this.getQueryParams() }).then(response => {
axios.get(this.basicProperties, { params: this.getQueryParamsWithTime() }).then(response => {
if (response.status === 200) {
this.entityData = {
...this.entityData,
@@ -377,7 +381,7 @@ export default {
this.$nextTick(() => {
setTimeout(() => {
this.chartGetMap()
this.getBasicProperties()
// this.getBasicProperties()
this.queryRelated()
}, 250)
})

View File

@@ -254,7 +254,7 @@ import { valueToRangeValue } from '@/utils/unit-convert'
import Chart from '@/views/charts/Chart'
import _ from 'lodash'
import relatedServer from '@/mixins/relatedServer'
import { dateFormatByAppearance, getMillisecond, getSecond } from '@/utils/date-util'
import { dateFormatByAppearance, getMillisecond } from '@/utils/date-util'
import Loading from '@/components/common/Loading'
import axios from 'axios'
@@ -406,10 +406,7 @@ export default {
dateFormatByAppearance,
getQueryParams () {
return {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
ip: this.entity.entityValue
resource: this.entity.entityValue
}
},
getPerformanceQueryParams () {
@@ -436,8 +433,8 @@ export default {
},
getOpenPort () {
const params = {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
// startTime: getSecond(this.timeFilter.startTime),
// endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue
}