罗广辉
2025-12-04 f8b235303f0e1dcb43212deab2ee2f50ef724533
feat: jod改为job
5 files modified
24 ■■■■ changed files
src/pages/inspectionTask/index.vue 4 ●●●● patch | view | raw | blame | history
src/subPackages/droneConsole/index.vue 2 ●●● patch | view | raw | blame | history
src/subPackages/inProgress/index.vue 8 ●●●● patch | view | raw | blame | history
src/subPackages/inspectionTask/taskDetails.vue 2 ●●● patch | view | raw | blame | history
src/subPackages/taskDetail/execution/index.vue 8 ●●●● patch | view | raw | blame | history
src/pages/inspectionTask/index.vue
@@ -29,11 +29,11 @@
  if (data.type === 'taskDetails'){
    if ([1,2].includes(data.rowItem.status)){
      uni.navigateTo({
        url: `/subPackages/inProgress/index?wayLineJodInfoId=${data.rowItem.id}`
        url: `/subPackages/inProgress/index?wayLineJobInfoId=${data.rowItem.id}`
      });
    } else {
      uni.navigateTo({
        url: `/subPackages/taskDetail/execution/index?wayLineJodInfoId=${data.rowItem.id}`
        url: `/subPackages/taskDetail/execution/index?wayLineJobInfoId=${data.rowItem.id}`
      });
    }
  }
src/subPackages/droneConsole/index.vue
@@ -19,7 +19,7 @@
function onPostMessage(data) {
  if (data.type === 'back'){
    // uni.navigateTo({
    //   url: `/subPackages/inProgress/index?wayLineJodInfoId=${data.taskDetails.id}`
    //   url: `/subPackages/inProgress/index?wayLineJobInfoId=${data.taskDetails.id}`
    // });
    // #ifdef H5
    window.history.back()
src/subPackages/inProgress/index.vue
@@ -7,7 +7,7 @@
import {getWebViewUrl} from "@/utils/index.js";
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
const wayLineJodInfoId = ref(null)
const wayLineJobInfoId = ref(null)
const viewUrl = ref('')
const showComponent = ref(false)
function onPostMessage(data) {
@@ -17,14 +17,14 @@
    });
  } else if (data.type === 'control') {
    uni.navigateTo({
      url: `/subPackages/droneConsole/index?wayLineJodInfoId=${wayLineJodInfoId.value}&dockSn=${data.dockSn}`
      url: `/subPackages/droneConsole/index?wayLineJobInfoId=${wayLineJobInfoId.value}&dockSn=${data.dockSn}`
    });
  }
}
onLoad((options) => {
  wayLineJodInfoId.value = options.wayLineJodInfoId
  viewUrl.value = getWebViewUrl('/TaskInProgress', {wayLineJodInfoId: wayLineJodInfoId.value})
  wayLineJobInfoId.value = options.wayLineJobInfoId
  viewUrl.value = getWebViewUrl('/TaskInProgress', {wayLineJobInfoId: wayLineJobInfoId.value})
})
onShow(function () {
src/subPackages/inspectionTask/taskDetails.vue
@@ -3,7 +3,7 @@
    <view>
      <web-view
        ref="sWebViewRef"
        :src='`${viewUrl}?token=${token}&wayLineJodInfoId=${active.id}`'
        :src='`${viewUrl}?token=${token}&wayLineJobInfoId=${active.id}`'
        @message="onPostMessage"
        @onPostMessage="onPostMessage"
      />
src/subPackages/taskDetail/execution/index.vue
@@ -8,7 +8,7 @@
import WebViewPlus from "@/components/WebViewPlus.vue";
import {getWebViewUrl} from "@/utils/index.js";
const wayLineJodInfoId = ref(null)
const wayLineJobInfoId = ref(null)
const viewUrl = ref('')
// const viewUrl = ref(getWebViewUrl('/execution'))
@@ -28,7 +28,7 @@
    });
  } else if (data.type === 'control') {
    uni.redirectTo({
      url: `/pages/inspectionTask/execution/index?wayLineJodInfoId=${wayLineJodInfoId.value}`
      url: `/pages/inspectionTask/execution/index?wayLineJobInfoId=${wayLineJobInfoId.value}`
    });
  } else if(data.type === 'workid') {
    uni.navigateTo({
@@ -38,8 +38,8 @@
}
onLoad((options) => {
  wayLineJodInfoId.value = options.wayLineJodInfoId
  viewUrl.value = getWebViewUrl('/execution', {wayLineJodInfoId: wayLineJodInfoId.value})
  wayLineJobInfoId.value = options.wayLineJobInfoId
  viewUrl.value = getWebViewUrl('/execution', {wayLineJobInfoId: wayLineJobInfoId.value})
})
const isApp = ref(false)
onShow(() => {