fix: 解决冲突
This commit is contained in:
@@ -87,10 +87,12 @@ export default {
|
|||||||
const lineMetric = ref(query.lineMetric || 'Bits/s')
|
const lineMetric = ref(query.lineMetric || 'Bits/s')
|
||||||
const lineRefer = ref(query.lineRefer || 'Average')
|
const lineRefer = ref(query.lineRefer || 'Average')
|
||||||
const lineTab = ref(query.lineTab || '')
|
const lineTab = ref(query.lineTab || '')
|
||||||
|
const queryCondition = ref(query.queryCondition || '')
|
||||||
return {
|
return {
|
||||||
lineMetric,
|
lineMetric,
|
||||||
lineRefer,
|
lineRefer,
|
||||||
lineTab,
|
lineTab,
|
||||||
|
queryCondition,
|
||||||
myChart: shallowRef(null)
|
myChart: shallowRef(null)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -169,6 +171,13 @@ export default {
|
|||||||
})
|
})
|
||||||
overwriteUrl(newUrl)
|
overwriteUrl(newUrl)
|
||||||
},
|
},
|
||||||
|
queryCondition (n) {
|
||||||
|
const { query } = this.$route
|
||||||
|
const newUrl = urlParamsHandler(window.location.href, query, {
|
||||||
|
queryCondition: n
|
||||||
|
})
|
||||||
|
overwriteUrl(newUrl)
|
||||||
|
},
|
||||||
timeFilter: {
|
timeFilter: {
|
||||||
deep: true,
|
deep: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
@@ -189,9 +198,8 @@ export default {
|
|||||||
startTime: getSecond(this.timeFilter.startTime),
|
startTime: getSecond(this.timeFilter.startTime),
|
||||||
endTime: getSecond(this.timeFilter.endTime)
|
endTime: getSecond(this.timeFilter.endTime)
|
||||||
}
|
}
|
||||||
const condition = this.$store.getters.getQueryCondition
|
if (this.queryCondition) {
|
||||||
if (condition) {
|
params.q = this.queryCondition
|
||||||
params.q = condition
|
|
||||||
}
|
}
|
||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
get(api.netWorkOverview.totalTrafficAnalysis, params).then((res) => {
|
get(api.netWorkOverview.totalTrafficAnalysis, params).then((res) => {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<template v-slot:empty>
|
<template v-slot:empty>
|
||||||
<div class="table-no-data" v-show="isNoData">
|
<div class="table-no-data" v-show="isNoData">
|
||||||
<svg class="icon" aria-hidden="true">
|
<svg class="icon" aria-hidden="true">
|
||||||
<use xlink:href="#cn-icon-a-allclear"></use>
|
<use xlink:href="#cn-icon-good"></use>
|
||||||
</svg>
|
</svg>
|
||||||
<div class="table-no-data__title">{{ $t('npm.thereNoEvents') }}</div>
|
<div class="table-no-data__title">{{ $t('npm.thereNoEvents') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
init (val) {
|
init (val) {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
val = 'Bits/s'
|
val = this.metricFilter
|
||||||
}
|
}
|
||||||
let condition = ''
|
let condition = ''
|
||||||
if (this.$store.getters.getQueryCondition.indexOf('OR') > -1) {
|
if (this.$store.getters.getQueryCondition.indexOf('OR') > -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user