fix: 修复链路下钻后参数会丢失大写格式的问题

This commit is contained in:
chenjinsong
2023-10-12 10:34:09 +08:00
parent 11540d3c34
commit 18b62f1e3d
4 changed files with 5 additions and 5 deletions

View File

@@ -355,12 +355,12 @@ export default {
if (out < 0.0001 && out !== 0) {
outUsage = '< 0.01%'
} else {
outUsage = JSON.stringify(parseFloat((out * 100).toFixed(2)))
outUsage = JSON.stringify(parseFloat(out * 100).toFixed(2))
}
if (_in < 0.0001 && _in !== 0) {
inUsage = '< 0.01%'
} else {
inUsage = JSON.stringify(parseFloat((_in * 100).toFixed(2)))
inUsage = JSON.stringify(parseFloat(_in * 100).toFixed(2))
}
length = outUsage.length + inUsage.length

View File

@@ -156,7 +156,7 @@ export default {
endTime: getSecond(this.timeFilter.endTime)
}
if (this.queryCondition) {
const condition = this.queryCondition.toLowerCase().split(' or ')
const condition = this.queryCondition.split(' or ')
if (condition.length > 1) {
params.outParam = condition.find(c => c.indexOf('common_out_link_id') > -1 || c.indexOf('out_link_direction') > -1)
params.inParam = condition.find(c => c.indexOf('common_in_link_id') > -1 || c.indexOf('in_link_direction') > -1)

View File

@@ -100,7 +100,7 @@ export default {
}
let url = ''
if (this.queryCondition) {
const condition = this.queryCondition.toLowerCase().split(' or ')
const condition = this.queryCondition.split(' or ')
if (condition.length > 1) {
if (n === 0) {
params.q = condition.find(c => c.indexOf('common_in_link_id') > -1 || c.indexOf('in_link_direction') > -1)

View File

@@ -104,7 +104,7 @@ export default {
endTime: getSecond(this.timeFilter.endTime)
}
if (this.queryCondition) {
const condition = this.queryCondition.toLowerCase().split(' or ')
const condition = this.queryCondition.split(' or ')
if (condition.length > 1) {
// params.outParam = true
params.outParam = condition.find(c => c.indexOf('common_out_link_id') > -1 || c.indexOf('out_link_direction') > -1)