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 @@