From c35074e0e33054bb6c5ada22f8104422ae953b17 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 21 二月 2025 17:19:04 +0800 Subject: [PATCH] 1. 新增默认加载时先判断各选项是否获取完成逻辑 --- src/views/historymode/HistoryMode.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/historymode/HistoryMode.vue b/src/views/historymode/HistoryMode.vue index 11ba4f6..e7978dd 100644 --- a/src/views/historymode/HistoryMode.vue +++ b/src/views/historymode/HistoryMode.vue @@ -49,6 +49,7 @@ <script> import Layer from '@/utils/map/3dLayer'; +import mapLine from '@/utils/map/line'; import marks from '@/utils/map/marks'; import sector from '@/utils/map/sector'; import mapUtil from '@/utils/map/util'; @@ -56,7 +57,7 @@ import { useFetchData } from '@/composables/fetchData'; import moment from 'moment'; import { TYPE0 } from '@/constant/device-type'; -import { radioOptions } from '@/constant/radio-options'; +import { defaultOptions } from '@/constant/radio-options'; import { FactorDatas } from '@/model/FactorDatas'; import TrendAnalysis from './component/TrendAnalysis.vue'; import DataSheet from './component/DataSheet.vue'; @@ -79,7 +80,7 @@ // 鐩戞祴璁惧缂栧彿 deviceCode: '', // 鐩戞祴鍥犲瓙鐨勭被鍨嬬紪鍙� - factorType: radioOptions(TYPE0)[0].value, + factorType: defaultOptions(TYPE0), // 鐩戞祴鏁版嵁 factorDatas: new FactorDatas(), // 鍐冲畾缁樺埗3D鍥惧舰鏃舵槸鍚︿笌鍘熷浘鍍忓悎骞� @@ -137,15 +138,18 @@ // 鍒锋柊鍥句緥 const factor = this.factorDatas.factor[this.factorType]; sector.clearSector(); - this.drawRoadMap(factor); + this.drawRoadLine(factor); + // this.drawRoadMap(factor); this.drawMassMarks(factor); }, // 缁樺埗3D璧拌璺嚎鍥� drawRoadMap(e) { this.factorDatas.refreshHeight(this.factorType); - Layer.drawRoadMap(this.factorDatas, e, this.merge, this.setCenter); - // } + }, + drawRoadLine(e) { + this.factorDatas.refreshHeight(this.factorType); + mapLine.drawLine(this.factorDatas, e); }, drawMassMarks(e) { marks.drawMassMarks(this.factorDatas, e, (index) => { -- Gitblit v1.9.3