吉安感知网项目-前端
罗广辉
2026-01-06 97555adc116dcffd1e7c32a343bf7e2f41f8c972
删除无用页面
6 files modified
11 files deleted
1 files added
1197 ■■■■ changed files
uniapps/drone-app/src/App.vue 10 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages.json 320 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/dispatcher/index.vue 85 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/inspectionTask/AppPowerful.vue 34 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/inspectionTask/index.vue 99 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/map/index.vue 10 ●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/placeholder/placeholder.vue 11 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/user/index.vue 9 ●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/voiceCall/index.vue 14 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/pages/work/index.vue 88 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/droneConsole/index.vue 111 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/inspectionTask/taskDetails.vue 59 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/qrCode/index.vue 45 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/taskDetail/addTask/index.vue 85 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/taskDetail/execution/index.vue 55 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/taskDetail/inProgress/index.vue 61 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/theme/index.vue 100 ●●●●● patch | view | raw | blame | history
uniapps/drone-app/src/subPackages/userDetail/password/index.vue 1 ●●●● patch | view | raw | blame | history
uniapps/drone-app/src/App.vue
@@ -49,16 +49,6 @@
  // min-height: 10vh;
}
.uni-tabbar__item:nth-child(4) {
  .uni-tabbar__bd {
    .uni-tabbar__icon {
      width: 60px !important;
      height: 60px !important;
      margin-top: -20px;
    }
  }
}
.uni-tabbar-border {
  background-color: #f6f6f6 !important;
}
uniapps/drone-app/src/pages.json
@@ -1,185 +1,137 @@
{
  "easycom": {
    "custom": {
      "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
      "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
      "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
      "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
    }
  },
  "pages": [
    {
      "path": "pages/map/index",
      "style": {
        "navigationBarTitleText": "地图",
        "navigationStyle": "custom"
      }
    },
    {
      "path": "pages/inspectionTask/index",
      "style": {
        "navigationBarTitleText": "巡检任务",
        "navigationStyle": "custom"
      }
    },
    {
      "path": "pages/work/index",
      "style": {
        "navigationBarTitleText": "事件工单",
        "navigationStyle": "custom"
      }
    },
    {
      "path": "pages/user/index",
      "style": {
        "navigationBarTitleText": "我的",
        "navigationStyle": "custom"
      }
    },
    {
      "path": "pages/login/index",
      "style": {
        "navigationBarTitleText": "登录页",
        "navigationStyle": "custom"
      }
    }
  ],
  "subPackages": [
    {
      "root": "subPackages",
      "pages": [
        {
          "path": "404/index",
          "style": {
            "navigationBarTitleText": "404",
            "navigationStyle": "custom"
          }
        },
        {
          "path": "droneConsole/index",
          "style": {
            "navigationBarTitleText": "直播监控",
            "navigationStyle": "custom"
          }
        },
        {
          "path": "taskDetail/addTask/index",
          "style": {
            "navigationBarTitleText": "新建任务",
            "navigationStyle": "custom"
          }
        },
        {
          "path": "taskDetail/execution/index",
          "style": {
            "navigationBarTitleText": "任务详情"
          }
        },
        {
          "path": "taskDetail/inProgress/index",
          "style": {
            "navigationBarTitleText": "任务详情"
          }
        },
        {
          "path": "workDetail/index",
          "style": {
            "navigationBarTitleText": "工单详情"
          }
        },
        {
          "path": "workDetail/addWork/index",
          "style": {
            "navigationBarTitleText": "新建工单"
          }
        },
        {
          "path": "workDetail/mapWork/index",
          "style": {
            "navigationBarTitleText": "地图展示",
            "navigationStyle": "custom"
          }
        },
        {
          "path": "workDetail/photoMagnify/index",
          "style": {
            "navigationBarTitleText": "照片放大"
          }
        },
        {
          "path": "userDetail/infos/index",
          "style": {
            "navigationBarTitleText": "个人资料"
          }
        },
        {
          "path": "userDetail/password/index",
          "style": {
            "navigationBarTitleText": "修改密码"
          }
        },
        {
          "path": "browser/index",
          "style": {
            "navigationBarTitleText": "地图"
          }
        },
        {
          "path": "qrCode/index",
          "style": {
            "navigationBarTitleText": "扫码",
            "navigationBarTextStyle": "black"
          }
        }
      ]
    }
  ],
  "tabBar": {
    "color": "#8c8c8c",
    "selectedColor": "#1D6FE9",
    "borderStyle": "black",
    "backgroundColor": "#ffffff",
    "list": [
      {
        "iconPath": "static/images/tabbar/icon_home1.png",
        "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
        "pagePath": "pages/map/index",
        "text": "地图"
      },
      {
        "iconPath": "static/images/tabbar/icon_list.png",
        "selectedIconPath": "static/images/tabbar/icon_list_selected.png",
        "pagePath": "pages/inspectionTask/index",
        "text": "任务"
      },
      // #ifndef MP-WEIXIN
      {
        "iconPath": "static/images/tabbar/add.png",
        "pagePath": "subPackages/taskDetail/addTask/index"
      },
      {
        "iconPath": "static/images/tabbar/drone.png",
        "visible": "true"
      },
      // #endif
      {
        "iconPath": "static/images/tabbar/icon_order.png",
        "selectedIconPath": "static/images/tabbar/icon_order_selected.png",
        "pagePath": "pages/work/index",
        "text": "工单"
      },
      {
        "iconPath": "static/images/tabbar/icon_me.png",
        "selectedIconPath": "static/images/tabbar/icon_me_selected.png",
        "pagePath": "pages/user/index",
        "text": "我的"
      }
    ]
  },
  "globalStyle": {
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "uni-app",
    "navigationBarBackgroundColor": "#F8F8F8",
    "backgroundColor": "#F8F8F8"
  }
}
    "easycom": {
        "custom": {
            "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
            "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
            "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
            "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
        }
    },
    "pages": [
        {
            "path": "pages/work/index",
            "style": {
                "navigationBarTitleText": "事件工单",
                "navigationStyle": "custom"
            }
        },
        {
            "path": "pages/voiceCall/index",
            "style": {
                "navigationBarTitleText": "通话",
                "navigationStyle": "custom"
            }
        },
        {
            "path": "pages/map/index",
            "style": {
                "navigationBarTitleText": "地图",
                "navigationStyle": "custom"
            }
        },
        {
            "path": "pages/user/index",
            "style": {
                "navigationBarTitleText": "我的",
                "navigationStyle": "custom"
            }
        },
        {
            "path": "pages/login/index",
            "style": {
                "navigationBarTitleText": "登录页",
                "navigationStyle": "custom"
            }
        }
    ],
    "subPackages": [
        {
            "root": "subPackages",
            "pages": [
                {
                    "path": "404/index",
                    "style": {
                        "navigationBarTitleText": "404",
                        "navigationStyle": "custom"
                    }
                },
                {
                    "path": "workDetail/index",
                    "style": {
                        "navigationBarTitleText": "工单详情"
                    }
                },
                {
                    "path": "workDetail/addWork/index",
                    "style": {
                        "navigationBarTitleText": "新建工单"
                    }
                },
                {
                    "path": "workDetail/mapWork/index",
                    "style": {
                        "navigationBarTitleText": "地图展示",
                        "navigationStyle": "custom"
                    }
                },
                {
                    "path": "userDetail/infos/index",
                    "style": {
                        "navigationBarTitleText": "个人资料"
                    }
                },
                {
                    "path": "userDetail/password/index",
                    "style": {
                        "navigationBarTitleText": "修改密码"
                    }
                },
                {
                    "path": "browser/index",
                    "style": {
                        "navigationBarTitleText": "地图"
                    }
                }
            ]
        }
    ],
    "tabBar": {
        "color": "#8c8c8c",
        "selectedColor": "#1D6FE9",
        "borderStyle": "black",
        "backgroundColor": "#ffffff",
        "list": [
            {
                "iconPath": "static/images/tabbar/icon_order.png",
                "selectedIconPath": "static/images/tabbar/icon_order_selected.png",
                "pagePath": "pages/work/index",
                "text": "工单"
            },
            {
                "iconPath": "static/images/tabbar/icon_order.png",
                "selectedIconPath": "static/images/tabbar/icon_order_selected.png",
                "pagePath": "pages/voiceCall/index",
                "text": "通话"
            },
            {
                "iconPath": "static/images/tabbar/icon_home1.png",
                "selectedIconPath": "static/images/tabbar/icon_home_selected.png",
                "pagePath": "pages/map/index",
                "text": "地图"
            },
            {
                "iconPath": "static/images/tabbar/icon_me.png",
                "selectedIconPath": "static/images/tabbar/icon_me_selected.png",
                "pagePath": "pages/user/index",
                "text": "我的"
            }
        ]
    },
    "globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#F8F8F8",
        "backgroundColor": "#F8F8F8"
    }
}
uniapps/drone-app/src/pages/dispatcher/index.vue
File was deleted
uniapps/drone-app/src/pages/inspectionTask/AppPowerful.vue
File was deleted
uniapps/drone-app/src/pages/inspectionTask/index.vue
File was deleted
uniapps/drone-app/src/pages/map/index.vue
@@ -75,15 +75,7 @@
onShow(() => {
  // #ifndef MP-WEIXIN
  uni.setTabBarItem({
    index: 2, // Tab 的索引(从0开始)
    visible: false,
    pagePath: "subPackages/taskDetail/addTask/index",
  });
  uni.setTabBarItem({
    index: 3, // Tab
    visible: true,
  });
  // #endif
});
uniapps/drone-app/src/pages/placeholder/placeholder.vue
File was deleted
uniapps/drone-app/src/pages/user/index.vue
@@ -96,14 +96,7 @@
  getUserInfoData();
  // #ifndef MP-WEIXIN
  uni.setTabBarItem({
    index: 2, // Tab 的索引(从0开始)
    visible: false,
  });
  uni.setTabBarItem({
    index: 3, // Tab
    visible: true,
  });
  // #endif
});
</script>
uniapps/drone-app/src/pages/voiceCall/index.vue
New file
@@ -0,0 +1,14 @@
<template>
    <view class="eventTickets">
        语音通话
    </view>
</template>
<script setup></script>
<style scoped lang="scss">
.eventTickets {
    width: 100%;
    height: 100%;
}
</style>
uniapps/drone-app/src/pages/work/index.vue
@@ -1,97 +1,11 @@
<!--
 * @Author       : yuan
 * @Date         : 2025-12-18 10:06:30
 * @LastEditors  : yuan
 * @LastEditTime : 2025-12-20 14:18:42
 * @FilePath     : \src\pages\work\index.vue
 * @Description  :
 * Copyright 2025 OBKoro1, All Rights Reserved.
 * 2025-12-18 10:06:30
-->
<template>
  <view class="eventTickets">
    <WebViewPlus
      ref="sWebViewRef"
      :src="`${viewUrl}`"
      @webMessage="onPostMessage"
    />
    工单
  </view>
</template>
<script setup>
import { getWebViewUrl } from "@/utils/index.js";
import WebViewPlus from "@/components/WebViewPlus.vue";
import { useTabAddButton } from "@/hooks/index.js";
import { onShow, onHide } from "@dcloudio/uni-app";
const sWebViewRef = ref(null);
// 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}`,
    });
  } else if (data.type === "workid") {
    uni.navigateTo({
      url: `/subPackages/workDetail/index?eventNum=${data.eventNum}&totalNum=${data.totalNum}&keyword=${data.keyword}&aiType=${data.aiType}&status=${data.status}&current=${data.current}`,
    });
  } else if (data.type === "bigImage") {
    uni.navigateTo({
      url: `/subPackages/workDetail/photoMagnify/index?eventNum=${data.eventNum}`,
    });
  }
  // #endif
}
const isApp = ref(false);
onShow(() => {
  const joinParams = uni.getStorageSync("joinParams");
  if (joinParams) {
    updateKey.value = updateKey.value + 1;
    uni.removeStorageSync("joinParams");
  }
  // #ifndef MP-WEIXIN
  uni.setTabBarItem({
    index: 2, // Tab 的索引(从0开始)
    // text: '新建工单',
    visible: true,
    pagePath: "subPackages/workDetail/addWork/index",
  });
  uni.setTabBarItem({
    index: 3, // Tab
    visible: false,
  });
  // #endif
  // isApp.value = true
});
onHide(() => {
  // isApp.value = false
});
</script>
<style scoped lang="scss">
uniapps/drone-app/src/subPackages/droneConsole/index.vue
File was deleted
uniapps/drone-app/src/subPackages/inspectionTask/taskDetails.vue
File was deleted
uniapps/drone-app/src/subPackages/qrCode/index.vue
File was deleted
uniapps/drone-app/src/subPackages/taskDetail/addTask/index.vue
File was deleted
uniapps/drone-app/src/subPackages/taskDetail/execution/index.vue
File was deleted
uniapps/drone-app/src/subPackages/taskDetail/inProgress/index.vue
File was deleted
uniapps/drone-app/src/subPackages/theme/index.vue
File was deleted
uniapps/drone-app/src/subPackages/userDetail/password/index.vue
@@ -4,7 +4,6 @@
        <view class="detailBox">
            <div class="detailCon">
                <div class="orderRow">
                    <!-- type="password" :password-icon="passwordIcon" -->
                    <div class="rowTitle">原始密码</div>
                    <input type="password" v-model="passwordForm.oldPassword" placeholder="请输入" class="input-item" />
                </div>