From 06850eb38af58d2f54444b6e8a6cac94d5fcb756 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 20 Oct 2023 14:36:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=97=E8=BD=A6=E6=9B=B2=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Simulation.ts | 18 ++ .../line-app/infos/TrainInfoEcharts.vue | 204 ++++++++++++++++-- 2 files changed, 207 insertions(+), 15 deletions(-) diff --git a/src/api/Simulation.ts b/src/api/Simulation.ts index 885fa43..a41bae6 100644 --- a/src/api/Simulation.ts +++ b/src/api/Simulation.ts @@ -137,6 +137,24 @@ export async function setRelayState(data: { return await api.post(`${UriBase}/relay/operation`, data); } +interface KilometerRange { + Coordinate: string; + MinCoordinate: number; + MaxCoordinate: number; +} + +/** + * 获取地图公里标范围 + * @param + * @returns + */ +export async function getMapKilometerRange( + id: string +): Promise { + const response = await api.get(`${UriBase}/${id}/getMapKilometerRange`); + return response.data; +} + /** * PSL操作 */ diff --git a/src/components/line-app/infos/TrainInfoEcharts.vue b/src/components/line-app/infos/TrainInfoEcharts.vue index d9a6ab7..cefc178 100644 --- a/src/components/line-app/infos/TrainInfoEcharts.vue +++ b/src/components/line-app/infos/TrainInfoEcharts.vue @@ -3,39 +3,52 @@ seamless title="列车属性曲线图" @show="onDialogShow" - :height="510" + :height="546" :width="710" > -
+
+ + + + +
From 0ca8662b0b7dfcf15a1ffa42654ffc5c56edaa0b Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 20 Oct 2023 15:53:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/lineScene.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drawApp/lineScene.ts b/src/drawApp/lineScene.ts index 613a315..d28efb1 100644 --- a/src/drawApp/lineScene.ts +++ b/src/drawApp/lineScene.ts @@ -182,6 +182,9 @@ export const layerList = [ export function initLineScene(lineApp: IGraphicApp, sceneName: string) { const options: GraphicAppOptions = { dataLoader: loadLineDatas, + }; + const lineScene = lineApp.initScene(sceneName, options); + lineScene.setOptions({ mouseToolOptions: { boxSelect: false, viewportDrag: true, @@ -197,8 +200,7 @@ export function initLineScene(lineApp: IGraphicApp, sceneName: string) { Section.Type, Transponder.Type, ], - }; - const lineScene = lineApp.initScene(sceneName, options); + }); const categoryType = useLineStore().categoryType; if (!categoryType) { throw new Error('未获取到厂商信息');