From 0f40fa8796cea57329dd0b15ab964840191bc6ad Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 24 Nov 2025 10:07:53 +0800
Subject: [PATCH] feat:任务详情跳转工单多加一个参数,改成对象传参
---
src/subPackages/taskDetail/execution/index.vue | 6 +-----
src/subPackages/workDetail/index.vue | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/subPackages/taskDetail/execution/index.vue b/src/subPackages/taskDetail/execution/index.vue
index 3eea27f..212e5d4 100644
--- a/src/subPackages/taskDetail/execution/index.vue
+++ b/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}`
});
}
}
diff --git a/src/subPackages/workDetail/index.vue b/src/subPackages/workDetail/index.vue
index 38e7656..fb4f729 100644
--- a/src/subPackages/workDetail/index.vue
+++ b/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) {
--
Gitblit v1.9.3