diff --git a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue index bed647cc..84ec4b49 100644 --- a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue +++ b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue @@ -178,13 +178,13 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(e.message) + this.errorMsg = this.errorMsgHandler(e) }).finally(() => { this.toggleLoading(false) }) diff --git a/src/views/charts2/charts/linkMonitor/LinkBlock.vue b/src/views/charts2/charts/linkMonitor/LinkBlock.vue index 09d677f3..85c2345e 100644 --- a/src/views/charts2/charts/linkMonitor/LinkBlock.vue +++ b/src/views/charts2/charts/linkMonitor/LinkBlock.vue @@ -248,7 +248,7 @@ export default { } else { this.linkNoData = false this.showError1 = true - this.errorMsg1 = res[0].message + this.errorMsg1 = this.errorMsgHandler(res[0]) } if (res[1].code === 200) { @@ -311,7 +311,7 @@ export default { } else { this.showError2 = true this.nextHopNoData = false - this.errorMsg2 = res[1].message + this.errorMsg2 = this.errorMsgHandler(res[1]) } } }).catch(e => { diff --git a/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue b/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue index 80db404f..0629b483 100644 --- a/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue +++ b/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue @@ -143,7 +143,7 @@ export default { } else { this.isLinkNoData = false this.isLinkShowError = true - this.linkErrorMsg = res[0].message + this.linkErrorMsg = this.errorMsgHandler(res[0]) } if (res[1].code === 200) { @@ -232,7 +232,7 @@ export default { } else { this.isNextNoData = false this.isNextShowError = true - this.nextErrorMsg = res[1].message + this.nextErrorMsg = this.errorMsgHandler(res[1]) } } }).finally(() => { diff --git a/src/views/charts2/charts/linkMonitor/LinkTrafficLine.vue b/src/views/charts2/charts/linkMonitor/LinkTrafficLine.vue index ed3d0879..4095d270 100644 --- a/src/views/charts2/charts/linkMonitor/LinkTrafficLine.vue +++ b/src/views/charts2/charts/linkMonitor/LinkTrafficLine.vue @@ -176,12 +176,12 @@ export default { } } else { this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) this.showError = true - this.errorMsg = this.errorMsgHandler(e.message) + this.errorMsg = this.errorMsgHandler(e) this.isNoData = false }).finally(() => { this.loading = false diff --git a/src/views/charts2/charts/linkMonitor/LinkTrafficSankey.vue b/src/views/charts2/charts/linkMonitor/LinkTrafficSankey.vue index bebe5100..d3adf136 100644 --- a/src/views/charts2/charts/linkMonitor/LinkTrafficSankey.vue +++ b/src/views/charts2/charts/linkMonitor/LinkTrafficSankey.vue @@ -128,7 +128,7 @@ export default { this.dataProcessing(res.data.result, parseInt(n)) } else { this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewApps.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewApps.vue index 57e50d62..777a0dac 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewApps.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewApps.vue @@ -288,7 +288,7 @@ export default { }) } else { this.showError = true - this.errorMsg = res[0].message + this.errorMsg = this.errorMsgHandler(res[0]) } }).catch(e => { console.error(e) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewDdosDetection.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewDdosDetection.vue index 930a1295..d2b8c1cf 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewDdosDetection.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewDdosDetection.vue @@ -76,7 +76,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue index 9eca8e8b..1c424696 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue @@ -173,7 +173,7 @@ export default { this.toggleLoading(true) axios.get(api.netWorkOverview.totalTrafficAnalysis, { params: params }).then(response => { const res = response.data - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) if (res.code === 200) { this.isNoData = res.data.result.length === 0 @@ -186,13 +186,13 @@ export default { } } else { this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(e.message) + this.errorMsg = this.errorMsgHandler(e) }).finally(() => { this.toggleLoading(false) }) diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewPerformanceEvent.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewPerformanceEvent.vue index ac42a2a8..dd37d0cf 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewPerformanceEvent.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewPerformanceEvent.vue @@ -105,7 +105,7 @@ export default { } else { this.isNoData = false this.showError1 = true - this.errorMsg1 = res.data.message + this.errorMsg1 = this.errorMsgHandler(res.data.message) } }).catch(e => { console.error(e) @@ -148,7 +148,7 @@ export default { } else { this.isNoData2 = false this.showError2 = true - this.errorMsg2 = res.message + this.errorMsg2 = this.errorMsgHandler(res) } }).catch(e => { this.isNoData2 = false diff --git a/src/views/charts2/charts/npm/NpmAppEventTable.vue b/src/views/charts2/charts/npm/NpmAppEventTable.vue index 7e150427..85cb13e1 100644 --- a/src/views/charts2/charts/npm/NpmAppEventTable.vue +++ b/src/views/charts2/charts/npm/NpmAppEventTable.vue @@ -160,7 +160,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch((e) => { this.isNoData = false diff --git a/src/views/charts2/charts/npm/NpmEventsByType.vue b/src/views/charts2/charts/npm/NpmEventsByType.vue index 95dbb847..ad193f9c 100644 --- a/src/views/charts2/charts/npm/NpmEventsByType.vue +++ b/src/views/charts2/charts/npm/NpmEventsByType.vue @@ -137,7 +137,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { this.isNoData = false diff --git a/src/views/charts2/charts/npm/NpmEventsHeader.vue b/src/views/charts2/charts/npm/NpmEventsHeader.vue index 84f2cdb5..0b75baed 100644 --- a/src/views/charts2/charts/npm/NpmEventsHeader.vue +++ b/src/views/charts2/charts/npm/NpmEventsHeader.vue @@ -87,7 +87,7 @@ export default { }) } else { this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { this.showError = true diff --git a/src/views/charts2/charts/npm/NpmIpMap.vue b/src/views/charts2/charts/npm/NpmIpMap.vue index 6e12a013..495fe5f3 100644 --- a/src/views/charts2/charts/npm/NpmIpMap.vue +++ b/src/views/charts2/charts/npm/NpmIpMap.vue @@ -122,7 +122,7 @@ export default { }) } else { this.showError = true - this.errorMsg = r.message + this.errorMsg = this.errorMsgHandler(r) } }) mapData.forEach(t => { @@ -146,14 +146,14 @@ export default { } }).catch(e => { this.showError = true - this.errorMsg = e.message + this.errorMsg = this.errorMsgHandler(e) }).finally(() => { this.toggleLoading(false) }) } catch (e) { console.error(e) this.showError = true - this.errorMsg = e.message + this.errorMsg = this.errorMsgHandler(e) } }, loadMarkerData (imageSeries, data) { diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index 481e2937..0556482f 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -153,7 +153,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { console.error(e) diff --git a/src/views/charts2/charts/npm/NpmMap.vue b/src/views/charts2/charts/npm/NpmMap.vue index 778f6c8a..f8512d88 100644 --- a/src/views/charts2/charts/npm/NpmMap.vue +++ b/src/views/charts2/charts/npm/NpmMap.vue @@ -171,7 +171,7 @@ export default { this.loadMarkerData(imageSeries, mapData) }).catch((e) => { this.showError = true - this.errorMsg = e.message + this.errorMsg = this.errorMsgHandler(e) }) } else { imageSeries.data = [{}] @@ -185,7 +185,7 @@ export default { } catch (e) { this.showError = true // todo 此处错误信息有待考证,后续可能会改动 - this.errorMsg = e + this.errorMsg = this.errorMsgHandler(e) console.error(e) } }, diff --git a/src/views/charts2/charts/npm/NpmRecentEvents.vue b/src/views/charts2/charts/npm/NpmRecentEvents.vue index 5907aaf5..4bda2484 100644 --- a/src/views/charts2/charts/npm/NpmRecentEvents.vue +++ b/src/views/charts2/charts/npm/NpmRecentEvents.vue @@ -128,7 +128,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { this.isNoData = false diff --git a/src/views/charts2/charts/npm/NpmTrafficLine.vue b/src/views/charts2/charts/npm/NpmTrafficLine.vue index fb20a572..a3e46ad5 100644 --- a/src/views/charts2/charts/npm/NpmTrafficLine.vue +++ b/src/views/charts2/charts/npm/NpmTrafficLine.vue @@ -176,7 +176,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }).catch(e => { this.isNoData = false @@ -200,7 +200,7 @@ export default { } else { this.isNoData = false this.showError = true - this.errorMsg = this.errorMsgHandler(res.message) + this.errorMsg = this.errorMsgHandler(res) } }) this.showError = false diff --git a/src/views/charts2/charts/npm/RelatedSessions.vue b/src/views/charts2/charts/npm/RelatedSessions.vue index bbbcac3e..1ac362ad 100644 --- a/src/views/charts2/charts/npm/RelatedSessions.vue +++ b/src/views/charts2/charts/npm/RelatedSessions.vue @@ -111,12 +111,12 @@ export default { } } else { this.showError = true - this.errorMsg = res.message + this.errorMsg = this.errorMsgHandler(res) this.changeByErrorOrNodata() } }).catch(error => { this.showError = true - this.errorMsg = error.message + this.errorMsg = this.errorMsgHandler(error) this.changeByErrorOrNodata() }).finally(() => { this.toggleLoading(false)