吉安感知网项目-前端
张含笑
2026-01-26 47c6b5687cb3c916394c019ab8e0f49251b116cd
feat:调整
2 files modified
14 ■■■■ changed files
applications/mobile-web-view/src/appComponents/workMap/index.vue 2 ●●● patch | view | raw | blame | history
applications/mobile-web-view/src/appPages/work/workDetail/mapWork/index.vue 12 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/src/appComponents/workMap/index.vue
@@ -291,7 +291,7 @@
watch(
    () => mapCurrentDetail,
    newVal => {
const newDataMap=JSON.parse(newVal)
const newDataMap=newVal
        // 只有 workNavigationShow 为 true 且有经纬度时才添加标记
        if (workNavigationShow && newDataMap?.longitude && newDataMap?.latitude) {
            addIncidentMarker(newDataMap)
applications/mobile-web-view/src/appPages/work/workDetail/mapWork/index.vue
@@ -7,17 +7,12 @@
            :workNavigationShow="true"
            :mapCurrentDetail="mapCurrentDetail"
        >
<!--            <template #eventNav>-->
<!--                <EventNavigation :mapCurrentDetail="mapCurrentDetail"></EventNavigation>-->
<!--            </template>-->
        </WorkMap>
    </div>
</template>
<script setup>
import { getDeviceRegion } from '@/api/home/aggregation'
import WorkMap from '@/appComponents/workMap/index.vue'
import EventNavigation from '@/appPages/work/workDetail/mapWork/eventNavigation.vue'
import { useRoute } from 'vue-router'
import { showToast } from 'vant'
import { getList } from '/src/api/work/index.js'
@@ -26,12 +21,9 @@
const userInfo = computed(() => store?.state?.user?.userInfo)
const route = useRoute()
const mapCurrentDetail = ref({})
const eventNum = ref('')
onMounted(async () => {
    eventNum.value = route.query.currentItem
    mapCurrentDetail.value = eventNum.value
    mapCurrentDetail.value =JSON.parse(route.query.currentItem)
    console.log('参数',mapCurrentDetail.value )
})
</script>