From dcb91f67c5cdd508ab7b9bff629f0f6e63eed906 Mon Sep 17 00:00:00 2001 From: gcw_IJ7DAiVL Date: Wed, 10 Sep 2025 07:01:45 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 5 + public/data.json | 0 public/data/minTurnRadius.json | 26 ++ public/data/points.json | 38 +++ src/views/home.vue | 550 ++++++++++++++++++++++++++------- 5 files changed, 514 insertions(+), 105 deletions(-) create mode 100644 .eslintrc.js create mode 100644 public/data.json create mode 100644 public/data/minTurnRadius.json create mode 100644 public/data/points.json diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..8833ff7 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + rules: { + "prettier/prettier": "off" + } +}; \ No newline at end of file diff --git a/public/data.json b/public/data.json new file mode 100644 index 0000000..e69de29 diff --git a/public/data/minTurnRadius.json b/public/data/minTurnRadius.json new file mode 100644 index 0000000..58fe20f --- /dev/null +++ b/public/data/minTurnRadius.json @@ -0,0 +1,26 @@ +[ + { + "id": 1, + "width": 30, + "load": 500, + "minTurnRadius": 5 + }, + { + "id": 2, + "width": 10, + "load": 600, + "minTurnRadius": 6 + }, + { + "id": 3, + "width": 40, + "load": 700, + "minTurnRadius": 10 + }, + { + "id": 4, + "width": 20, + "load": 700, + "minTurnRadius": 2 + } +] \ No newline at end of file diff --git a/public/data/points.json b/public/data/points.json new file mode 100644 index 0000000..8d5a390 --- /dev/null +++ b/public/data/points.json @@ -0,0 +1,38 @@ +{ + "startPoint": "114.262694,27.786216", + "endPoint": "114.274729,27.777062", + "viaPoints": [ + { + "time": "1694352000000", + "points": "114.263233,27.777047" + }, + { + "time": "1694352001000", + "points": "114.265512,27.789935" + }, + { + "time": "1694352002000", + "points": "114.256863,27.780437" + } + ], + "avoidPoints": [ + { + "time": "1694352003000", + "points": "114.261166,27.800982" + }, + { + "time": "1694352004000", + "points": "114.251312,27.786932" + } + ], + "avoidAreas": [ + { + "time": "1694352005000", + "points": "[[114.267217,27.777566,0],[114.276695,27.78048,0],[114.276001,27.772547,0],[114.276001,27.772486,0]]" + }, + { + "time": "1694352006000", + "points": "[[114.272317,27.786501,0],[114.281341,27.79818,0],[114.290389,27.779594,0],[114.284888,27.773934,0]]" + } + ] +} \ No newline at end of file diff --git a/src/views/home.vue b/src/views/home.vue index 6872ccf..be6e7d1 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -6,6 +6,7 @@ +
清除
确定
-
导入json文件
+ +
导入json文件
机动属性
- - + size="mini" + > + + - - + + - - + + - - - - - - - -
导入json文件
+
数据选择
- -
-
-
+
+ +
+
+
+ 详细路线:
+ 起点({{form.startPoint}}), + 途径点({{form.viaPoints.length > 0 && form.viaPoints[0].points ? form.viaPoints.map(item => item.points).join(";") : ''}}), + 避让点({{form.avoidPoints.length > 0 && form.avoidPoints[0].points ? form.avoidPoints.map(item => item.points).join(";") : ''}}), + 终点({{form.endPoint}}), + 避让区域({{form.avoidAreas.length > 0 && form.avoidAreas[0].points ? form.avoidAreas.map(item => item.points).join(";") : ''}})。
+ 装备参数:最大车辆宽度{{inputform.width || 0}},最小转弯半径{{inputform.minTurnRadius || 0}},最大车辆载重{{inputform.load || 0}}吨 +
+ + + + + + + + + +
+ + + + + + + + +