fix: Dahsboard - npm - 网络质量概览图表 下钻3级菜单,分数统计传参判断

This commit is contained in:
@changcode
2022-08-24 14:33:39 +08:00
parent b2f289d6a0
commit 63fadf95a3

View File

@@ -49,7 +49,7 @@ export default {
} else {
this.side = 'server'
}
if (condition && type) {
if (condition.length > 1 && type) {
params.q = `${type}='${condition[1]}' and side='${this.side}'`
params.type = type
}
@@ -82,7 +82,7 @@ export default {
} else {
this.side = 'server'
}
if (condition && type) {
if (condition.length > 1 && type) {
params.q = `${type}='${condition[1]}' and side='${this.side}'`
params.type = type
}
@@ -123,7 +123,9 @@ export default {
if (scoreInfo.score > 6) {
scoreInfo.score = 6
}
if (!params.q && this.chart.id === 44) {
this.$store.commit('setNpmThirdLevelMenuScore', scoreInfo.score)
}
}).finally(() => {
this.toggleLoading(false)
})