Merge branch 'dev' of https://git.mesalab.cn/cyber-narrator/cn-ui into dev
This commit is contained in:
@@ -391,6 +391,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
jump (route, columnName, columnValue, opeType) {
|
jump (route, columnName, columnValue, opeType) {
|
||||||
|
this.showMenu = false
|
||||||
if (opeType) {
|
if (opeType) {
|
||||||
this.$store.commit('setTabOperationBeforeType', this.$store.getters.getTabOperationType)
|
this.$store.commit('setTabOperationBeforeType', this.$store.getters.getTabOperationType)
|
||||||
this.$store.commit('setTabOperationType', opeType)
|
this.$store.commit('setTabOperationType', opeType)
|
||||||
@@ -463,7 +464,6 @@ export default {
|
|||||||
t: +new Date()
|
t: +new Date()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.showMenu = false
|
|
||||||
},
|
},
|
||||||
dropDownSearch () {
|
dropDownSearch () {
|
||||||
this.curPageNum = 1
|
this.curPageNum = 1
|
||||||
|
|||||||
@@ -687,9 +687,11 @@ export const networkTable = {
|
|||||||
hasMetricSearch: false, // 是否有metric下拉列表
|
hasMetricSearch: false, // 是否有metric下拉列表
|
||||||
panelIdOfThirdMenu: drillDownPanelTypeMapping.npmThirdMenu,
|
panelIdOfThirdMenu: drillDownPanelTypeMapping.npmThirdMenu,
|
||||||
bytesColumnNameGroup: bytesColumnNameGroupForNpm,
|
bytesColumnNameGroup: bytesColumnNameGroupForNpm,
|
||||||
bytesCycleColumnNameGroup: bytesCycleColumnNameGroupForNmp,
|
|
||||||
packetsColumnNameGroup: {}, // 无metric下拉列表条件,用不到此属性
|
packetsColumnNameGroup: {}, // 无metric下拉列表条件,用不到此属性
|
||||||
sessionsColumnNameGroup: {}// 无metric下拉列表条件,用不到此属性
|
sessionsColumnNameGroup: {},// 无metric下拉列表条件,用不到此属性
|
||||||
|
bytesCycleColumnNameGroup: bytesCycleColumnNameGroupForNmp,
|
||||||
|
packetsCycleColumnNameGroup: {},
|
||||||
|
sessionsCycleColumnNameGroup: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -255,7 +255,9 @@ export default {
|
|||||||
const _this = this
|
const _this = this
|
||||||
echartsData = echartsData.filter(t => t.show === true)
|
echartsData = echartsData.filter(t => t.show === true)
|
||||||
const dom = document.getElementById('chart')
|
const dom = document.getElementById('chart')
|
||||||
this.myChart = echarts.init(dom)
|
if (!this.myChart) {
|
||||||
|
this.myChart = echarts.init(dom)
|
||||||
|
}
|
||||||
this.chartOption = stackedLineChartOption
|
this.chartOption = stackedLineChartOption
|
||||||
const chartOption = this.chartOption.series[0]
|
const chartOption = this.chartOption.series[0]
|
||||||
this.chartOption.series = echartsData.map((t, i) => {
|
this.chartOption.series = echartsData.map((t, i) => {
|
||||||
|
|||||||
@@ -1008,7 +1008,6 @@ export default {
|
|||||||
// 当前表格相关数据初始化
|
// 当前表格相关数据初始化
|
||||||
this.tableType = this.chart.params ? this.chart.params.name : 'networkOverview'
|
this.tableType = this.chart.params ? this.chart.params.name : 'networkOverview'
|
||||||
this.curTable = this.networkTable[this.tableType] ? this.networkTable[this.tableType] : this.networkTable.networkOverview
|
this.curTable = this.networkTable[this.tableType] ? this.networkTable[this.tableType] : this.networkTable.networkOverview
|
||||||
this.hasMetricSearch = this.curTable.hasMetricSearch
|
|
||||||
this.customTableTitles = this.$_.cloneDeep(this.curTable.column)
|
this.customTableTitles = this.$_.cloneDeep(this.curTable.column)
|
||||||
this.list = this.$_.cloneDeep(this.curTable.tabList)
|
this.list = this.$_.cloneDeep(this.curTable.tabList)
|
||||||
this.networkTabList = this.curTable.tabList
|
this.networkTabList = this.curTable.tabList
|
||||||
@@ -1043,6 +1042,11 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.hasMetricSearch = this.curTable.hasMetricSearch
|
||||||
|
}, 250)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
setup (props) {},
|
setup (props) {},
|
||||||
unmounted () {
|
unmounted () {
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ export default {
|
|||||||
// 获取table后三列内容
|
// 获取table后三列内容
|
||||||
const currentTrafficRequest = get(api.npm.overview.appTrafficAnalysis, { ...params, cycle: 0 })
|
const currentTrafficRequest = get(api.npm.overview.appTrafficAnalysis, { ...params, cycle: 0 })
|
||||||
const lastCycleTrafficRequest = get(api.npm.overview.appTrafficAnalysis, { ...params, cycle: 1 })
|
const lastCycleTrafficRequest = get(api.npm.overview.appTrafficAnalysis, { ...params, cycle: 1 })
|
||||||
|
this.toggleLoading(true)
|
||||||
Promise.all([currentTrafficRequest, lastCycleTrafficRequest]).then(res => {
|
Promise.all([currentTrafficRequest, lastCycleTrafficRequest]).then(res => {
|
||||||
const prevData = res[1].data.result
|
const prevData = res[1].data.result
|
||||||
const data = res[0].data.result
|
const data = res[0].data.result
|
||||||
|
|||||||
@@ -29,6 +29,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mixins: [chartMixin],
|
mixins: [chartMixin],
|
||||||
|
watch: {
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.loadAm4ChartMap(this.polygonSeries, this.worldImageSeries)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initMap () {
|
async initMap () {
|
||||||
// 初始化插件
|
// 初始化插件
|
||||||
@@ -102,6 +110,7 @@ export default {
|
|||||||
t.score = 6
|
t.score = 6
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.info(mapData)
|
||||||
this.loadMarkerData(imageSeries, mapData)
|
this.loadMarkerData(imageSeries, mapData)
|
||||||
})
|
})
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
@@ -105,6 +105,12 @@ export default {
|
|||||||
this.country = n
|
this.country = n
|
||||||
this.init()
|
this.init()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.init()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -192,7 +198,9 @@ export default {
|
|||||||
echartsInit (data, chartData, type) {
|
echartsInit (data, chartData, type) {
|
||||||
const dom = document.getElementById(`chart${chartData.name}`)
|
const dom = document.getElementById(`chart${chartData.name}`)
|
||||||
if (dom) {
|
if (dom) {
|
||||||
this.myChart = echarts.init(dom)
|
if (!this.myChart) {
|
||||||
|
this.myChart = echarts.init(dom)
|
||||||
|
}
|
||||||
this.chartOption = npmLineChartOption
|
this.chartOption = npmLineChartOption
|
||||||
const seriesTemplate = this.chartOption.series[0]
|
const seriesTemplate = this.chartOption.series[0]
|
||||||
this.chartOption.color = this.chartData.params.color
|
this.chartOption.color = this.chartData.params.color
|
||||||
|
|||||||
@@ -290,8 +290,12 @@ export default {
|
|||||||
},
|
},
|
||||||
async location (n) {
|
async location (n) {
|
||||||
this.$store.commit('setNpmLocationCountry', n)
|
this.$store.commit('setNpmLocationCountry', n)
|
||||||
this.countrySeries.dispose()
|
if (this.countrySeries) {
|
||||||
this.countryImageSeries.dispose()
|
this.countrySeries.dispose()
|
||||||
|
}
|
||||||
|
if (this.countryImageSeries) {
|
||||||
|
this.countryImageSeries.dispose()
|
||||||
|
}
|
||||||
if (n) {
|
if (n) {
|
||||||
const countryId = countryNameIdMapping[n]
|
const countryId = countryNameIdMapping[n]
|
||||||
await this.drill(countryId)
|
await this.drill(countryId)
|
||||||
|
|||||||
@@ -35,6 +35,16 @@ export default {
|
|||||||
chartData: {}
|
chartData: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.npmNetworkCycleData = []
|
||||||
|
this.npmNetworkLastCycleData = []
|
||||||
|
this.npmNetworkCycleQuery()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
npmNetworkCycleQuery () {
|
npmNetworkCycleQuery () {
|
||||||
let condition = ''
|
let condition = ''
|
||||||
|
|||||||
@@ -62,6 +62,14 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.recentEventsListData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
recentEventsListData () {
|
recentEventsListData () {
|
||||||
const condition = this.$store.getters.getQueryCondition.split(/["|'](.*?)["|']/)
|
const condition = this.$store.getters.getQueryCondition.split(/["|'](.*?)["|']/)
|
||||||
|
|||||||
@@ -50,6 +50,14 @@ export default {
|
|||||||
chartData: {}
|
chartData: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.init()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init () {
|
init () {
|
||||||
let condition = ''
|
let condition = ''
|
||||||
@@ -126,7 +134,9 @@ export default {
|
|||||||
},
|
},
|
||||||
echartsInit (echartsData) {
|
echartsInit (echartsData) {
|
||||||
const dom = document.getElementById(this.chartData.name)
|
const dom = document.getElementById(this.chartData.name)
|
||||||
this.myChart = echarts.init(dom)
|
if (!this.myChart) {
|
||||||
|
this.myChart = echarts.init(dom)
|
||||||
|
}
|
||||||
this.chartOption = trafficLineChartOption
|
this.chartOption = trafficLineChartOption
|
||||||
const chartOption = this.chartOption.series[0]
|
const chartOption = this.chartOption.series[0]
|
||||||
this.chartOption.series = echartsData.map((t, i) => {
|
this.chartOption.series = echartsData.map((t, i) => {
|
||||||
|
|||||||
@@ -49,6 +49,14 @@ export default {
|
|||||||
serverSessions: 0
|
serverSessions: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
timeFilter: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
this.relatedSessionsData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
relatedSessionsData () {
|
relatedSessionsData () {
|
||||||
const condition = this.$store.getters.getQueryCondition.split(/["|'](.*?)["|']/)
|
const condition = this.$store.getters.getQueryCondition.split(/["|'](.*?)["|']/)
|
||||||
|
|||||||
Reference in New Issue
Block a user