From d7dd17a38b5755da7ba77a43815fd0d0dc559b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Fri, 31 Oct 2025 20:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A195=E5=80=BC=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E3=80=81=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=94=B6=E7=9B=8A=E5=92=8C?= =?UTF-8?q?=E4=BA=A4=E6=8D=A2=E6=9C=BA=E6=94=B6=E7=9B=8A=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E5=BD=A2=E5=88=86=E6=9E=90=E3=80=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=88=97=E3=80=81=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/disRevenue/earnManage.js | 42 +++ src/api/menu.js | 35 ++- src/components/RightToolbar/index.vue | 47 ++- src/components/echartsList/line.vue | 60 ++-- src/components/form/index.vue | 2 +- src/components/table/index.vue | 62 ++-- src/store/modules/user.js | 282 +++++++++--------- .../busValueCount/busValueCount.vue | 2 +- .../earnManage/busValueCount/details.vue | 14 +- .../earnManage/busValueCount/relevantData.vue | 49 ++- .../earnManage/busValueCount/viewChart.vue | 52 +++- src/views/earnManage/business/index.vue | 2 +- .../businessIdent/businessIdent.vue | 2 +- .../businessIssued/businessIssued.vue | 2 +- .../businessScript/businessScript.vue | 2 +- src/views/earnManage/revenueMethod/index.vue | 6 +- src/views/earnManage/server/analysisChart.vue | 226 +++++++++----- src/views/earnManage/server/dialogView.vue | 8 +- src/views/earnManage/server/relevantData.vue | 12 +- src/views/earnManage/server/serverTabs.vue | 2 +- src/views/earnManage/serverRevenue/index.vue | 2 +- .../earnManage/switch/switchRelevantData.vue | 6 +- src/views/earnManage/switch/switchTabs.vue | 9 +- .../resource/agentUpdate/agentUpdate.vue | 2 +- src/views/resource/alarmLog/alarmLog.vue | 2 +- .../resource/alarmManage/alarmManage.vue | 2 +- src/views/resource/fileManage/fileManage.vue | 2 +- src/views/resource/group/index.vue | 2 +- src/views/resource/monitorStategy/index.vue | 2 +- src/views/resource/monitorTemp/index.vue | 2 +- src/views/resource/register/index.vue | 2 +- .../resource/remoteManage/remoteManage.vue | 2 +- src/views/resource/resMonitor/index.vue | 2 +- .../serverMonitorStrat/monitorStrategy.vue | 4 +- .../serverMonitorStrat/serverMonitorStrat.vue | 2 +- src/views/resource/serverRegister/index.vue | 2 +- .../resource/serverRegister/monitorChart.vue | 31 +- .../resource/serverScript/serverScript.vue | 2 +- .../resource/serverScriptStrat/details.vue | 2 +- .../serverScriptStrat/serverScriptStrat.vue | 2 +- .../switchMonitorStrat/monitorStrategy.vue | 2 +- .../switchMonitorStrat/switchMonitorStrat.vue | 2 +- src/views/resource/switchRegister/index.vue | 4 +- .../resource/switchRegister/monitorChart.vue | 40 ++- src/views/resource/topology/details.vue | 20 +- src/views/resource/topology/index.vue | 2 +- src/views/sync/problemRecord/index.vue | 2 +- 47 files changed, 667 insertions(+), 396 deletions(-) diff --git a/src/api/disRevenue/earnManage.js b/src/api/disRevenue/earnManage.js index e7e3d82..0259fdc 100644 --- a/src/api/disRevenue/earnManage.js +++ b/src/api/disRevenue/earnManage.js @@ -123,6 +123,40 @@ export function graAvgMonthly(data) { }) } +/** ------------------服务器和交换机的 图形分析------------------- */ +// 服务器日 +export function serverGraphDaily(data) { + return request({ + url: '/system/epsTrafficData/getServerGraphicalAnalysisDaily', + method: 'post', + data: data + }) +} +// 服务器月 +export function serverGraphMonth(data) { + return request({ + url: '/system/epsTrafficData/getServerGraphicalAnalysisMonthy', + method: 'post', + data: data + }) +} +// 交换机日 +export function switchGraphDaily(data) { + return request({ + url: '/system/switchInfoDetails/getGraphicalAnalysisDaily', + method: 'post', + data: data + }) +} +// 交换机月 +export function switchGraphMonth(data) { + return request({ + url: '/system/switchInfoDetails/getGraphicalAnalysisMonthy', + method: 'post', + data: data + }) +} + /** ------------------业务管理------------------- */ // 查询列表 @@ -407,3 +441,11 @@ export function taskRraphical(data) { data: data }) } +// 获取月均日95时间 +export function getAvgTimeList(data) { + return request({ + url: '/system/taskStatistics/getAvgTimeList', + method: 'post', + data: data + }) +} diff --git a/src/api/menu.js b/src/api/menu.js index ec9511d..0e7f7ff 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -1,9 +1,26 @@ -import request from '@/utils/request' - -// 获取路由 -export const getRouters = () => { - return request({ - url: '/system/menu/getRouters', - method: 'get' - }) -} \ No newline at end of file +import request from '@/utils/request' + +// 获取路由 +export const getRouters = () => { + return request({ + url: '/system/menu/getRouters', + method: 'get' + }) +} + +// 保存自定义列表列 +export function addColumnList(data) { + return request({ + url: '/system/columnConfig/addColumnConfig', + method: 'post', + data: data + }) +} +// 获取自定义列表列 +export function getColumnList(data) { + return request({ + url: '/system/columnConfig/getColumnConfigByUserId', + method: 'post', + data: data + }) +} diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index 3d44206..f73a0ce 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -9,9 +9,9 @@ - + - + 列展示 @@ -38,6 +38,7 @@ diff --git a/src/views/earnManage/busValueCount/viewChart.vue b/src/views/earnManage/busValueCount/viewChart.vue index 40bbd0c..31dc68e 100644 --- a/src/views/earnManage/busValueCount/viewChart.vue +++ b/src/views/earnManage/busValueCount/viewChart.vue @@ -1,6 +1,9 @@ @@ -15,16 +18,20 @@ paramsData: {}, echartData: { title: 'tux', + titleSubtext: {subtext: '', bottom: '14%', x: '50%', textAlign: 'center', subtextStyle: {fontWeight: 'bold', fontSize: 14}}, yAxisName: '', - legend: {orient: 'vertical',bottom: '1%', formatter: true}, - gridBotm: '10%', + content: {}, + legend: {orient: 'vertical',bottom: '0%', formatter: true}, + gridBotm: '20%', hiddenTime: true, lineXData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sa', 'Sun'], dataList: [ {name: '总发送流量值', data: []}, + {name: '总接收流量值', data: []}, + {name: '95带宽值', areaStyleNone: true, data: []}, ] }, - lineDataParams: {}, + lineDataParams: {chart: {}}, } }, created() { @@ -33,18 +40,41 @@ }, methods: { chartList() { + let newChartData = JSON.parse(JSON.stringify(this.echartData)); + if (this.paramsData && this.paramsData.resourceType === '1') { + newChartData.dataList.splice(1,1); + } + + if (this.paramsData && this.paramsData.calculationType === '2') { + newChartData.dataList[newChartData.dataList.length - 1].name = '月均日95值'; + } taskRraphical({id: this.paramsData.id}).then(res => { - console.log('res====',res); if(res && res.data) { - let content = '最后一个值:' + res.data.other.lastInSpeedGb; - this.echartData.title = '【' + this.paramsData.taskName + '】'; - this.echartData.yAxisName = '单位' + res.data.other.recommendedUnit || ''; - this.echartData.lineXData = res.data.xData || []; - this.echartData.dataList[0].data = res.data.yData['netOutSpeedData'] || []; + let outContent = `最后一个值:${res && res.data && res.data.other && res.data.other.lastOutSpeedGb ? res.data.other.lastOutSpeedGb + 'G' : '0'} 平均值:${res && res.data && res.data.other && res.data.other.avgOutSpeedGb ? res.data.other.avgOutSpeedGb + 'G' : '0'} 最大值:${res && res.data && res.data.other && res.data.other.maxOutSpeedGb ? res.data.other.maxOutSpeedGb + 'G' : '0'}`; + let inContent = `最后一个值:${res && res.data && res.data.other && res.data.other.lastInSpeedGb ? res.data.other.lastInSpeedGb + 'G' : '0'} 平均值:${res && res.data && res.data.other && res.data.other.avgInSpeedGb ? res.data.other.avgInSpeedGb + 'G' : '0'} 最大值:${res && res.data && res.data.other && res.data.other.maxInSpeedGb ? res.data.other.maxInSpeedGb + 'G' : '0'}`; + let kdContent = `(${res && res.data && res.data.percentile95 ? res.data.percentile95 + 'mbit' : '0'} out)`; + newChartData.title = '【' + this.paramsData.taskName + '】'; + newChartData.titleSubtext.subtext = res && res.data && res.data.timeRange || ' '; + newChartData.content[newChartData.dataList[0].name] = outContent; + newChartData.yAxisName = res && res.data && res.data.other && res.data.other.recommendedUnit ? '单位' + res.data.other.recommendedUnit : ''; + newChartData.lineXData = res && res.data && res.data.xData || []; + newChartData.dataList[0].data = res && res.data && res.data.yData && res.data.yData['netOutSpeedData'] || []; + if (this.paramsData && this.paramsData.resourceType === '1') { + newChartData.content[newChartData.dataList[1].name] = kdContent; + newChartData.dataList[1].data = res && res.data && res.data.yData && res.data.yData['percentile95'] || []; + } else { + newChartData.content[newChartData.dataList[1].name] = inContent; + newChartData.content[newChartData.dataList[2].name] = kdContent; + newChartData.dataList[1].data = res && res.data && res.data.yData && res.data.yData['netInSpeedData'] || []; + newChartData.dataList[2].data = res && res.data && res.data.yData && res.data.yData['percentile95'] || []; + } } - this.lineDataParams = this.echartData; + this.$set(this.lineDataParams, 'chart', newChartData); }); }, + goBack() { + this.$router.push("/earnManage/busValueCount"); + }, } } diff --git a/src/views/earnManage/business/index.vue b/src/views/earnManage/business/index.vue index 27e0dad..eaf4a8b 100644 --- a/src/views/earnManage/business/index.vue +++ b/src/views/earnManage/business/index.vue @@ -17,7 +17,7 @@ - + @@ -56,11 +56,11 @@ // 列显隐信息 columns: { id: {label: `ID`, visible: false}, - createTime: {label: `修改时间`, visible: true}, + updateTime: {label: `修改时间`, visible: true}, clientId: {label: `ClientID`, minWidth: '130', visible: true}, hardwareSn: {label: `硬件SN`}, changeContent: {label: `修改内容`, minWidth: '350', visible: true}, - creatBy: {label: `修改人`, width: '80', visible: true}, + updateBy: {label: `修改人`, width: '80', visible: true}, }, // 查询参数 queryParams: { diff --git a/src/views/earnManage/server/analysisChart.vue b/src/views/earnManage/server/analysisChart.vue index c249a7e..01f4688 100644 --- a/src/views/earnManage/server/analysisChart.vue +++ b/src/views/earnManage/server/analysisChart.vue @@ -2,9 +2,9 @@
- + - +
-