| | |
| | | const height = ref(anchors[0]) |
| | | const curSearchType = ref(1) // 固定为地址搜索 |
| | | |
| | | |
| | | const searchId = ref('') |
| | | |
| | | // 使用插件搜索地址 |
| | | const searchWithPluginAPI = () => { |
| | | searchWithPlugin(searchVal.value, selectedAreaCode.value, (err, data) => { |
| | |
| | | size: 10, |
| | | taskName: route.query.taskName || '', |
| | | status: '', |
| | | // id: route.query.id || '', |
| | | id: '', |
| | | } |
| | | if (searchVal.value.trim() !== '') { |
| | | params.taskName = searchVal.value |
| | | params.id = searchId.value |
| | | } |
| | | |
| | | droneFlightTaskApi(params).then(res => { |
| | |
| | | const getClickAirspace = () => { |
| | | EventBus.on('mapClickAirspace', item => { |
| | | searchVal.value = item.taskName |
| | | searchId.value = item.id |
| | | height.value = 150 |
| | | searchWithNewAPI() |
| | | }) |