From 7c9ade3d6835a14675099d2f48d2c5f7338835ab Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 20 Dec 2025 14:20:30 +0800
Subject: [PATCH] feat:小程序端,任务、工单新建调整
---
src/pages/inspectionTask/index.vue | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/pages/inspectionTask/index.vue b/src/pages/inspectionTask/index.vue
index 7be966d..be56b1d 100644
--- a/src/pages/inspectionTask/index.vue
+++ b/src/pages/inspectionTask/index.vue
@@ -19,10 +19,21 @@
const updateKey = ref(0);
const sxListKey = ref(0);
const viewUrl = computed(() => {
+ // #ifdef MP-WEIXIN
return getWebViewUrl("/inspectionTask", {
updateKey: updateKey.value,
sxListKey: sxListKey.value,
+ showAddBtn: 1,
});
+ // #endif
+
+ // #ifndef MP-WEIXIN
+ return getWebViewUrl("/inspectionTask", {
+ updateKey: updateKey.value,
+ sxListKey: sxListKey.value,
+ showAddBtn: 0,
+ });
+ // #endif
});
watch(
@@ -49,6 +60,11 @@
}
// #endif
}
+
+ if (data.type === "addTask") {
+ // #ifdef MP-WEIXIN
+ // #endif
+ }
}
const isApp = ref(false);
onShow(() => {
--
Gitblit v1.9.3