diff --git a/public/config/map.json b/public/config/map.json index b8bdd74..57a46b3 100644 --- a/public/config/map.json +++ b/public/config/map.json @@ -15,7 +15,7 @@ "scene3DOnly": false, "shadows": false, "removeDblClick": true, - "sceneMode": 3, + "sceneMode": 2, "showSun": true, "showMoon": true, "showSkyBox": true, diff --git a/public/data/road.json b/public/data/road.json new file mode 100644 index 0000000..17728e4 --- /dev/null +++ b/public/data/road.json @@ -0,0 +1,4 @@ +{ + "leftTop": "114.33,27.8", + "rightBottom": "114.34,27.79" +} diff --git a/src/views/header/index.vue b/src/views/header/index.vue index f97f3dd..97779cb 100644 --- a/src/views/header/index.vue +++ b/src/views/header/index.vue @@ -31,6 +31,10 @@ export default { mounted() { this.activeIndex = getStorage('activeIndex') || 1 }, + + beforeDestroy() { + setStorage('activeIndex', 1) + }, methods: { setActiveIndex(id) { if (this.activeIndex !== id) { diff --git a/src/views/home.vue b/src/views/home.vue index be6e7d1..3adf691 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -30,19 +30,33 @@ :model="form" > - + - +
- +
- +
@@ -61,7 +75,12 @@ 清除所有 --> - +
导入json文件
@@ -71,7 +90,7 @@ label-width="100px" label-position="left" size="mini" - > + > @@ -79,7 +98,10 @@ - +
数据选择
@@ -87,21 +109,28 @@
-
-
-
- 详细路线:
- 起点({{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}}吨 +
+
+
+ 详细路线:
+ 起点({{ 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 }}吨
- + @@ -116,8 +145,8 @@ @@ -135,7 +164,7 @@