From dc32cc3bb7a17bc03047aeb185187b6c520fc8f0 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Fri, 19 Dec 2025 11:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=80=E5=8C=97=E7=8E=B0?= =?UTF-8?q?=E5=9C=BA=E5=8F=8D=E9=A6=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cockpit/terminalEvaluation/index.vue | 2 +- src/main.ts | 30 +-- src/styles/app.css | 1 + src/utils/fileDownLoad.ts | 10 +- .../monitoringPoint/online/index.vue | 6 +- .../panorama/components/details/evaluate.vue | 54 ++-- .../panorama/components/details/technique.vue | 2 +- .../components/details/temporaryState.vue | 2 +- .../panorama/components/line/info.vue | 7 +- .../cleaning/components/abnormal.vue | 52 +++- .../cleaning/components/anomalyDetails.vue | 202 +++++++++------ .../pqs/runManage/runEvaluate/index_JB.vue | 2 +- .../components1/form/abnormal.vue | 245 ++++++++++++++++++ .../electricalEnergy/components1/online.vue | 80 ++++-- .../harmonicSurvey/components/planAdd.vue | 41 +-- .../pqs/supervise/harmonicSurvey/detail.vue | 4 +- .../supervise/harmonicSurvey/test/detail.vue | 8 +- .../normalizationManager/detail.vue | 56 ++-- .../normalization/detail.vue | 88 +++---- .../components/undocumented/detail.vue | 92 +++---- .../pqs/supervise/plan/components/detail.vue | 16 +- src/views/pqs/supervise/technology/detail.vue | 4 +- .../supervise/technology/feedbackPopup.vue | 6 +- .../supervise/terminal/components/detail.vue | 92 +++---- .../components/cycleDetection/detail.vue | 4 +- .../components/monitorpoint/detail.vue | 6 +- .../components/terminainal/detail.vue | 66 ++--- .../supervise/testRun/components/detail.vue | 4 +- src/views/pqs/supervise/testRun/index.vue | 3 +- .../technology/components/earlyWarn.vue | 96 +++---- .../online/eventStudy/index.vue | 8 +- .../monitoringPoint/transientList/index.vue | 2 + 32 files changed, 865 insertions(+), 426 deletions(-) create mode 100644 src/views/pqs/supervise/electricalEnergy/components1/form/abnormal.vue diff --git a/src/components/cockpit/terminalEvaluation/index.vue b/src/components/cockpit/terminalEvaluation/index.vue index 488d05b9..e8d7b813 100644 --- a/src/components/cockpit/terminalEvaluation/index.vue +++ b/src/components/cockpit/terminalEvaluation/index.vue @@ -64,7 +64,7 @@
-
完整性统计
+
终端运行统计
{ const app = createApp(App) //开启离线地图 - // app.use(BaiduMapOffline, { - // offline: true, - // 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(BaiduMapOffline, { + offline: true, + 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, { // ak: 'Yp57V71dkOPiXjiN8VdcFRsVELzlVNKK', ak: 'RpQi6WNFZ9tseKzhdwOQsXwFsoVntnsN', diff --git a/src/styles/app.css b/src/styles/app.css index 5ba83ea6..78eb3a93 100644 --- a/src/styles/app.css +++ b/src/styles/app.css @@ -373,3 +373,4 @@ body, .w-e-scroll { min-height: 200px !important; } + diff --git a/src/utils/fileDownLoad.ts b/src/utils/fileDownLoad.ts index 046b1738..5f101bd0 100644 --- a/src/utils/fileDownLoad.ts +++ b/src/utils/fileDownLoad.ts @@ -25,11 +25,17 @@ export const download = (urls: string) => { }) const url = window.URL.createObjectURL(blob) const link = document.createElement('a') - let name=urls.split('/')[2].split('.')[0] + let name = removeLastDotSuffix(urls.split('/')[2]) link.href = url link.download = name document.body.appendChild(link) link.click() link.remove() }) -} \ No newline at end of file +} +function removeLastDotSuffix(str: string) { + // 找到最后一个 . 的位置 + const lastDotIndex = str.lastIndexOf('.') + // 如果存在 .,截取到 . 之前的部分;否则返回原字符串 + return lastDotIndex !== -1 ? str.slice(0, lastDotIndex) : str +} diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue index f0239410..bebb4216 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue @@ -40,10 +40,10 @@ - - + + diff --git a/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue b/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue index c00130d2..c25c8bcd 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue @@ -1,6 +1,9 @@