CN-774 维度表相关优化:Top选择50后,由于增加了滑动条,宽度和高度产生变化;排序功能,不论是否显示Top50,都按50条数据来排序;

This commit is contained in:
hyx
2022-11-09 15:22:09 +08:00
parent faabc949c0
commit 3e4cc199a6
5 changed files with 64 additions and 60 deletions

View File

@@ -66,7 +66,7 @@ import {
import { getPanelList, getChartList } from '@/utils/api'
import { getNowTime, getSecond } from '@/utils/date-util'
import { getTypeCategory } from '@/views/charts/charts/tools'
import { urlParamsHandler, overwriteUrl,getDnsMapData } from '@/utils/tools'
import { urlParamsHandler, overwriteUrl, getDnsMapData } from '@/utils/tools'
import ChartList from '@/views/charts2/ChartList'
import { useStore } from 'vuex'
@@ -109,15 +109,15 @@ export default {
},
async mounted () {
// this.panelName = this.$store.getters.getPanelName
let pName = this.$route.query.panelName ? this.$t(this.$route.query.panelName) : ''
let curTabProp = this.$route.query.dimensionType ? this.$route.query.dimensionType : null
const pName = this.$route.query.panelName ? this.$t(this.$route.query.panelName) : ''
const curTabProp = this.$route.query.dimensionType ? this.$route.query.dimensionType : null
this.dnsQtypeMapData = await getDnsMapData('dnsQtype')
this.dnsRcodeMapData = await getDnsMapData('dnsRcode')
if(curTabProp === 'qtype'){
if (curTabProp === 'qtype') {
this.panelName = this.dnsQtypeMapData.get(pName)
}else if(curTabProp === 'rcode'){
} else if (curTabProp === 'rcode') {
this.panelName = this.dnsRcodeMapData.get(pName)
}else {
} else {
this.panelName = pName
}