【类 型】:fix

【主	题】:绘制航点
【描	述】:
	[原因]:
	[过程]:按照任务注册的索引 在地图上绘制 对应索引的航线
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-07-09 22:04:17 +08:00
parent 86cecc9e34
commit 479103333e

View File

@ -432,10 +432,6 @@ export default {
type: 'warning'
})
.then(() => {
this.$message({
type: 'warning',
message: '存在风险,仍然提交订单'
})
this.runQuest()//
})
.catch(action => {
@ -602,22 +598,22 @@ export default {
})
},
/**
* @description: 在地图上绘制航线
*/
* @description: 在地图上绘制航线
*/
makeRouteForMap () {
let bindRoute
let routeData
let found = false
this.siteList.some(item => {
const runing = item.runing.split(',')
if (runing.includes(this.planesId.toString())) {
const index = runing.indexOf(this.planesId.toString())
if (index !== -1) {
found = true
//
if (item.bind_route !== null) { //
bindRoute = item.bind_route.split(',')
this.$store.dispatch('fetchRouteList').then(res => { //
routeData = res.find(element => element.id === bindRoute[0]).route_data
routeData = res.find(element => element.id === bindRoute[index]).route_data
this.$emit('makeRoute', JSON.parse(routeData))
})
} else {
@ -627,7 +623,6 @@ export default {
}
return false //
})
if (!found) {
this.$message.error('未找到匹配的站点')
}