From 325aa7d56ec07e7ce30c35bcf1690f230736c39a Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 13 May 2025 15:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E7=BB=88=E7=AB=AF=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device-boot/runEvaluate.ts | 34 + src/components/echarts/MyEchart.vue | 4 +- src/main.ts | 16 +- .../area/SteadyState/index.vue | 18 + .../area/qualifiedRate/components/charts.vue | 2 +- .../detailed/regionalStatistics/index.vue | 364 +++- .../online/wentaizhibiaohegelv/index.vue | 22 +- .../pqs/panorama/components/cityMapL.vue | 65 +- .../pqs/panorama/components/cityMapR.vue | 18 +- .../panorama/components/details/evaluate.vue | 4 +- .../pqs/panorama/components/line/history.vue | 4 +- .../pqs/panorama/components/line/info.vue | 1 + src/views/pqs/panorama/components/map.vue | 35 +- src/views/pqs/panorama/components/mapL.vue | 75 +- src/views/pqs/panorama/index.vue | 4 +- .../runManage/runEvaluate/components/map.vue | 1520 +---------------- .../runEvaluate/components/region.vue | 12 +- .../runManage/runEvaluate/components/run.vue | 233 +-- .../runEvaluate/components/statistics.vue | 31 +- .../components/terminalDetails.vue | 58 +- .../components/terminalOperation.vue | 166 +- .../runManage/runEvaluate/components/week.vue | 160 +- src/views/pqs/runManage/runEvaluate/index.vue | 125 +- .../eventStatistics/ITICquxianfenxi/index.vue | 1 - .../eventStatistics/SEMIF47fenxi/index.vue | 1 - .../chixushijiangailvfenbu/index.vue | 1 - .../zanjiangfenbutongji/index.vue | 4 +- .../zanjiangfuzhigailvfenbu/index.vue | 1 - .../monitoringPoint/online/navigation/map.vue | 6 +- 29 files changed, 910 insertions(+), 2075 deletions(-) create mode 100644 src/api/device-boot/runEvaluate.ts diff --git a/src/api/device-boot/runEvaluate.ts b/src/api/device-boot/runEvaluate.ts new file mode 100644 index 00000000..3daf5012 --- /dev/null +++ b/src/api/device-boot/runEvaluate.ts @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +// 终端运行评价 +export function getRunEvaluate(data: any) { + return request({ + url: '/device-boot/deviceRunEvaluate/getRunEvaluate', + method: 'post', + data + }) +} +// 异常终端详情 +export function getRunEvaluateDetail(data: any) { + return request({ + url: '/device-boot/deviceRunEvaluate/getRunEvaluateDetail', + method: 'post', + data + }) +} +// 根据部门获取不同层级的终端信息 +export function areaTerminalStatistic(data: any) { + return request({ + url: '/device-boot/deviceRunEvaluate/areaTerminalStatistic', + method: 'post', + data + }) +} +// 最近一周终端评价趋势 +export function lastWeekTrend(data: any) { + return request({ + url: '/device-boot/deviceRunEvaluate/lastWeekTrend', + method: 'post', + data + }) +} diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index e7234417..9e9efda4 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -65,8 +65,8 @@ const initChart = () => { borderWidth: 0, confine: true, formatter: function (params: any) { - let tips = `${params[0].name}
` // 标题加粗 - params.forEach((item: any) => { + let tips = `${params[0]?.name}
` // 标题加粗 + params?.forEach((item: any) => { const value = item.value === 3.14159 ? '暂无数据' : Math.round(item.value * 100) / 100 // 处理特殊值 tips += `
${item.marker} diff --git a/src/main.ts b/src/main.ts index 0851b2a4..15584170 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,13 +34,23 @@ import { setupFormCreate } from '@/plugins/formCreate' const setupAll = async () => { const app = createApp(App) - // //开启离线地图 + //开启离线地图 app.use(BaiduMapOffline, { offline: true, - // offlineUrl:'http://sjzx:8088/map/' //window.location.origin + '/map/' + offlineConfig: { + imgext: '.png', + customstyle: '', + tiles_dir: '', + tiles_hybrid: '', + tiles_self: '', + tiles_v_dir: '', + tiles_satellite_dir: '', + tiles_road_dir: '', + tiles_v_road_dir: '', + home: './plugin/offline/' + } }) app.use(BaiduMap, { - offline: true, // ak: 'Yp57V71dkOPiXjiN8VdcFRsVELzlVNKK', ak: 'RpQi6WNFZ9tseKzhdwOQsXwFsoVntnsN', v: '3.0' diff --git a/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue index a1c46933..191b06a3 100644 --- a/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/SteadyState/index.vue @@ -37,6 +37,21 @@ > + + + + + { diff --git a/src/views/pqs/harmonicMonitoring/area/qualifiedRate/components/charts.vue b/src/views/pqs/harmonicMonitoring/area/qualifiedRate/components/charts.vue index ab5d87dd..810b5b5a 100644 --- a/src/views/pqs/harmonicMonitoring/area/qualifiedRate/components/charts.vue +++ b/src/views/pqs/harmonicMonitoring/area/qualifiedRate/components/charts.vue @@ -173,7 +173,7 @@ const tableStore = new TableStore({ tooltip: { formatter: function (params: any) { - let tips = `${params[0].name}
` // 标题加粗 + let tips = `${params[0]?.name}
` // 标题加粗 params.forEach((item: any) => { const value = item.value === 3.14159 ? '暂无数据' : item.value // 处理特殊值 tips += `
diff --git a/src/views/pqs/harmonicMonitoring/detailed/regionalStatistics/index.vue b/src/views/pqs/harmonicMonitoring/detailed/regionalStatistics/index.vue index ec11395c..5a41662f 100644 --- a/src/views/pqs/harmonicMonitoring/detailed/regionalStatistics/index.vue +++ b/src/views/pqs/harmonicMonitoring/detailed/regionalStatistics/index.vue @@ -1,42 +1,78 @@ diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue index ca069d3f..ed3e729c 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizhibiaohegelv/index.vue @@ -87,15 +87,15 @@ const init = () => { let yData = [], yData2 = [] for (let i = 0; i < steadyInfoList.length; i++) { - if (steadyInfoList[i] == 3.1415) { - steadyInfoList[i] = 1 - yData.push(steadyInfoList[i]) - } else if (steadyInfoList[i] == 3.14159) { - steadyInfoList[i] = 1 - yData.push(steadyInfoList[i]) - } else if (steadyInfoList[i] !== 3.14159) { - yData.push(steadyInfoList[i]) - } + // if (steadyInfoList[i] == 3.1415) { + // steadyInfoList[i] = 1 + // yData.push(steadyInfoList[i]) + // } else if (steadyInfoList[i] == 3.14159) { + // steadyInfoList[i] = 1 + // yData.push(steadyInfoList[i]) + // } else if (steadyInfoList[i] !== 3.14159) { + yData.push(steadyInfoList[i]) + // } } for (let i = 0; i < steadyInfoData.length; i++) { if (steadyInfoData[i] == 3.1415) { @@ -169,6 +169,8 @@ const init = () => { return gradeColor3[0] } else if (params.value > 60) { return gradeColor3[1] + } else if (params.value == 3.14159) { + return '#ccc' } else { return gradeColor3[2] } @@ -224,7 +226,7 @@ const init = () => { opacity: 0.35, fontSize: 14 }, - backgroundColor: 'rgba(0,0,0,0.55)', + backgroundColor: 'rgba(0,0,0,0.55)' // formatter: function (params: any) { // //console.log(params) // let msg = '' diff --git a/src/views/pqs/panorama/components/cityMapL.vue b/src/views/pqs/panorama/components/cityMapL.vue index a650ab86..27e91c70 100644 --- a/src/views/pqs/panorama/components/cityMapL.vue +++ b/src/views/pqs/panorama/components/cityMapL.vue @@ -13,9 +13,17 @@
{{ item.title }}: - - {{ item.list[4].numOne }} + + {{ item.list[item.list.length - 1]?.numOne }}
@@ -23,8 +31,10 @@
-

+

{{ item }}

@@ -36,7 +46,14 @@ 详情 -->

-

+

+ {{ item.list[i]?.numOne }} +

+ @@ -307,7 +331,8 @@ const linList: any = ref([ title: ['电能质量指标', '未超标', '超标'] } ]) -const vList = ['', '500kV', '220kV', '110kV', '35kV',] +const panoramicVoltage: any = dictData.getBasicData('Dev_Voltage_Stand') +const vList =ref( ['', '500kV', '220kV', '110kV', '35kV']) const formRow: any = ref({}) const height = mainHeight(30) const boxHeight = mainHeight(290, 2) @@ -335,10 +360,14 @@ const info = async (row: any) => { } countList.value[0].title = row.areaName formRow.value = form - + vList.value = [''] // 变电站 getSubLineGiveAnAlarm(form).then(res => { let data = row.isUpToGrid == 1 ? res.data.gwInfo : res.data.info + data[0].data.forEach((item: any) => { + if (item.columnName) vList.value.push(panoramicVoltage.find((v: any) => v.id == item.columnName).name) + }) + list.value[0].list = data[0].data }) // 终端 @@ -359,10 +388,10 @@ const info = async (row: any) => { } }) - list.value[2].list.push({ - numOne: 0, - numOneList: [] - }) + // list.value[2].list.push({ + // numOne: 0, + // numOneList: [] + // }) }) // 监测点指标统计 getGridDiagramStatistics(form).then(res => { @@ -392,7 +421,7 @@ const LookMap = (coutList: object, alarmList: object, key?: any) => { const GridDiagram = (k: any) => { emit('GridDiagram', k, 3) } -onMounted(() => { }) +onMounted(() => {}) defineExpose({ info, show }) diff --git a/src/views/pqs/panorama/components/cityMapR.vue b/src/views/pqs/panorama/components/cityMapR.vue index 4598f2f2..5e2f5660 100644 --- a/src/views/pqs/panorama/components/cityMapR.vue +++ b/src/views/pqs/panorama/components/cityMapR.vue @@ -34,15 +34,15 @@
- 在线监测点数:{{ monitorList.onlineNum }} + 在线监测点数:{{ monitorList?.onlineNum }}
- 超标监测点数:{{ monitorList.overNum }} + 超标监测点数:{{ monitorList?.overNum }}
- 超标监测点占比:{{ monitorList.overRatio }} + 超标监测点占比:{{ monitorList?.overRatio }}
@@ -262,7 +262,7 @@ const info = (row: any) => { }, options: { - toolbox:null, + toolbox: null, dataZoom: null, series: optionData.series } @@ -350,7 +350,7 @@ const info = (row: any) => { }, xAxis: { type: 'category', - data: res.data[0].list?.map((item: any) => { + data: res.data[0]?.list?.map((item: any) => { return item.targetName.length > 4 ? item.targetName.slice(0, 4) + '\n ' + item.targetName.slice(4) : item.targetName @@ -367,12 +367,12 @@ const info = (row: any) => { }, options: { - toolbox:null, + toolbox: null, series: [ { name: '超标监测点数', type: 'bar', - data: res.data[0].list?.map((item: any) => item.overNum), + data: res.data[0]?.list?.map((item: any) => item.overNum), label: { show: true, position: 'top', @@ -385,7 +385,7 @@ const info = (row: any) => { { name: '超标天数', type: 'bar', - data: res.data[0].list?.map((item: any) => item.overDay), + data: res.data[0]?.list?.map((item: any) => item.overDay), label: { show: true, position: 'top', @@ -451,7 +451,7 @@ const info = (row: any) => { }, color: [config.layout.elementUiPrimary[0], '#FFBF00', '#FF9100'], options: { - toolbox:null, + toolbox: null, dataZoom: null, series: [ { diff --git a/src/views/pqs/panorama/components/details/evaluate.vue b/src/views/pqs/panorama/components/details/evaluate.vue index 33bd6ea5..b1ae1d0b 100644 --- a/src/views/pqs/panorama/components/details/evaluate.vue +++ b/src/views/pqs/panorama/components/details/evaluate.vue @@ -131,7 +131,7 @@ --> -
+
@@ -176,7 +176,7 @@ const analysis = () => { text: '各地市综合评估趋势对比' }, legend: { - right: 120, + right: 125, top: 20 }, // tooltip: { diff --git a/src/views/pqs/panorama/components/line/history.vue b/src/views/pqs/panorama/components/line/history.vue index 45a87952..cbd36a7d 100644 --- a/src/views/pqs/panorama/components/line/history.vue +++ b/src/views/pqs/panorama/components/line/history.vue @@ -1,6 +1,6 @@