From f2251d2f5c47fbe00a819f02f8d8c7ed70e60aaf Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 20 Oct 2025 22:08:33 +0800
Subject: [PATCH] feat: 调整路径

---
 src/subPackages/taskDetail/execution/index.vue |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/src/subPackages/taskDetail/execution/index.vue b/src/subPackages/taskDetail/execution/index.vue
index 6d683e5..bef53e1 100644
--- a/src/subPackages/taskDetail/execution/index.vue
+++ b/src/subPackages/taskDetail/execution/index.vue
@@ -1,8 +1,50 @@
 <!-- 已执行 -->
 <template>
-  <view> 基础 </view>
+  <WebViewPlus v-if="isApp" :src="`${viewUrl}`" @webMessage="onPostMessage"/>
 </template>
 
-<script setup></script>
+<script setup>
+import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
+import WebViewPlus from "@/components/WebViewPlus.vue";
+import {getWebViewUrl} from "@/utils/index.js";
+
+const wayLineJodInfoId = ref(null)
+const viewUrl = ref('')
+// const viewUrl = ref(getWebViewUrl('/execution'))
+
+// function onPostMessage(data) {
+//   console.log(data, '9999')
+//   if (data.type === 'taskDetails'){
+//     console.log('4444')
+//     uni.switchTab({
+//       url: '/subPackages/taskDetail/execution/index'
+//     });
+//   }
+// }
+function onPostMessage(data) {
+  if (data.type === 'back') {
+    uni.switchTab({
+      url: '/pages/inspectionTask/index'
+    });
+  } else if (data.type === 'control') {
+    uni.redirectTo({
+      url: `/pages/inspectionTask/execution/index?wayLineJodInfoId=${wayLineJodInfoId.value}`
+    });
+  }
+}
+
+onLoad((options) => {
+  wayLineJodInfoId.value = options.wayLineJodInfoId
+  viewUrl.value = getWebViewUrl('/execution', {wayLineJodInfoId: wayLineJodInfoId.value})
+})
+const isApp = ref(false)
+onShow(() => {
+  isApp.value = true
+});
+
+onHide(() => {
+  isApp.value = false
+});
+</script>
 
 <style lang="scss" scoped></style>

--
Gitblit v1.9.3