Merge branch 'main' of https://work.rangutech.cn:85/yiqiuyang/kxfx
This commit is contained in:
@ -220,7 +220,7 @@ export default {
|
||||
this.clear()
|
||||
},
|
||||
async getMapOption() {
|
||||
await fetch('/config/map.json')
|
||||
await fetch('./config/map.json')
|
||||
.then((response) => {
|
||||
return response.json()
|
||||
})
|
||||
@ -311,7 +311,7 @@ export default {
|
||||
// const shpJson = await shp(shpBuffer); // {features: [...]}
|
||||
|
||||
// 1. 读取本地 jeojson
|
||||
const shpBuffer = await fetch('/config/dao.geojson')
|
||||
const shpBuffer = await fetch('./config/dao.geojson')
|
||||
.then((response) => {
|
||||
return response.json()
|
||||
})
|
||||
@ -343,15 +343,15 @@ export default {
|
||||
},
|
||||
// 弹框
|
||||
async openDialog() {
|
||||
await fetch('/data/minTurnRadius.json')
|
||||
.then((response) => {
|
||||
return response.json()
|
||||
})
|
||||
.then((data) => {
|
||||
this.tableData = data
|
||||
})
|
||||
.catch((error) => {})
|
||||
this.dialogVisible = true
|
||||
await fetch('./data/minTurnRadius.json')
|
||||
.then((response) => {
|
||||
return response.json()
|
||||
})
|
||||
.then((data) => {
|
||||
this.tableData = data
|
||||
})
|
||||
.catch((error) => {})
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
handleSelectionChange({records}) {
|
||||
this.multipleSelection = records
|
||||
@ -969,7 +969,7 @@ export default {
|
||||
},
|
||||
async calculateShortestPath() {
|
||||
if (!this.pointQD || !this.pointZD || !this.roadNetworkGeoJSON) {
|
||||
alert('请先加载路网数据并绘制障碍面、起点和终点!')
|
||||
this.$message.warning('请先加载路网数据并绘制障碍面、起点和终点!')
|
||||
return
|
||||
}
|
||||
this.shortestPathLayer.clear()
|
||||
|
||||
Reference in New Issue
Block a user