fix: 修复问题:app-risk筛选、实体下拉预览地图、实体下拉npm值
This commit is contained in:
@@ -191,7 +191,6 @@ export default {
|
||||
const requestUrl = url || (chartParams && chartParams.url)
|
||||
if (requestUrl) {
|
||||
get(replaceUrlPlaceholder(requestUrl, this.queryParams)).then(response => {
|
||||
1
|
||||
// if (this.chartInfo.type === 23 && testData) {
|
||||
// response = testData.data
|
||||
// } else if (this.chartInfo.type === 24 && testData) {
|
||||
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleQueryParams (queryParams) {
|
||||
return this.timeFilter = {
|
||||
this.timeFilter = {
|
||||
startTime: Number(queryParams.startTime) * 1000,
|
||||
endTime: Number(queryParams.endTime) * 1000
|
||||
}
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
self.loadPieTableData(this.allSelectPieChartName)
|
||||
} else { // 否则查询当前name数据
|
||||
self.selectPieChartName = echartParams.name
|
||||
self.loadPieTableData(echartParams.name)
|
||||
self.loadPieTableData(echartParams.data.data.appRisk || echartParams.name)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
...r,
|
||||
showValue: (r.value || r.value === 0) ? valueToRangeValue(r.value, chartParams.unitType).join(' ') : ''
|
||||
}))
|
||||
polygonSeries.data = [...seriesData]
|
||||
!this.$_.isEmpty(seriesData) && (polygonSeries.data = [...seriesData])
|
||||
const sorted = seriesData.sort((a, b) => b.value - a.value)
|
||||
const allZero = this.$_.isEmpty(sorted) || Number(sorted[0].value) === 0 // 数据全为0的情况,legend只显示1个颜色
|
||||
|
||||
|
||||
@@ -201,21 +201,21 @@ export default {
|
||||
getData(api.detection[this.pageType].eventSeverityTrend, params).then(data => {
|
||||
data = [
|
||||
{
|
||||
legend: "critical",
|
||||
values: [[1435781430781, "5"], [1435781431781, "3"],[1435781432781, "5"], [1435781433781, "3"]]
|
||||
legend: 'critical',
|
||||
values: [[1435781430781, '5'], [1435781431781, '3'], [1435781432781, '5'], [1435781433781, '3']]
|
||||
},
|
||||
{
|
||||
legend: "high",
|
||||
values: [[1435781430781, "2"], [1435781431781, "3"],[1435781432781, "6"], [1435781433781, "4"]]
|
||||
legend: 'high',
|
||||
values: [[1435781430781, '2'], [1435781431781, '3'], [1435781432781, '6'], [1435781433781, '4']]
|
||||
}, {
|
||||
legend: "medium",
|
||||
values: [[1435781430781, "4"], [1435781431781, "1"],[1435781432781, "5"], [1435781433781, "3"]]
|
||||
legend: 'medium',
|
||||
values: [[1435781430781, '4'], [1435781431781, '1'], [1435781432781, '5'], [1435781433781, '3']]
|
||||
}, {
|
||||
legend: "low",
|
||||
values: [[1435781430781, "1"], [1435781431781, "4"],[1435781432781, "1"], [1435781433781, "3"]]
|
||||
legend: 'low',
|
||||
values: [[1435781430781, '1'], [1435781431781, '4'], [1435781432781, '1'], [1435781433781, '3']]
|
||||
}, {
|
||||
legend: "info",
|
||||
values: [[1435781430781, "5"], [1435781431781, "7"],[1435781432781, "5"], [1435781433781, "8"]]
|
||||
legend: 'info',
|
||||
values: [[1435781430781, '5'], [1435781431781, '7'], [1435781432781, '5'], [1435781433781, '8']]
|
||||
}
|
||||
]
|
||||
const chartDom = document.getElementById(`eventSeverityTrendBar${this.pageType}`)
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
:chart-info="chart"
|
||||
:chart-data="chartData"
|
||||
:entity="entityCopy"
|
||||
:query-params="getQueryParams"
|
||||
:query-params="queryParams"
|
||||
:hide-header="true"
|
||||
@getCurrentTimeRange="getCurrentTimeRange"
|
||||
></chart>
|
||||
@@ -281,7 +281,7 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'entityData.appName': {
|
||||
entityData: {
|
||||
immediate: true,
|
||||
deep: true,
|
||||
handler (n) {
|
||||
@@ -290,6 +290,7 @@ export default {
|
||||
this.singleValues.chartDatas.splice(1, 1, this.$_.get(n, 'httpResponseLatency'))
|
||||
this.singleValues.chartDatas.splice(2, 1, this.$_.get(n, 'sslConLatency'))
|
||||
this.singleValues.chartDatas.splice(3, 1, this.$_.get(n, 'sequenceGapLossPercent'))
|
||||
this.singleValues.chartDatas.splice(4, 1, this.$_.get(n, 'pktRetransPercent'))
|
||||
this.$nextTick(() => {
|
||||
this.getRelatedServerDataOne(this.relatedServerDomainUrl)
|
||||
this.getRelatedServerDataTow(this.relatedServerIpUrl)
|
||||
@@ -299,6 +300,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.queryParams = this.getQueryParams()
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.chartGetMap()
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
:chart-info="chart"
|
||||
:chart-data="chartData"
|
||||
:entity="entityCopy"
|
||||
:query-params="getQueryParams"
|
||||
:query-params="queryParams"
|
||||
:hide-header="true"
|
||||
@getCurrentTimeRange="getCurrentTimeRange"
|
||||
></chart>
|
||||
@@ -288,7 +288,7 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'entityData.domainName': {
|
||||
entityData: {
|
||||
immediate: true,
|
||||
deep: true,
|
||||
handler (n) {
|
||||
@@ -307,6 +307,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.queryParams = this.getQueryParams()
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.chartGetMap()
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
:chart-info="chart"
|
||||
:chart-data="chartData"
|
||||
:entity="entityCopy"
|
||||
:query-params="getQueryParams"
|
||||
:query-params="queryParams"
|
||||
:hide-header="true"
|
||||
@getCurrentTimeRange="getCurrentTimeRange"
|
||||
></chart>
|
||||
@@ -275,7 +275,7 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'entityData.ipAddr': {
|
||||
entityData: {
|
||||
deep: true,
|
||||
handler (n) {
|
||||
if (n) {
|
||||
@@ -293,6 +293,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.queryParams = this.getQueryParams()
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
this.chartGetMap()
|
||||
|
||||
@@ -23,7 +23,8 @@ export default {
|
||||
chartOption: null,
|
||||
sentChart: null,
|
||||
receivedChart: null
|
||||
}
|
||||
},
|
||||
queryParams: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user