fix:去掉多余重复的方法
This commit is contained in:
@@ -877,10 +877,12 @@ export async function getDnsMapData (type) {
|
|||||||
}
|
}
|
||||||
return codeValueMap
|
return codeValueMap
|
||||||
}
|
}
|
||||||
export function handleSpecialValue (value) {
|
export function handleSpecialValue(value){
|
||||||
value = value.replaceAll("'", "\\\\'")
|
if(value){
|
||||||
.replaceAll('"', '\\"')
|
value = value.replaceAll("'", "\\\\'")
|
||||||
.replaceAll('&', '%26')
|
.replaceAll('"','\\"')
|
||||||
|
.replaceAll('&','%26')
|
||||||
|
}
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
export function combineTabList (tableType, list, commonTabList) {
|
export function combineTabList (tableType, list, commonTabList) {
|
||||||
|
|||||||
@@ -951,36 +951,6 @@ export default {
|
|||||||
this.tableData = this.tableDataBackup
|
this.tableData = this.tableDataBackup
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 切换metric:bit、packet、session
|
|
||||||
changeMetric () {
|
|
||||||
this.tableData = []
|
|
||||||
this.tableDataBackup = []
|
|
||||||
this.setShowNum(10)
|
|
||||||
const beforeType = this.getUrlParam(this.curTabState.tabOperationBeforeType, '', true)
|
|
||||||
if (beforeType && beforeType != operationType.thirdMenu) {
|
|
||||||
this.urlChangeParams[this.curTabState.tabOperationBeforeType] = this.getUrlParam(this.curTabState.tabOperationType, '', true)
|
|
||||||
}
|
|
||||||
this.urlChangeParams[this.curTabState.tabOperationType] = operationType.changeMetric
|
|
||||||
const curTab = this.getCurTab()
|
|
||||||
this.urlChangeParams[this.curTabState.tableMetric] = this.metric
|
|
||||||
|
|
||||||
let queryParams = {
|
|
||||||
orderBy: this.orderBy,
|
|
||||||
limit: networkDefaultLimit,
|
|
||||||
type: curTab.prop
|
|
||||||
}
|
|
||||||
const condition = this.getQueryCondition()
|
|
||||||
if (condition) {
|
|
||||||
queryParams = {
|
|
||||||
orderBy: this.orderBy,
|
|
||||||
limit: networkDefaultLimit,
|
|
||||||
type: curTab.prop,
|
|
||||||
q: condition
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.changeUrlTabState()
|
|
||||||
this.getChartData(queryParams)
|
|
||||||
},
|
|
||||||
handleCustomizeButton (status) {
|
handleCustomizeButton (status) {
|
||||||
this.showBackground = status
|
this.showBackground = status
|
||||||
if (!this.showCustomizeTabs) {
|
if (!this.showCustomizeTabs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user