fix: 修复链路下钻后参数会丢失大写格式的问题
This commit is contained in:
@@ -355,12 +355,12 @@ export default {
|
|||||||
if (out < 0.0001 && out !== 0) {
|
if (out < 0.0001 && out !== 0) {
|
||||||
outUsage = '< 0.01%'
|
outUsage = '< 0.01%'
|
||||||
} else {
|
} else {
|
||||||
outUsage = JSON.stringify(parseFloat((out * 100).toFixed(2)))
|
outUsage = JSON.stringify(parseFloat(out * 100).toFixed(2))
|
||||||
}
|
}
|
||||||
if (_in < 0.0001 && _in !== 0) {
|
if (_in < 0.0001 && _in !== 0) {
|
||||||
inUsage = '< 0.01%'
|
inUsage = '< 0.01%'
|
||||||
} else {
|
} else {
|
||||||
inUsage = JSON.stringify(parseFloat((_in * 100).toFixed(2)))
|
inUsage = JSON.stringify(parseFloat(_in * 100).toFixed(2))
|
||||||
}
|
}
|
||||||
|
|
||||||
length = outUsage.length + inUsage.length
|
length = outUsage.length + inUsage.length
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ export default {
|
|||||||
endTime: getSecond(this.timeFilter.endTime)
|
endTime: getSecond(this.timeFilter.endTime)
|
||||||
}
|
}
|
||||||
if (this.queryCondition) {
|
if (this.queryCondition) {
|
||||||
const condition = this.queryCondition.toLowerCase().split(' or ')
|
const condition = this.queryCondition.split(' or ')
|
||||||
if (condition.length > 1) {
|
if (condition.length > 1) {
|
||||||
params.outParam = condition.find(c => c.indexOf('common_out_link_id') > -1 || c.indexOf('out_link_direction') > -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)
|
params.inParam = condition.find(c => c.indexOf('common_in_link_id') > -1 || c.indexOf('in_link_direction') > -1)
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default {
|
|||||||
}
|
}
|
||||||
let url = ''
|
let url = ''
|
||||||
if (this.queryCondition) {
|
if (this.queryCondition) {
|
||||||
const condition = this.queryCondition.toLowerCase().split(' or ')
|
const condition = this.queryCondition.split(' or ')
|
||||||
if (condition.length > 1) {
|
if (condition.length > 1) {
|
||||||
if (n === 0) {
|
if (n === 0) {
|
||||||
params.q = condition.find(c => c.indexOf('common_in_link_id') > -1 || c.indexOf('in_link_direction') > -1)
|
params.q = condition.find(c => c.indexOf('common_in_link_id') > -1 || c.indexOf('in_link_direction') > -1)
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export default {
|
|||||||
endTime: getSecond(this.timeFilter.endTime)
|
endTime: getSecond(this.timeFilter.endTime)
|
||||||
}
|
}
|
||||||
if (this.queryCondition) {
|
if (this.queryCondition) {
|
||||||
const condition = this.queryCondition.toLowerCase().split(' or ')
|
const condition = this.queryCondition.split(' or ')
|
||||||
if (condition.length > 1) {
|
if (condition.length > 1) {
|
||||||
// params.outParam = true
|
// params.outParam = true
|
||||||
params.outParam = condition.find(c => c.indexOf('common_out_link_id') > -1 || c.indexOf('out_link_direction') > -1)
|
params.outParam = condition.find(c => c.indexOf('common_out_link_id') > -1 || c.indexOf('out_link_direction') > -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user