吉安感知网项目-前端
shuishen
2026-02-03 89380e6260a75d1d3b94de687ebcc2f50d50659d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!--
 * @Author       : yuan
 * @Date         : 2025-12-18 15:36:26
 * @LastEditors  : yuan
 * @LastEditTime : 2025-12-20 16:49:11
 * @FilePath     : \applications\mobile-web-view\src\appComponents\DroneMarkerPopup\index.vue
 * @Description  :
 * Copyright 2025 OBKoro1, All Rights Reserved.
 * 2025-12-18 15:36:26
-->
<template>
    <div class="marker-popup">
        <div @click="handleCreateWorkOrder">新建任务</div>
    </div>
</template>
 
<script setup>
import _ from 'lodash'
 
const props = defineProps({
    data: {
        type: Object,
        default: () => ({}),
    },
})
 
const emit = defineEmits(['close'])
const handleCreateWorkOrder = () => {
    const transmitData = { data: { type: 'jumpAddWork', rowItem: { ..._.cloneDeep(props.data) } } }
    wx.miniProgram.navigateTo({ url: `/subPackages/taskDetail/addTask/index?data=${JSON.stringify({ ..._.cloneDeep(props.data) })}` })
    wx.miniProgram.postMessage(transmitData)
    uni.postMessage(transmitData)
 
    emit('close') // 通知父组件关闭 Popup
}
</script>
 
<style scoped lang="scss"></style>