| src/pages/inspectionTask/DroneConsole/DroneConsole.vue | ●●●●● patch | view | raw | blame | history | |
| src/pages/inspectionTask/TaskDetails/TaskDetails.vue | ●●●●● patch | view | raw | blame | history | |
| src/pages/inspectionTask/index.vue | ●●●●● patch | view | raw | blame | history |
src/pages/inspectionTask/DroneConsole/DroneConsole.vue
@@ -2,16 +2,21 @@ <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/> </template> <script setup> import {onHide, onShow} from "@dcloudio/uni-app"; import {onHide, onLoad, onShow} from "@dcloudio/uni-app"; import WebViewPlus from "@/components/WebViewPlus.vue"; import {getWebViewUrl} from "@/utils/index.js"; const viewUrl = getWebViewUrl('/DroneConsole', {wayLineJodInfoId: 6120}) const viewUrl = ref('') const wayLineJodInfoId = ref(null) function onPostMessage(event) { } onLoad((options) => { wayLineJodInfoId.value = options.wayLineJodInfoId viewUrl.value = getWebViewUrl('/DroneConsole', {wayLineJodInfoId: wayLineJodInfoId.value}) }) // onShow(() => { // // #ifdef APP-PLUS src/pages/inspectionTask/TaskDetails/TaskDetails.vue
@@ -3,13 +3,12 @@ </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'){ @@ -18,10 +17,15 @@ }); }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"> src/pages/inspectionTask/index.vue
@@ -13,7 +13,7 @@ if (data.type === 'taskDetails'){ if ([1,2].includes(data.rowItem.status)){ uni.navigateTo({ url: '/pages/inspectionTask/TaskDetails/TaskDetails' url: `/pages/inspectionTask/TaskDetails/TaskDetails?wayLineJodInfoId=${data.rowItem.id}` }); }else{ uni.navigateTo({