fix: 修复npm部分下钻参数处理问题
This commit is contained in:
@@ -127,15 +127,14 @@ export default {
|
||||
}
|
||||
},
|
||||
npmNetworkLastCycleQuery () {
|
||||
const conditionStr = this.$route.query.queryCondition ? this.$route.query.queryCondition : ''
|
||||
let condition = ''
|
||||
if (conditionStr.indexOf('OR') > -1) {
|
||||
condition = conditionStr.split(/["|'](.*?)["|']/)
|
||||
if (this.queryCondition.indexOf(' OR ') > -1) {
|
||||
condition = this.queryCondition.split(/["|'](.*?)["|']/)
|
||||
} else {
|
||||
condition = conditionStr
|
||||
condition = this.queryCondition
|
||||
}
|
||||
// const type = this.$store.getters.getDimensionType
|
||||
const type = this.$route.query.dimensionType ? this.$route.query.dimensionType : ''
|
||||
const type = this.dimensionType
|
||||
const params = {
|
||||
startTime: getSecond(this.timeFilter.startTime),
|
||||
endTime: getSecond(this.timeFilter.endTime),
|
||||
|
||||
@@ -138,7 +138,7 @@ export default {
|
||||
// const conditionStr = this.$route.query.queryCondition ? this.$route.query.queryCondition : ''
|
||||
let condition = ''
|
||||
const type = this.dimensionType
|
||||
if (this.queryCondition.indexOf('OR') > -1 && type !== 'protocolPort') {
|
||||
if (this.queryCondition.indexOf(' OR ') > -1) {
|
||||
condition = this.queryCondition.split(/["|'](.*?)["|']/)
|
||||
} else {
|
||||
condition = this.queryCondition
|
||||
|
||||
Reference in New Issue
Block a user