fix: 修复network overview 第三级菜单的曲线图请求参数不对的问题
This commit is contained in:
@@ -89,6 +89,7 @@ export default {
|
||||
const { query } = useRoute()
|
||||
const lineRefer = ref(query.lineRefer || 'Average')
|
||||
const lineTab = ref(query.lineTab || '')
|
||||
const fourthMenu = ref(query.fourthMenu || '')
|
||||
const lineQueryCondition = ref(query.lineQueryCondition || '')
|
||||
const lineThirdDimensionQueryCondition = ref(query.lineThirdDimensionQueryCondition || '')
|
||||
const tabOperationType = ref(query.tabOperationType)
|
||||
@@ -96,6 +97,7 @@ export default {
|
||||
return {
|
||||
lineRefer,
|
||||
lineTab,
|
||||
fourthMenu,
|
||||
lineQueryCondition,
|
||||
lineThirdDimensionQueryCondition,
|
||||
tabOperationType,
|
||||
@@ -169,12 +171,12 @@ export default {
|
||||
}
|
||||
|
||||
let url
|
||||
if (this.lineQueryCondition) {
|
||||
if (this.lineQueryCondition && this.fourthMenu) {
|
||||
params.q = this.lineQueryCondition
|
||||
const { query } = this.$route
|
||||
params.type = query.dimensionType
|
||||
url = api.netWorkOverview.drilldownTrafficAnalysis
|
||||
} if (this.lineThirdDimensionQueryCondition) {
|
||||
} else if (this.lineThirdDimensionQueryCondition) {
|
||||
params.q = this.lineThirdDimensionQueryCondition
|
||||
const { query } = this.$route
|
||||
params.type = query.dimensionType
|
||||
|
||||
@@ -40,6 +40,7 @@ import { api } from '@/utils/api'
|
||||
import { getSecond } from '@/utils/date-util'
|
||||
import ChartNoData from '@/views/charts/charts/ChartNoData'
|
||||
import _ from 'lodash'
|
||||
import i18n from '@/i18n'
|
||||
import chartMixin from '@/views/charts2/chart-mixin'
|
||||
import { useRoute } from 'vue-router'
|
||||
import {
|
||||
@@ -241,7 +242,7 @@ export default {
|
||||
color: chartColor3[t.positioning],
|
||||
width: 1
|
||||
},
|
||||
stack: t.name !== this.$t('network.total') ? this.$t('network.total') : '',
|
||||
stack: t.name !== i18n.global.t('network.total') ? i18n.global.t('network.total') : '',
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
borderColor: chartColor4[t.positioning],
|
||||
|
||||
Reference in New Issue
Block a user