罗广辉
2025-10-15 3ff017049bbf0ba93e27c3c8e05a91cbb2a34511
src/pages/inspectionTask/TaskDetails/TaskDetails.vue
@@ -3,25 +3,29 @@
</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">