fix: 修复实体下拉时部分接口入参要求不符导致的报错,以及实体列表domain实体的字段使用错误问题

This commit is contained in:
刘洪洪
2023-08-30 16:49:59 +08:00
parent cc059c6ab1
commit 0d4dc15234
4 changed files with 16 additions and 13 deletions

View File

@@ -43,12 +43,12 @@
<div class="basic-info__item">
<i class="cn-icon cn-icon-sub-category"></i>
<span class="row-item-label">{{ $t('entities.category') }}&nbsp;:&nbsp;&nbsp;</span>
<span class="row-item-value">{{ entityData.category ? entityData.category.name : '-' }}</span>
<span class="row-item-value">{{ entityData.category ? entityData.category.categoryGroup : '-' }}</span>
</div>
<div class="basic-info__item">
<i class="cn-icon cn-icon-category"></i>
<span class="row-item-label">{{ $t('entities.subcategory') }}&nbsp;:&nbsp;&nbsp;</span>
<span class="row-item-value">{{ entityData.category ? entityData.category.group : '-' }}</span>
<span class="row-item-value">{{ entityData.category ? entityData.category.categoryName : '-' }}</span>
</div>
<div class="basic-info__item">
<i class="cn-icon cn-icon-credit-rating"></i>

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 } from '@/utils/date-util'
import { dateFormatByAppearance, getMillisecond, getSecond } from '@/utils/date-util'
import Loading from '@/components/common/Loading'
import { ref } from 'vue'
@@ -320,9 +320,10 @@ export default {
dateFormatByAppearance,
getQueryParams () {
return {
// startTime: getSecond(this.timeFilter.startTime),
// endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
appName: this.entity.entityValue
}
},
getPerformanceQueryParams () {

View File

@@ -221,7 +221,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'
@@ -325,9 +325,10 @@ export default {
dateFormatByAppearance,
getQueryParams () {
return {
// startTime: getSecond(this.timeFilter.startTime),
// endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
domain: this.entity.entityValue
}
},
getPerformanceQueryParams () {

View File

@@ -405,9 +405,10 @@ export default {
dateFormatByAppearance,
getQueryParams () {
return {
// startTime: getSecond(this.timeFilter.startTime),
// endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
resource: this.entity.entityValue,
ip: this.entity.entityValue
}
},
getPerformanceQueryParams () {