chenyao
2025-11-24 0f40fa8796cea57329dd0b15ab964840191bc6ad
feat:任务详情跳转工单多加一个参数,改成对象传参
2 files modified
8 ■■■■ changed files
src/subPackages/taskDetail/execution/index.vue 6 ●●●● patch | view | raw | blame | history
src/subPackages/workDetail/index.vue 2 ●●● patch | view | raw | blame | history
src/subPackages/taskDetail/execution/index.vue
@@ -31,12 +31,8 @@
      url: `/pages/inspectionTask/execution/index?wayLineJodInfoId=${wayLineJodInfoId.value}`
    });
  } else if(data.type === 'workid') {
    const params = {
      eventNum: data.eventNum,
      wLJobInfoId: data.wLJobInfoId
    };
    uni.navigateTo({
      url: `/subPackages/workDetail/index?eventNum=${encodeURIComponent(JSON.stringify(params))}`
      url: `/subPackages/workDetail/index?eventNum=${data.eventNum}&wLJobInfoId=${data.wLJobInfoId}`
    });
  }
}
src/subPackages/workDetail/index.vue
@@ -15,7 +15,7 @@
    const viewUrl = ref('')
    onLoad( (options) => {
        const eventNum= options.eventNum;
        viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum,totalNum:options.totalNum,keyword:options.keyword,aiType:options.aiType})
        viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum,totalNum:options.totalNum,keyword:options.keyword,aiType:options.aiType,wLJobInfoId:options.wLJobInfoId})
    });
    function onPostMessage(data) {