吉安感知网项目-前端
chenyao
2026-03-02 9f19cf40e2a927b239adbece329a6971f21fb6dd
feat:更新小程序空域信息搜索
1 files modified
7 ■■■■ changed files
applications/mobile-web-view/src/appPages/AirMap/searchBar.vue 7 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/src/appPages/AirMap/searchBar.vue
@@ -73,6 +73,9 @@
const height = ref(anchors[0])
const curSearchType = ref(1) // 固定为地址搜索
const searchId = ref('')
// 使用插件搜索地址
const searchWithPluginAPI = () => {
    searchWithPlugin(searchVal.value, selectedAreaCode.value, (err, data) => {
@@ -100,10 +103,11 @@
        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 => {
@@ -170,6 +174,7 @@
const getClickAirspace = () => {
    EventBus.on('mapClickAirspace', item => {
        searchVal.value = item.taskName
        searchId.value = item.id
        height.value = 150
        searchWithNewAPI()
    })