CN-457 fix: chart参数错误修复

This commit is contained in:
chenjinsong
2022-03-31 14:49:32 +08:00
parent 4662c90c4f
commit ce133cf0aa
2 changed files with 3 additions and 4 deletions

View File

@@ -183,13 +183,13 @@ export default {
this.queryTimeRange = { startTime: getSecond(this.chartTimeFilter.startTime), endTime: getSecond(this.chartTimeFilter.endTime) } this.queryTimeRange = { startTime: getSecond(this.chartTimeFilter.startTime), endTime: getSecond(this.chartTimeFilter.endTime) }
} }
const chartParams = this.chartInfo.params const chartParams = this.chartInfo.params
if (isAlarmInfo && JSON.stringify(extraParams) === '{}') { if (this.isAlarmInfo && JSON.stringify(extraParams) === '{}') {
extraParams = { extraParams = {
pageNo: 1, pageNo: 1,
pageSize: 9 pageSize: 9
} }
} }
if (isDetectionService || isDetectionSecurity) { if (this.isDetectionService || this.isDetectionSecurity) {
extraParams = { extraParams = {
pageNo: 1, pageNo: 1,
pageSize: 6 pageSize: 6

View File

@@ -371,7 +371,7 @@ export default {
border: this.circleColor[d.dnsServerRole.toUpperCase()].border border: this.circleColor[d.dnsServerRole.toUpperCase()].border
}) })
}) */ }) */
const seriesData = data.map(r => ({ imageSeries.data = data.map(r => ({
...this.convertMapData(r), ...this.convertMapData(r),
id: r.ipLocationId, id: r.ipLocationId,
dnsServerRole: r.dnsServerRole, dnsServerRole: r.dnsServerRole,
@@ -380,7 +380,6 @@ export default {
color: this.circleColor[r.dnsServerRole.toUpperCase()].background, color: this.circleColor[r.dnsServerRole.toUpperCase()].background,
border: this.circleColor[r.dnsServerRole.toUpperCase()].border border: this.circleColor[r.dnsServerRole.toUpperCase()].border
})) }))
imageSeries.data = seriesData
} }
} catch (e) { } catch (e) {
console.error(e) console.error(e)