CN-1457 fix: 实体列表检索新增时间筛选框
This commit is contained in:
@@ -216,7 +216,7 @@ import Chart from '@/views/charts/Chart'
|
||||
import _ from 'lodash'
|
||||
import axios from 'axios'
|
||||
import relatedServer from '@/mixins/relatedServer'
|
||||
import { dateFormatByAppearance, getMillisecond } from '@/utils/date-util'
|
||||
import { dateFormatByAppearance, getMillisecond, getSecond } from '@/utils/date-util'
|
||||
import Loading from '@/components/common/Loading'
|
||||
import { ref } from 'vue'
|
||||
|
||||
@@ -322,6 +322,8 @@ export default {
|
||||
dateFormatByAppearance,
|
||||
getQueryParams () {
|
||||
return {
|
||||
startTime: getSecond(this.timeFilter.startTime),
|
||||
endTime: getSecond(this.timeFilter.endTime),
|
||||
resource: this.entity.entityValue
|
||||
}
|
||||
},
|
||||
|
||||
@@ -325,15 +325,10 @@ export default {
|
||||
getMillisecond,
|
||||
dateFormatByAppearance,
|
||||
getQueryParams () {
|
||||
return {
|
||||
resource: this.entity.entityValue
|
||||
}
|
||||
},
|
||||
getQueryParamsWithTime () {
|
||||
return {
|
||||
startTime: getSecond(this.timeFilter.startTime),
|
||||
endTime: getSecond(this.timeFilter.endTime),
|
||||
domain: this.entity.entityValue
|
||||
resource: this.entity.entityValue
|
||||
}
|
||||
},
|
||||
getPerformanceQueryParams () {
|
||||
@@ -355,7 +350,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getBasicProperties () {
|
||||
axios.get(this.basicProperties, { params: this.getQueryParamsWithTime() }).then(response => {
|
||||
axios.get(this.basicProperties, { params: this.getQueryParams() }).then(response => {
|
||||
if (response.status === 200) {
|
||||
this.entityData = {
|
||||
...this.entityData,
|
||||
|
||||
@@ -251,7 +251,7 @@ import { valueToRangeValue } from '@/utils/unit-convert'
|
||||
import Chart from '@/views/charts/Chart'
|
||||
import _ from 'lodash'
|
||||
import relatedServer from '@/mixins/relatedServer'
|
||||
import { dateFormatByAppearance, getMillisecond } from '@/utils/date-util'
|
||||
import { dateFormatByAppearance, getMillisecond, getSecond } from '@/utils/date-util'
|
||||
import Loading from '@/components/common/Loading'
|
||||
import axios from 'axios'
|
||||
|
||||
@@ -406,6 +406,8 @@ export default {
|
||||
dateFormatByAppearance,
|
||||
getQueryParams () {
|
||||
return {
|
||||
startTime: getSecond(this.timeFilter.startTime),
|
||||
endTime: getSecond(this.timeFilter.endTime),
|
||||
resource: this.entity.entityValue
|
||||
}
|
||||
},
|
||||
@@ -433,8 +435,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
|
||||
}
|
||||
|
||||
|
||||
@@ -141,8 +141,8 @@ export default {
|
||||
},
|
||||
getQueryParams () {
|
||||
return {
|
||||
// startTime: getSecond(this.timeFilter.startTime),
|
||||
// endTime: getSecond(this.timeFilter.endTime),
|
||||
startTime: getSecond(this.timeFilter.startTime),
|
||||
endTime: getSecond(this.timeFilter.endTime),
|
||||
resource: this.entityType
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user