shuishen
2025-12-20 7c9ade3d6835a14675099d2f48d2c5f7338835ab
feat:小程序端,任务、工单新建调整
4 files modified
39 ■■■■■ changed files
src/pages.json 3 ●●●● patch | view | raw | blame | history
src/pages/inspectionTask/index.vue 16 ●●●●● patch | view | raw | blame | history
src/pages/work/index.vue 19 ●●●●● patch | view | raw | blame | history
src/subPackages/taskDetail/addTask/index.vue 1 ●●●● patch | view | raw | blame | history
src/pages.json
@@ -65,7 +65,8 @@
        {
          "path": "taskDetail/addTask/index",
          "style": {
            "navigationBarTitleText": "新建任务"
            "navigationBarTitleText": "新建任务",
            "navigationStyle": "custom"
          }
        },
        {
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(() => {
src/pages/work/index.vue
@@ -2,7 +2,7 @@
 * @Author       : yuan
 * @Date         : 2025-12-18 10:06:30
 * @LastEditors  : yuan
 * @LastEditTime : 2025-12-20 11:37:09
 * @LastEditTime : 2025-12-20 14:18:42
 * @FilePath     : \src\pages\work\index.vue
 * @Description  : 
 * Copyright 2025 OBKoro1, All Rights Reserved. 
@@ -28,12 +28,28 @@
// const viewUrl = getWebViewUrl('/work', {})
const updateKey = ref(0);
const viewUrl = computed(() => {
  // #ifdef MP-WEIXIN
  return getWebViewUrl("/work", {
    updateKey: updateKey.value,
    showAddBtn: 1,
  });
  // #endif
  // #ifndef MP-WEIXIN
  return getWebViewUrl("/work", {
    updateKey: updateKey.value,
    showAddBtn: 0,
  });
  // #endif
});
function onPostMessage(data) {
  // #ifdef MP-WEIXIN
  if (data.type === "addWork") {
  }
  // #endif
  // #ifndef MP-WEIXIN
  if (data.type === "jumpMapNav") {
    uni.navigateTo({
      url: `/subPackages/workDetail/mapWork/index?currentItem=${data.eventNum}`,
@@ -47,6 +63,7 @@
      url: `/subPackages/workDetail/photoMagnify/index?eventNum=${data.eventNum}`,
    });
  }
  // #endif
}
const isApp = ref(false);
onShow(() => {
src/subPackages/taskDetail/addTask/index.vue
@@ -52,6 +52,7 @@
      console.error(e);
    }
  }
  viewUrl.value = getWebViewUrl("/addTask", params);
});