| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {useUserStore} from "@/store/index.js"; |
| | | import WebViewPlus from "@/components/WebViewPlus.vue"; |
| | | import {getWebViewUrl} from "@/utils/index.js"; |
| | | import {onLoad} from "@dcloudio/uni-app"; |
| | | |
| | | const userStore = useUserStore() |
| | | const viewUrl = getWebViewUrl('/TaskInProgress', {wayLineJodInfoId: 6120}) |
| | | |
| | | const wayLineJodInfoId = ref(null) |
| | | const viewUrl = ref('') |
| | | |
| | | function onPostMessage(data) { |
| | | if (data.type === 'back'){ |
| | | if (data.type === 'back') { |
| | | uni.switchTab({ |
| | | url: '/pages/inspectionTask/index' |
| | | }); |
| | | }else if(data.type === 'control'){ |
| | | } else if (data.type === 'control') { |
| | | uni.redirectTo({ |
| | | url: '/pages/inspectionTask/DroneConsole/DroneConsole' |
| | | url: `/pages/inspectionTask/DroneConsole/DroneConsole?wayLineJodInfoId=${wayLineJodInfoId.value}` |
| | | }); |
| | | } |
| | | } |
| | | |
| | | onLoad((options) => { |
| | | wayLineJodInfoId.value = options.wayLineJodInfoId |
| | | viewUrl.value = getWebViewUrl('/TaskInProgress', {wayLineJodInfoId: wayLineJodInfoId.value}) |
| | | }) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |