xiaoxin преди 2 месеца
ревизия
b6cbc6d5fd
променени са 100 файла, в които са добавени 32347 реда и са изтрити 0 реда
  1. 24 0
      .gitignore
  2. 6 0
      .vs/VSWorkspaceState.json
  3. BIN
      .vs/construction Management/v17/.wsuo
  4. BIN
      .vs/slnx.sqlite
  5. 3 0
      .vscode/extensions.json
  6. 36 0
      README.en.md
  7. 39 0
      README.md
  8. 17 0
      index.html
  9. 6093 0
      package-lock.json
  10. 49 0
      package.json
  11. 37 0
      src/App.vue
  12. 87 0
      src/api/admin.js
  13. 14 0
      src/api/home.js
  14. 120 0
      src/api/system.js
  15. 110 0
      src/api/vidicons.js
  16. 279 0
      src/assets/files/viewer.properties
  17. BIN
      src/assets/icon/delivery.ico
  18. BIN
      src/assets/images/bg.png
  19. BIN
      src/assets/images/cockpit.png
  20. BIN
      src/assets/images/dataReport.png
  21. BIN
      src/assets/images/delete.png
  22. BIN
      src/assets/images/descent.png
  23. BIN
      src/assets/images/down.png
  24. BIN
      src/assets/images/end.png
  25. BIN
      src/assets/images/home.png
  26. BIN
      src/assets/images/icons.png
  27. BIN
      src/assets/images/jiantou.png
  28. BIN
      src/assets/images/jiantou2.png
  29. BIN
      src/assets/images/logo.png
  30. BIN
      src/assets/images/logo1.png
  31. BIN
      src/assets/images/map.png
  32. BIN
      src/assets/images/map2.jpg
  33. BIN
      src/assets/images/message.png
  34. BIN
      src/assets/images/monitoring.png
  35. BIN
      src/assets/images/navberBg.png
  36. BIN
      src/assets/images/noRole.png
  37. BIN
      src/assets/images/origin.png
  38. BIN
      src/assets/images/position.png
  39. BIN
      src/assets/images/position2.png
  40. BIN
      src/assets/images/project.png
  41. BIN
      src/assets/images/start.png
  42. BIN
      src/assets/images/system.png
  43. BIN
      src/assets/images/tarmac.png
  44. BIN
      src/assets/images/touxiang.png
  45. BIN
      src/assets/images/uav.png
  46. BIN
      src/assets/images/uav2.png
  47. BIN
      src/assets/images/up.png
  48. BIN
      src/assets/images/waypoint.png
  49. BIN
      src/assets/news.png
  50. BIN
      src/assets/news2.jpg
  51. BIN
      src/assets/photo.png
  52. 1 0
      src/assets/svgIcon/account.svg
  53. 4 0
      src/assets/svgIcon/container.svg
  54. 6 0
      src/assets/svgIcon/distribution.svg
  55. 6 0
      src/assets/svgIcon/drone.svg
  56. 4 0
      src/assets/svgIcon/message.svg
  57. 8 0
      src/assets/svgIcon/monitoring.svg
  58. 6 0
      src/assets/svgIcon/parking.svg
  59. 1 0
      src/assets/svgIcon/role.svg
  60. 1 0
      src/assets/svgIcon/routeMission.svg
  61. 10 0
      src/assets/svgIcon/station.svg
  62. 1 0
      src/assets/svgIcon/system.svg
  63. 159 0
      src/components/PDFViewer.vue
  64. 43 0
      src/components/SvgIcon.vue
  65. 25 0
      src/components/wordViewer.vue
  66. 156 0
      src/index.vue
  67. 199 0
      src/layout/index.vue
  68. 926 0
      src/layout/sidebar/Navbar.vue
  69. 509 0
      src/layout/sidebar/NavbarBG.vue
  70. 347 0
      src/layout/sidebar/SidevarItem.vue
  71. 65 0
      src/main.js
  72. 135 0
      src/router/index.js
  73. 5 0
      src/store/getters.js
  74. 22 0
      src/store/index.js
  75. 599 0
      src/store/modules/user.js
  76. 89 0
      src/style.css
  77. 1 0
      src/style/mixin.scss
  78. 1377 0
      src/utils/LabelsData.js
  79. 74 0
      src/utils/http.js
  80. 23 0
      src/utils/loadMap.js
  81. 47 0
      src/utils/request.js
  82. 22 0
      src/utils/rsa.js
  83. 1728 0
      src/views/account/account.vue
  84. 893 0
      src/views/container/container.vue
  85. 1501 0
      src/views/distribution/distribution.vue
  86. 1135 0
      src/views/drone/drone.vue
  87. 120 0
      src/views/error/error.vue
  88. 418 0
      src/views/login/index.vue
  89. 1334 0
      src/views/message/message copy.vue
  90. 1343 0
      src/views/message/message.vue
  91. 2398 0
      src/views/monitoring/monitoring copy.vue
  92. 2482 0
      src/views/monitoring/monitoring copy1.vue
  93. 2482 0
      src/views/monitoring/monitoring.vue
  94. 921 0
      src/views/parking/parking.vue
  95. 1960 0
      src/views/routeMission/routeMission.vue
  96. 1100 0
      src/views/station/station.vue
  97. 312 0
      src/views/system/system.vue
  98. 156 0
      src/views/system/system1.vue
  99. 279 0
      viewer.properties
  100. 0 0
      vite.config.js

+ 24 - 0
.gitignore

@@ -0,0 +1,24 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?

+ 6 - 0
.vs/VSWorkspaceState.json

@@ -0,0 +1,6 @@
+{
+  "ExpandedNodes": [
+    ""
+  ],
+  "PreviewInSolutionExplorer": false
+}

BIN
.vs/construction Management/v17/.wsuo


BIN
.vs/slnx.sqlite


+ 3 - 0
.vscode/extensions.json

@@ -0,0 +1,3 @@
+{
+  "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
+}

+ 36 - 0
README.en.md

@@ -0,0 +1,36 @@
+# 校园报修系统
+
+#### Description
+{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Instructions
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Contribution
+
+1.  Fork the repository
+2.  Create Feat_xxx branch
+3.  Commit your code
+4.  Create Pull Request
+
+
+#### Gitee Feature
+
+1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4.  The most valuable open source project [GVP](https://gitee.com/gvp)
+5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 39 - 0
README.md

@@ -0,0 +1,39 @@
+# 校园报修系统
+
+#### 介绍
+{**以下是 Gitee 平台说明,您可以替换此简介**
+Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
+无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
+
+#### 软件架构
+软件架构说明
+
+
+#### 安装教程
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 使用说明
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### 参与贡献
+
+1.  Fork 本仓库
+2.  新建 Feat_xxx 分支
+3.  提交代码
+4.  新建 Pull Request
+
+
+#### 特技
+
+1.  使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
+2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
+3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
+4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
+5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
+6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 17 - 0
index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="zh">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <link
+      rel="icon"
+      href="./src/assets/icon/delivery.ico"
+    />
+    <title>自动全流程低空物流信息管控系统</title>
+  </head>
+  <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=2f805b4a8fd6a35d3b4d7b38ddf3c8c0"></script> -->
+  <body>
+    <div id="app"></div>
+    <script type="module" src="/src/main.js"></script>
+  </body>
+</html>

Файловите разлики са ограничени, защото са твърде много
+ 6093 - 0
package-lock.json


+ 49 - 0
package.json

@@ -0,0 +1,49 @@
+{
+  "name": "vite-project",
+  "private": true,
+  "version": "0.0.0",
+  "type": "module",
+  "scripts": {
+    "dev": "vite",
+    "build": "vite build",
+    "preview": "vite preview"
+  },
+  "dependencies": {
+    "@amap/amap-jsapi-loader": "^1.0.1",
+    "@easydarwin/easyplayer": "^5.0.7",
+    "@element-plus/icons-vue": "^2.0.10",
+    "@liveqing/liveplayer-v3": "^3.7.10",
+    "@vue-office/docx": "^1.6.2",
+    "@vue-office/excel": "^1.7.14",
+    "@wangeditor/editor": "^5.1.23",
+    "@wangeditor/editor-for-vue": "^5.1.12",
+    "axios": "^1.3.2",
+    "cos-js-sdk-v5": "^1.5.0",
+    "dayjs": "^1.11.8",
+    "echarts": "^5.2.0",
+    "echarts-gl": "^2.0.9",
+    "element-plus": "^2.9.0",
+    "fast-glob": "^3.3.2",
+    "hls.js": "^1.3.4",
+    "jsencrypt": "^3.3.1",
+    "lodash": "^4.17.21",
+    "nprogress": "^0.2.0",
+    "qrcode.vue": "^3.4.1",
+    "sass": "^1.58.0",
+    "sass-loader": "^13.2.0",
+    "terser": "^5.16.5",
+    "v-viewer": "^3.0.11",
+    "vite-plugin-svg-icons": "^2.0.1",
+    "vue": "^3.2.45",
+    "vue-demi": "^0.14.10",
+    "vue-router": "^4.0.10",
+    "vue3-pdf-app": "^1.0.3",
+    "vue3-seamless-scroll": "^2.0.1",
+    "vuex": "^4.0.2",
+    "vuex-persistedstate": "^4.1.0"
+  },
+  "devDependencies": {
+    "@vitejs/plugin-vue": "^4.0.0",
+    "vite": "^4.1.0"
+  }
+}

+ 37 - 0
src/App.vue

@@ -0,0 +1,37 @@
+<script setup>
+import { ref, reactive, nextTick, onBeforeMount, onUnmounted } from "vue";
+import { useRouter } from "vue-router";
+import { useStore } from "vuex";
+const store = useStore();
+const router = useRouter();
+
+onBeforeMount(() => {
+  // store.dispatch("pathSelect");
+  // store.dispatch("busNum");
+  // store.dispatch("newsAsync");
+  // store.dispatch("sm_time");
+});
+</script>
+
+<template>
+  <router-view></router-view>
+</template>
+
+<style lang="scss">
+#app {
+  // max-width: 1920px;
+  // min-width: 1020px;
+  width: calc(100%);
+  // height: calc(100%);
+  min-height: 100vh;
+  max-height: 1080px;
+  margin: 0;
+  padding: 0;
+  text-align: unset;
+  // width: 100%;
+  // height: 100%;
+  // margin: 0;
+  // padding: 0;
+}
+
+</style>

+ 87 - 0
src/api/admin.js

@@ -0,0 +1,87 @@
+import request from "@/utils/request";
+const requests = '/api'// 线上
+// const requests = '/video/transcoding/transcoding'//线下
+export default {
+    // 登录账号
+    // async adminLogin(data) {
+    //     let requestData = await request({
+    //         url: `${requests}/carBook/adminlogin.action`,
+    //         method: "POST",
+    //         // headers: { "Content-Type": "application/json;charset=utf-8" },
+    //         data: data,
+    //     });
+    //     return requestData;
+    // },
+
+    // 账号列表
+    // async adminList(params) {
+    //     let requestData = await request({
+    //         url: `${requests}/carBook/adminlist.action`,
+    //         method: "GET",
+    //         headers: { "Content-Type": "multipart/form-data" },
+    //         params,
+    //     });
+    //     return requestData;
+    // },
+
+    // 新增管理员
+    async adminAdd(data) {
+        let requestData = await request({
+            url: `${requests}/carBook/admininsert.action`,
+            method: "POST",
+            data,
+        });
+        return requestData;
+    },
+    // 修改管理员
+    async adminUpdate(data) {
+        let requestData = await request({
+            url: `${requests}/carBook/adminupdate.action`,
+            method: "POST",
+            data,
+        });
+        return requestData;
+    },
+    // 修改密码
+    // async updatePassword(data) {
+    //     let requestData = await request({
+    //         url: `${requests}/videoAdmin/updatePassword`,
+    //         method: "PUT",
+    //         data,
+    //     });
+    //     return requestData;
+    // },
+    // 删除管理员
+    async adminDel(data) {
+        let requestData = await request({
+            url: `${requests}/carBook/admindel.action`,
+            method: "POST",
+            data,
+        });
+        return requestData;
+    },
+
+    // 导出管理员信息
+    async download(params) {
+        let requestData = await request({
+            url: `${requests}/carBook/admintoExcel.action`,
+            method: "GET",
+            headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+            responseType: "blob",
+            params,
+        });
+        return requestData;
+    },
+
+    // 导入监控信息
+    // async importByExcel(data) {
+    //     let requestData = await request({
+    //         // url: "/api/video/videoAdmin/importByExcel",
+    //         url: `${requests}/camera/importByExcel`,
+    //         method: "POST",
+    //         headers: { "Content-Type": "multipart/form-data" },
+    //         data: data,
+    //     });
+    //     return requestData;
+    // },
+};

+ 14 - 0
src/api/home.js

@@ -0,0 +1,14 @@
+import request from "@/utils/request";
+// const request='/api'
+export default {
+    /*搜索*/
+
+    async getHomeList(data) {
+        let requestData = await request({
+            url: "/api",
+            method: "POST",
+            data: data,
+        });
+        return requestData;
+    }
+}

+ 120 - 0
src/api/system.js

@@ -0,0 +1,120 @@
+import request from "@/utils/request";
+const requests = "/video/transcoding"; // 线上
+// const requests = '/video/transcoding/transcoding'// 线下
+export default {
+  // 添加监控信息
+  async systemList(data) {
+    let requestData = await request({
+      url: `${requests}/config/showCfg`,
+      method: "get",
+      headers: {
+        "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
+      },
+      params: data,
+    });
+    return requestData;
+  },
+
+  // 删除监控信息
+  async delCamera(data) {
+    let requestData = await request({
+      url: `${requests}/camera/delete`,
+      method: "DELETE",
+      data,
+    });
+    return requestData;
+  },
+
+  // 修改监控信息
+  async updateCamera(data) {
+    let requestData = await request({
+      url: `${requests}/camera/updateCamera`,
+      method: "PUT",
+      headers: { "Content-Type": "application/json; charset=utf-8" },
+      data,
+    });
+    return requestData;
+  },
+
+  // 监控信息列表
+  async queryCamera(data) {
+    let requestData = await request({
+      url: `${requests}/camera/queryCamera`,
+      method: "POST",
+      headers: {
+        "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
+      },
+      params: data,
+    });
+    return requestData;
+  },
+  // 导出监控信息
+  async download(params) {
+    let requestData = await request({
+      url: `${requests}/camera/download`,
+      method: "GET",
+      headers: {
+        "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
+      },
+      responseType: "blob",
+      params,
+    });
+    return requestData;
+  },
+  // 导入监控信息
+  async importByExcel(data) {
+    let requestData = await request({
+      url: `${requests}/camera/importByExcel`,
+      method: "POST",
+      headers: { "Content-Type": "multipart/form-data" },
+      data,
+    });
+    return requestData;
+  },
+
+  // 使用Stream推拉流
+  async addStreamSource(data) {
+    let requestData = await request({
+      url: `${requests}/stream/addStreamSource`,
+      method: "POST",
+      headers: { "Content-Type": "application/json; charset=utf-8" },
+      data,
+    });
+    return requestData;
+  },
+
+  // 关闭Stream推拉流
+  async delStreamSource(data) {
+    let requestData = await request({
+      url: `${requests}/stream/delStreamSource`,
+      method: "POST",
+      headers: { "Content-Type": "application/json; charset=utf-8" },
+      data,
+    });
+    return requestData;
+  },
+  // 更新输出链接
+  async updateCameraLink(params) {
+    let requestData = await request({
+      url: `${requests}/camera/updateCameraLink`,
+      method: "GET",
+      headers: {
+        "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
+      },
+      params,
+    });
+    return requestData;
+  },
+  // 关闭当前播放回写剩下的播放链接、
+  async delAndUpdateLink(params) {
+    let requestData = await request({
+      url: `${requests}/stream/delAndUpdateLink`,
+      method: "GET",
+      headers: {
+        "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",
+      },
+      params,
+    });
+    return requestData;
+  },
+};

+ 110 - 0
src/api/vidicons.js

@@ -0,0 +1,110 @@
+import request from "@/utils/request";
+const requests = '/video/transcoding'// 线上
+// const requests = '/video/transcoding/transcoding'// 线下
+export default {
+    // 添加监控信息
+    async addCamera(data) {
+        let requestData = await request({
+            url: `${requests}/camera/addCamera`,
+            method: "POST",
+            headers: { "Content-Type": "application/json; charset=utf-8" },
+            data: data,
+        });
+        return requestData;
+    },
+
+    // 删除监控信息
+    async delCamera(data) {
+        let requestData = await request({
+            url: `${requests}/camera/delete`,
+            method: "DELETE",
+            data
+        });
+        return requestData;
+    },
+
+    // 修改监控信息
+    async updateCamera(data) {
+        let requestData = await request({
+            url: `${requests}/camera/updateCamera`,
+            method: "PUT",
+            headers: { "Content-Type": "application/json; charset=utf-8" },
+            data,
+        });
+        return requestData;
+    },
+
+    // 监控信息列表
+    async queryCamera(data) {
+        let requestData = await request({
+            url: `${requests}/camera/queryCamera`,
+            method: "POST",
+            headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+            params: data,
+        });
+        return requestData;
+    },
+    // 导出监控信息
+    async download(params) {
+        let requestData = await request({
+            url: `${requests}/camera/download`,
+            method: "GET",
+            headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+            responseType: "blob",
+            params,
+        });
+        return requestData;
+    },
+    // 导入监控信息
+    async importByExcel(data) {
+        let requestData = await request({
+            url: `${requests}/camera/importByExcel`,
+            method: "POST",
+            headers: { "Content-Type": "multipart/form-data" },
+            data,
+        });
+        return requestData;
+    },
+
+    // 使用Stream推拉流
+    async addStreamSource(data) {
+        let requestData = await request({
+            url: `${requests}/stream/addStreamSource`,
+            method: "POST",
+            headers: { "Content-Type": "application/json; charset=utf-8" },
+            data,
+        });
+        return requestData;
+    },
+
+    // 关闭Stream推拉流
+    async delStreamSource(data) {
+        let requestData = await request({
+            url: `${requests}/stream/delStreamSource`,
+            method: "POST",
+            headers: { "Content-Type": "application/json; charset=utf-8" },
+            data,
+        });
+        return requestData;
+    },
+    // 更新输出链接
+    async updateCameraLink(params) {
+        let requestData = await request({
+            url: `${requests}/camera/updateCameraLink`,
+            method: "GET",
+            headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+            params,
+        });
+        return requestData;
+    },
+    // 关闭当前播放回写剩下的播放链接、
+    async delAndUpdateLink(params) {
+        let requestData = await request({
+            url: `${requests}/stream/delAndUpdateLink`,
+            method: "GET",
+            headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+            params,
+        });
+        return requestData;
+    },
+};

+ 279 - 0
src/assets/files/viewer.properties

@@ -0,0 +1,279 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=上一页
+previous_label=上一页
+next.title=下一页
+next_label=下一页
+
+# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
+page.title=页面
+# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
+# representing the total number of pages in the document.
+of_pages=/ {{pagesCount}}
+# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
+# will be replaced by a number representing the currently visible page,
+# respectively a number representing the total number of pages in the document.
+page_of_pages=({{pageNumber}} / {{pagesCount}})
+
+zoom_out.title=缩小
+zoom_out_label=缩小
+zoom_in.title=放大
+zoom_in_label=放大
+zoom.title=缩放
+presentation_mode.title=切换到演示模式
+presentation_mode_label=演示模式
+open_file.title=打开文件
+open_file_label=打开
+print.title=打印
+print_label=打印
+download.title=下载
+download_label=下载
+bookmark.title=当前在看的内容(复制或在新窗口中打开)
+bookmark_label=当前在看
+
+save.title=保存
+save_label=保存
+bookmark1.title=当前页面(在当前页面查看 URL)
+bookmark1_label=当前页面
+
+# Secondary toolbar and context menu
+tools.title=工具
+tools_label=工具
+first_page.title=转到第一页
+first_page_label=转到第一页
+last_page.title=转到最后一页
+last_page_label=转到最后一页
+page_rotate_cw.title=顺时针旋转
+page_rotate_cw_label=顺时针旋转
+page_rotate_ccw.title=逆时针旋转
+page_rotate_ccw_label=逆时针旋转
+
+cursor_text_select_tool.title=启用文本选择工具
+cursor_text_select_tool_label=文本选择工具
+cursor_hand_tool.title=启用手形工具
+cursor_hand_tool_label=手形工具
+
+scroll_page.title=使用页面滚动
+scroll_page_label=页面滚动
+scroll_vertical.title=使用垂直滚动
+scroll_vertical_label=垂直滚动
+scroll_horizontal.title=使用水平滚动
+scroll_horizontal_label=水平滚动
+scroll_wrapped.title=使用平铺滚动
+scroll_wrapped_label=平铺滚动
+
+spread_none.title=不加入衔接页
+spread_none_label=单页视图
+spread_odd.title=加入衔接页使奇数页作为起始页
+spread_odd_label=双页视图
+spread_even.title=加入衔接页使偶数页作为起始页
+spread_even_label=书籍视图
+
+# Document properties dialog box
+document_properties.title=文档属性…
+document_properties_label=文档属性…
+document_properties_file_name=文件名:
+document_properties_file_size=文件大小:
+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
+# will be replaced by the PDF file size in kilobytes, respectively in bytes.
+document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
+# will be replaced by the PDF file size in megabytes, respectively in bytes.
+document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
+document_properties_title=标题:
+document_properties_author=作者:
+document_properties_subject=主题:
+document_properties_keywords=关键词:
+document_properties_creation_date=创建日期:
+document_properties_modification_date=修改日期:
+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
+# will be replaced by the creation/modification date, and time, of the PDF file.
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=创建者:
+document_properties_producer=PDF 生成器:
+document_properties_version=PDF 版本:
+document_properties_page_count=页数:
+document_properties_page_size=页面大小:
+document_properties_page_size_unit_inches=英寸
+document_properties_page_size_unit_millimeters=毫米
+document_properties_page_size_orientation_portrait=纵向
+document_properties_page_size_orientation_landscape=横向
+document_properties_page_size_name_a3=A3
+document_properties_page_size_name_a4=A4
+document_properties_page_size_name_letter=文本
+document_properties_page_size_name_legal=法律
+# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
+# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
+# the size, respectively their unit of measurement and orientation, of the (current) page.
+document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}})
+# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
+# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
+# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
+document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}})
+# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
+# the document; usually called "Fast Web View" in English locales of Adobe software.
+document_properties_linearized=快速 Web 视图:
+document_properties_linearized_yes=是
+document_properties_linearized_no=否
+document_properties_close=关闭
+
+print_progress_message=正在准备打印文档…
+# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
+# a numerical per cent value.
+print_progress_percent={{progress}}%
+print_progress_close=取消
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=切换侧栏
+toggle_sidebar_notification2.title=切换侧栏(文档所含的大纲/附件/图层)
+toggle_sidebar_label=切换侧栏
+document_outline.title=显示文档大纲(双击展开/折叠所有项)
+document_outline_label=文档大纲
+attachments.title=显示附件
+attachments_label=附件
+layers.title=显示图层(双击即可将所有图层重置为默认状态)
+layers_label=图层
+thumbs.title=显示缩略图
+thumbs_label=缩略图
+current_outline_item.title=查找当前大纲项目
+current_outline_item_label=当前大纲项目
+findbar.title=在文档中查找
+findbar_label=查找
+
+additional_layers=其他图层
+# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
+page_landmark=第 {{page}} 页
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=第 {{page}} 页
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=页面 {{page}} 的缩略图
+
+# Find panel button title and messages
+find_input.title=查找
+find_input.placeholder=在文档中查找…
+find_previous.title=查找词语上一次出现的位置
+find_previous_label=上一页
+find_next.title=查找词语后一次出现的位置
+find_next_label=下一页
+find_highlight=全部高亮显示
+find_match_case_label=区分大小写
+find_match_diacritics_label=匹配变音符号
+find_entire_word_label=全词匹配
+find_reached_top=到达文档开头,从末尾继续
+find_reached_bottom=到达文档末尾,从开头继续
+# LOCALIZATION NOTE (find_match_count): The supported plural forms are
+# [one|two|few|many|other], with [other] as the default value.
+# "{{current}}" and "{{total}}" will be replaced by a number representing the
+# index of the currently active find result, respectively a number representing
+# the total number of matches in the document.
+find_match_count={[ plural(total) ]}
+find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项
+# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
+# [zero|one|two|few|many|other], with [other] as the default value.
+# "{{limit}}" will be replaced by a numerical value.
+find_match_count_limit={[ plural(limit) ]}
+find_match_count_limit[zero]=超过 {{limit}} 项匹配
+find_match_count_limit[one]=超过 {{limit}} 项匹配
+find_match_count_limit[two]=超过 {{limit}} 项匹配
+find_match_count_limit[few]=超过 {{limit}} 项匹配
+find_match_count_limit[many]=超过 {{limit}} 项匹配
+find_match_count_limit[other]=超过 {{limit}} 项匹配
+find_not_found=找不到指定词语
+
+# Error panel labels
+error_more_info=更多信息
+error_less_info=更少信息
+error_close=关闭
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=信息:{{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=堆栈:{{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=文件:{{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=行号:{{line}}
+
+# Predefined zoom values
+page_scale_width=适合页宽
+page_scale_fit=适合页面
+page_scale_auto=自动缩放
+page_scale_actual=实际大小
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading=正在加载…
+
+# Loading indicator messages
+loading_error=加载 PDF 时发生错误。
+invalid_file_error=无效或损坏的 PDF 文件。
+missing_file_error=缺少 PDF 文件。
+unexpected_response_error=意外的服务器响应。
+
+rendering_error=渲染页面时发生错误。
+
+# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
+# replaced by the modification date, and time, of the annotation.
+annotation_date_string={{date}},{{time}}
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 注释]
+password_label=输入密码以打开此 PDF 文件。
+password_invalid=密码无效。请重试。
+password_ok=确定
+password_cancel=取消
+
+printing_not_supported=警告:此浏览器尚未完整支持打印功能。
+printing_not_ready=警告:此 PDF 未完成加载,无法打印。
+web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 PDF 字体。
+
+# Editor
+editor_free_text2.title=文本
+editor_free_text2_label=文本
+editor_ink2.title=绘图
+editor_ink2_label=绘图
+
+free_text2_default_content=开始输入…
+
+# Editor Parameters
+editor_free_text_color=颜色
+editor_free_text_size=字号
+editor_ink_color=颜色
+editor_ink_thickness=粗细
+editor_ink_opacity=不透明度
+
+# Editor aria
+editor_free_text2_aria_label=文本编辑器
+editor_ink2_aria_label=绘图编辑器
+editor_ink_canvas_aria_label=用户创建图像

BIN
src/assets/icon/delivery.ico


BIN
src/assets/images/bg.png


BIN
src/assets/images/cockpit.png


BIN
src/assets/images/dataReport.png


BIN
src/assets/images/delete.png


BIN
src/assets/images/descent.png


BIN
src/assets/images/down.png


BIN
src/assets/images/end.png


BIN
src/assets/images/home.png


BIN
src/assets/images/icons.png


BIN
src/assets/images/jiantou.png


BIN
src/assets/images/jiantou2.png


BIN
src/assets/images/logo.png


BIN
src/assets/images/logo1.png


BIN
src/assets/images/map.png


BIN
src/assets/images/map2.jpg


BIN
src/assets/images/message.png


BIN
src/assets/images/monitoring.png


BIN
src/assets/images/navberBg.png


BIN
src/assets/images/noRole.png


BIN
src/assets/images/origin.png


BIN
src/assets/images/position.png


BIN
src/assets/images/position2.png


BIN
src/assets/images/project.png


BIN
src/assets/images/start.png


BIN
src/assets/images/system.png


BIN
src/assets/images/tarmac.png


BIN
src/assets/images/touxiang.png


BIN
src/assets/images/uav.png


BIN
src/assets/images/uav2.png


BIN
src/assets/images/up.png


BIN
src/assets/images/waypoint.png


BIN
src/assets/news.png


BIN
src/assets/news2.jpg


BIN
src/assets/photo.png


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
src/assets/svgIcon/account.svg


Файловите разлики са ограничени, защото са твърде много
+ 4 - 0
src/assets/svgIcon/container.svg


Файловите разлики са ограничени, защото са твърде много
+ 6 - 0
src/assets/svgIcon/distribution.svg


Файловите разлики са ограничени, защото са твърде много
+ 6 - 0
src/assets/svgIcon/drone.svg


Файловите разлики са ограничени, защото са твърде много
+ 4 - 0
src/assets/svgIcon/message.svg


Файловите разлики са ограничени, защото са твърде много
+ 8 - 0
src/assets/svgIcon/monitoring.svg


Файловите разлики са ограничени, защото са твърде много
+ 6 - 0
src/assets/svgIcon/parking.svg


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
src/assets/svgIcon/role.svg


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
src/assets/svgIcon/routeMission.svg


Файловите разлики са ограничени, защото са твърде много
+ 10 - 0
src/assets/svgIcon/station.svg


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
src/assets/svgIcon/system.svg


+ 159 - 0
src/components/PDFViewer.vue

@@ -0,0 +1,159 @@
+<template>
+    <!-- viewer.properties: 该文件已放置本地,使用相对路径引入,亦可放置cdn上,使用网络路径引入 -->
+    
+    <VuePdfApp
+      :page-scale="pageScale"
+      :theme="theme"
+      :style="`width: ${viewerWidth}; height: ${viewerHeight};`"
+      :pdf="src"
+      :fileName="fileName"
+      @pages-rendered="pagesRendered"
+      v-bind="$attrs"
+    ></VuePdfApp>
+  </template>
+  <script setup>
+  import { computed } from "vue";
+  import VuePdfApp from "vue3-pdf-app";
+  import "vue3-pdf-app/dist/icons/main.css";
+  // interface Props {
+  //   src: '', // pdf地址
+  //   width:'', // 预览容器宽度
+  //   height:'', // 预览容器高度
+  //   pageScale:'', // 页面默认缩放规则,可选 'page-actual'|'page-width'|'page-height'|'page-fit'|'auto'
+  //   theme:'', // 预览主题 可选 dark | light
+  //   fileName:'' // 覆盖pdf文件名
+  // }
+  const props = defineProps({
+    src: "",
+    width: "100%",
+    height: "100vh",
+    pageScale: "page-fit", // 默认自适应展示一页
+    theme: "dark",
+    fileName: "",
+  });
+  const viewerWidth = computed(() => {
+    if (typeof props.width === "number") {
+      return props.width + "px";
+    } else {
+      return props.width;
+    }
+  });
+  const viewerHeight = computed(() => {
+    if (typeof props.height === "number") {
+      return props.height + "px";
+    } else {
+      return props.height;
+    }
+  });
+  // emitted only once when Pdfjs library is binded to vue component
+  // Can be used to set Pdfjs config before pdf document opening.
+  // function afterCreated (pdfApp: any) {
+  //   console.log('afterCreated pdfApp:', pdfApp)
+  // }
+  // emitted when pdf is opened but pages are not rendered
+  // function openHandler (pdfApp: any) {
+  //   console.log('open pdfApp:', pdfApp)
+  // }
+  const emit = defineEmits(["loaded"]);
+  // emitted when pdf document pages are rendered. Can be used to set default pages scale
+  function pagesRendered(pdfApp) {
+    // console.log("pagesRendered pdfApp:", pdfApp);
+    emit("loaded", pdfApp);
+  }
+  </script>
+  <style lang="scss" scoped>
+  @themeColor: #1677ff;
+  :deep(*) {
+    box-sizing: content-box;
+  }
+  // 定制化主题色
+  .pdf-app.dark {
+    --pdf-app-background-color: rgb(83, 86, 89);
+    --pdf-sidebar-content-color: rgb(51, 54, 57);
+    --pdf-toolbar-sidebar-color: #24364e;
+    --pdf-toolbar-color: rgb(50, 54, 57);
+    --pdf-loading-bar-color: #606c88;
+    --pdf-loading-bar-secondary-color: @themeColor;
+    --pdf-find-results-count-color: #d9d9d9;
+    --pdf-find-results-count-font-color: #525252;
+    --pdf-find-message-font-color: #a6b7d0;
+    --pdf-not-found-color: #f66;
+    --pdf-split-toolbar-button-separator-color: #fff;
+    --pdf-toolbar-font-color: #d9d9d9;
+    --pdf-button-hover-font-color: @themeColor;
+    --pdf-button-toggled-color: #606c88;
+    --pdf-horizontal-toolbar-separator-color: #fff;
+    --pdf-input-color: #606c88;
+    --pdf-input-font-color: #d9d9d9;
+    --pdf-find-input-placeholder-font-color: @themeColor;
+    --pdf-thumbnail-selection-ring-color: hsla(0, 0%, 100%, 0.15);
+    --pdf-thumbnail-selection-ring-selected-color: rgb(147, 179, 242);
+    --pdf-error-wrapper-color: #f55;
+    --pdf-error-more-info-color: #d9d9d9;
+    --pdf-error-more-info-font-color: #000;
+    --pdf-overlay-container-color: rgba(0, 0, 0, 0.2);
+    --pdf-overlay-container-dialog-color: #24364e;
+    --pdf-overlay-container-dialog-font-color: #d9d9d9;
+    --pdf-overlay-container-dialog-separator-color: #fff;
+    --pdf-dialog-button-font-color: #d9d9d9;
+    --pdf-dialog-button-color: #606c88;
+    :deep(.thumbnail.selected > .thumbnailSelectionRing) {
+      background-color: rgb(147, 179, 242);
+    }
+  }
+  /* for light theme */
+  .pdf-app.light {
+    --pdf-app-background-color: rgb(245, 245, 245);
+    --pdf-sidebar-content-color: rgb(245, 245, 245);
+    --pdf-toolbar-sidebar-color: rgb(190, 190, 190);
+    --pdf-toolbar-color: rgb(225, 225, 225);
+    --pdf-loading-bar-color: #3f4b5b;
+    --pdf-loading-bar-secondary-color: #666;
+    --pdf-find-results-count-color: #3f4b5b;
+    --pdf-find-results-count-font-color: hsla(0, 0%, 100%, 0.87);
+    --pdf-find-message-font-color: hsla(0, 0%, 100%, 0.87);
+    --pdf-not-found-color: brown;
+    --pdf-split-toolbar-button-separator-color: #000;
+    --pdf-toolbar-font-color: rgb(142, 142, 142);
+    --pdf-button-hover-font-color: #666;
+    --pdf-button-toggled-color: #3f4b5b;
+    --pdf-horizontal-toolbar-separator-color: #000;
+    --pdf-input-color: #3f4b5b;
+    --pdf-input-font-color: #d9d9d9;
+    --pdf-find-input-placeholder-font-color: #666;
+    --pdf-thumbnail-selection-ring-color: hsla(208, 7%, 46%, 0.7);
+    --pdf-thumbnail-selection-ring-selected-color: #3f4b5b;
+    --pdf-error-wrapper-color: #f55;
+    --pdf-error-more-info-color: #d9d9d9;
+    --pdf-error-more-info-font-color: #000;
+    --pdf-overlay-container-color: hsla(208, 7%, 46%, 0.7);
+    --pdf-overlay-container-dialog-color: #6c757d;
+    --pdf-overlay-container-dialog-font-color: #d9d9d9;
+    --pdf-overlay-container-dialog-separator-color: #000;
+    --pdf-dialog-button-font-color: #d9d9d9;
+    --pdf-dialog-button-color: #3f4b5b;
+    :deep(.thumbnail.selected > .thumbnailSelectionRing) {
+      background-color: rgb(105, 105, 105);
+    }
+  }
+  #vuePdfApp {
+    :deep(#mainContainer) {
+      #toolbarViewer {
+        #toolbarViewerRight {
+          // border: 1px solid red;
+          #openFile{
+            display: none;
+          }
+          #print{
+            display: none;
+          }
+          #viewBookmark{
+            display: none;
+          }
+          
+        }
+      }
+    }
+  }
+  </style>
+  

+ 43 - 0
src/components/SvgIcon.vue

@@ -0,0 +1,43 @@
+<template>
+    <svg
+      class="svg-icon"
+      :class="className"
+      aria-hidden="true"
+      :style="{ width: size + 'px', height: size + 'px', fill: color }"
+    >
+      <use :href="iconName" />
+    </svg>
+  </template>
+  
+  <script setup>
+  import { computed } from "vue";
+  
+  const props = defineProps({
+    icon: {
+      type: String,
+      default: "",
+    },
+    className: {
+      type: String,
+      default: "",
+    },
+    size: {
+      type: Number,
+      default: 20,
+    },
+    color: {
+      type: String,
+      default: "green",
+    },
+  });
+  
+  const iconName = computed(() => `#icon-${props.icon}`);
+  </script>
+  
+  <style lang="scss" scoped>
+  // .svg-icon {
+  //   fill: currentColor;
+  // }
+ 
+  </style>
+  

+ 25 - 0
src/components/wordViewer.vue

@@ -0,0 +1,25 @@
+<script setup>
+import VueOfficeDocx from "@vue-office/docx";
+import "@vue-office/docx/lib/index.css";
+import { ref } from "vue";
+// 也可以直接是在线地址
+// let docxSrc = ref("https://github.com/vue-office/vue-office/raw/main/examples/public/test.docx");
+let docxSrc = ref("");
+let handleChange = (e) => {
+  let files = e.target.files[0];
+  let reader = new FileReader();
+  reader.readAsArrayBuffer(files);
+  reader.onload = function () {
+    docxSrc.value = reader.result;
+  };
+};
+</script>
+ 
+<template>
+  <div>
+    <input type="file" @change="handleChange" />
+    <VueOfficeDocx :src="docxSrc" />
+  </div>
+</template>
+ 
+<style scoped></style>

+ 156 - 0
src/index.vue

@@ -0,0 +1,156 @@
+<template>
+  <div class="box">
+    <el-input
+      id="searchInputId"
+      class="common_layout"
+      placeholder="输入关键词搜索位置"
+      style="width: 36%"
+      v-model="positionInput"
+      @keyup.enter="searchLocation"
+    />
+    <el-button @click="searchLocation">搜索</el-button>
+
+    <div class="list">
+      <div class="list_item" :title="item.name" v-for="item in addressList" :key="item.id" @click="clickItem(item)">
+        {{ item.name }}
+      </div>
+    </div>
+  </div>
+
+  <div class="gdmap_container">
+    <div id="container" />
+  </div>
+</template>
+
+<script setup>
+import { onMounted, onUnmounted, ref } from "vue"
+import { ElMessage } from "element-plus"
+import AMapLoader from "@amap/amap-jsapi-loader"
+
+const $emit = defineEmits(["change"])
+
+const positionInput = ref("")
+
+let placeSearch
+let map
+
+const addressList = ref([])
+
+onMounted(() => {
+  initMap()
+})
+
+function initMap() {
+  window._AMapSecurityConfig = {
+    securityJsCode: "0d17744f13fff85605b79354540fd67b"
+  }
+  AMapLoader.load({
+    key: "ba26d52282a8ade8c422acfe679b6672",
+    version: "2.0",
+    plugins: ["AMap.AutoComplete", "AMap.PlaceSearch"]
+  }).then((AMap) => {
+    map = new AMap.Map("container", {
+      resizeEnable: true,
+      viewMode: "3D",
+      zoom: 15 // 初始化地图级别
+    })
+
+    const autoOptions = {
+      input: "searchInputId"
+    }
+
+    const auto = new AMap.AutoComplete(autoOptions)
+
+    placeSearch = new AMap.PlaceSearch({
+      pageSize: 20,
+      map: map
+    })
+
+    auto.on("select", select)
+    function select(e) {
+      placeSearch.setCity(e.poi.adcode)
+      placeSearch.search(e.poi.name) //关键字查询查询
+    }
+  })
+}
+
+const searchLocation = () => {
+  // 判断用户是否输入了关键字
+  if (!positionInput.value.trim()) {
+    ElMessage.error("请输入搜索内容!")
+    return
+  }
+
+  // 执行地点搜索,并处理搜索结果
+  placeSearch.search(positionInput.value, (status, result) => {
+    // console.log(status, result)
+    if (status === "complete" && result.info === "OK") {
+      // 如果搜索成功且有搜索结果
+      if (result.poiList.pois.length > 0) {
+        // 取第一个搜索结果,设置地图中心和缩放级别
+        const poi = result.poiList.pois[0]
+        map.setCenter([poi.location.lng, poi.location.lat])
+        map.setZoom(15) //缩放级别
+
+        addressList.value = result.poiList.pois
+        // console.log(addressList.value)
+      } else {
+        ElMessage.error("未找到相关地点!")
+      }
+    } else {
+      ElMessage.error("搜索失败!")
+    }
+  })
+}
+
+const clickItem = (item) => {
+  $emit("change", {
+    address: item.name,
+    lat: item.location.lat,
+    lng: item.location.lng
+  })
+}
+
+onUnmounted(() => {
+  map?.destroy()
+})
+</script>
+
+<style scoped>
+.box {
+  position: relative;
+}
+.list {
+  z-index: 2;
+  position: absolute;
+  top: 32px;
+  left: 0;
+  width: 36%;
+  max-height: 260px;
+  border: 1px solid #eee;
+  overflow-y: auto;
+  background-color: #fff;
+}
+
+.list_item {
+  box-sizing: border-box;
+  line-height: 30px;
+  overflow: hidden;
+  white-space: nowrap;
+  cursor: pointer;
+  text-overflow: ellipsis;
+  border-bottom: 1px solid #ccc;
+}
+.gdmap_container {
+  margin: 10px 0;
+  width: 500px;
+  height: 300px;
+}
+#container {
+  padding: 0px;
+  margin: 0px;
+  border: 1px solid gray;
+  width: 100%;
+  height: 100%;
+}
+</style>

+ 199 - 0
src/layout/index.vue

@@ -0,0 +1,199 @@
+<template>
+  <div class="body-box">
+    <SidevarItem></SidevarItem>
+    <div class="content">
+      <Navbar></Navbar>
+      <!-- <NavbarBG></NavbarBG> -->
+      <router-view></router-view>
+      <!-- <div class="policeNum">
+        <div class="rigthContent">
+          <span> 赣公网安备36092502000028号</span>
+          <span> &nbsp;&nbsp;&nbsp;&nbsp;</span>
+          <span>赣ICP备2023009877号-2</span>
+        </div>
+      </div> -->
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { ref, reactive, onBeforeMount, onMounted, watch } from "vue";
+import Navbar from "./sidebar/Navbar.vue";
+import NavbarBG from "./sidebar/NavbarBG.vue";
+import SidevarItem from "./sidebar/SidevarItem.vue";
+import { useStore } from "vuex";
+import axios from "axios";
+import { useRouter } from "vue-router";
+const store = useStore();
+const router = useRouter();
+const api = ref("");
+const flag = ref(true);
+watch(
+  () => router.currentRoute.value.fullPath,
+  (newValue, oldValue) => {
+    let data=newValue.split('?')
+    console.log(data[0]);
+    // store.commit("indexUp", data[0]);
+    // activeIndex.value = data[0];
+    sessionStorage.setItem("sidevarItem", data[0]);
+
+    axios({
+      method: "get",
+      url: api.value + "/drone-message/unread",
+      headers: {
+        token: sessionStorage.getItem("token"),
+        user_head: sessionStorage.getItem("userhead"),
+      },
+    }).then((res) => {
+      console.log(res, "未读信息条数");
+      if (res.data.data.unread > 0) {
+        sessionStorage.setItem("messageNum", res.data.data.unread);
+        store.state.messageNum = res.data.data.unread;
+      } else {
+        sessionStorage.setItem("messageNum", "");
+        store.state.messageNum = "";
+      }
+    });
+  }
+);
+const tableData = reactive({
+  list: [],
+});
+
+onBeforeMount(async () => {
+  api.value = store.state.user.api;
+});
+</script>
+
+<style scoped lang="scss">
+.body-box {
+  display: flex;
+
+  .content {
+    // max-width: calc(100vw - 81px);
+    width: 100%;
+    min-width: 800px;
+    height: calc(100vh);
+    background-color: rgba(238, 238, 238, 1);
+
+    :deep(.el-dialog__header .el-dialog__headerbtn) {
+      outline: none;
+    }
+    .policeNum {
+      position: absolute;
+      bottom: 8px;
+      width: 100vw;
+      color: rgba(0, 0, 0, 0.5);
+      font-size: 12px;
+
+      .rigthContent {
+        min-width: 600px;
+        width: calc(100vw - 200px);
+        text-align: center;
+      }
+    }
+  }
+  .contentBG {
+    background-color: transparent;
+  }
+}
+</style>
+<style lang="scss">
+.is-message-box {
+  .el-message-box__header {
+    .el-message-box__headerbtn {
+      outline: none;
+    }
+  }
+
+  .el-message-box__btns {
+    .el-button--primary {
+      background: linear-gradient(
+        90deg,
+        rgb(38, 151, 255) 0%,
+        rgb(102, 181, 255) 100%
+      );
+      border: none !important;
+    }
+
+    .el-button--primary:hover {
+      background-color: rgb(119, 133, 239);
+      border: 0.5px solid rgb(119, 133, 239);
+    }
+  }
+}
+.el-dialog {
+  padding: 0;
+}
+.el-dialog__header {
+  padding: 0 0 0 20px;
+  height: 48px !important;
+  display: flex;
+  align-items: center;
+}
+
+.el-dialog__body {
+  .el-input {
+    .el-input__suffix-inner {
+      color: rgba(61, 81, 232, 1);
+    }
+  }
+}
+
+.pw {
+  .el-dialog__body {
+    .el-form {
+      .el-form-item {
+        .queding {
+          background-color: rgba(61, 81, 232, 1);
+          border: 0.5px solid rgba(61, 81, 232, 1);
+        }
+
+        .queding:hover {
+          background-color: rgb(119, 133, 239);
+          border: 0.5px solid rgb(119, 133, 239);
+        }
+      }
+    }
+  }
+}
+
+.tangram-suggestion-main {
+  z-index: 999999;
+
+  .tangram-suggestion {
+    height: 150px;
+    overflow: auto;
+  }
+}
+
+#notification_1 {
+  .el-notification__group {
+    .el-notification__title {
+      color: red;
+    }
+  }
+}
+
+*::-webkit-scrollbar-track {
+  background-color: #fff;
+}
+
+*::-webkit-scrollbar {
+  background-color: #57b2ff;
+  height: 0;
+  width: 0;
+}
+
+*::-webkit-scrollbar-thumb {
+  background: #57b2ff;
+  border-radius: 4px;
+  height: 0;
+  width: 0;
+}
+
+.el-button {
+  // border: none  !important;
+  outline: none !important;
+}
+</style>

+ 926 - 0
src/layout/sidebar/Navbar.vue

@@ -0,0 +1,926 @@
+<template>
+  <el-menu
+    :default-active="activeIndex"
+    mode="horizontal"
+    background-color=""
+    text-color="#000"
+    active-text-color="#4392f7"
+    @select="handleSelect"
+  >
+    <!-- <el-icon
+      :size="20"
+      v-show="!menuclose"
+      class="fold"
+      @click="SpreadMenu(true)"
+      ><Fold
+    /></el-icon>
+    <el-icon
+      :size="20"
+      v-show="menuclose"
+      class="fold"
+      @click="SpreadMenu(false)"
+      ><Expand
+    /></el-icon> -->
+
+    <div class="logo">
+      <!-- <img src="@/assets/nanchang.png" style="width: 30px; height: 30px" /> -->
+      <span>自动全流程低空物流信息管控系统</span>
+    </div>
+    <div class="login">
+      <div
+        class="message"
+        @click="messageClick"
+        v-if="btnRoles.xinxi.chaxun == 1"
+      >
+        <el-badge :value="store.state.messageNum" class="item">
+          <img
+            src="@/assets/images/message.png"
+            style="width: 20px; height: 20px; cursor: pointer"
+            alt=""
+          />
+        </el-badge>
+        <span>信息</span>
+      </div>
+      <div
+        class="monitoring"
+        @click="monitoringClick"
+        v-if="btnRoles.jiancezhongxin.chaxun == 1"
+      >
+        <img
+          src="@/assets/images/monitoring.png"
+          style="width: 20px; height: 20px; cursor: pointer"
+          alt=""
+        />
+        <span>监测中心</span>
+      </div>
+      <span class="dateTime">{{ dateTime }}</span>
+
+      <!-- <div class="flex flex-wrap items-center" style="cursor: pointer">
+        <el-dropdown :hide-on-click="false" trigger="click">
+          <el-avatar :size="20">
+            <el-icon :size="20" color=""><QuestionFilled /></el-icon>
+          </el-avatar>
+          <template #dropdown>
+            <el-dropdown-menu>
+              <el-dropdown-item @click="operateClick">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <img
+                    src="@/assets/operate.png"
+                    style="width: 20px; height: 20px"
+                    alt=""
+                  />
+                </el-icon>
+
+                <span>操作说明</span>
+              </el-dropdown-item>
+              <el-dropdown-item @click="contactClick">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <img
+                    src="@/assets/contact.png"
+                    style="width: 20px; height: 20px"
+                    alt=""
+                  />
+                </el-icon>
+                <span>联系我们</span>
+              </el-dropdown-item>
+              <el-dialog
+                :append-to-body="true"
+                custom-class="pw"
+                v-model="uppasswordShow"
+                title="修改密码"
+                width="500"
+                :before-close="uppasswordClose"
+                align-center
+                :close-on-click-modal="false"
+              >
+                <el-form
+                  ref="ruleFormRef"
+                  :model="ruleForm"
+                  :rules="rules"
+                  label-width="100px"
+                  class="demo-ruleForm"
+                  :size="formSize"
+                  label-position="left"
+                  status-icon
+                >
+                  <el-form-item label="原密码" prop="oldpass">
+                    <el-input
+                      v-model="ruleForm.oldpass"
+                      placeholder="请输入原密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="新密码" prop="nowpass">
+                    <el-input
+                      v-model="ruleForm.nowpass"
+                      placeholder="请输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="确定新密码" prop="correctpass">
+                    <el-input
+                      v-model="ruleForm.correctpass"
+                      placeholder="请再次输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <p
+                    style="
+                      padding-bottom: 20px;
+                      font-size: 12px;
+                      color: rgb(43, 151, 252);
+                      border-bottom: 1px solid rgba(230, 230, 230, 1);
+                    "
+                  >
+                    注:密码格式为8-20位正确密码(大小写字母·字符·数字)
+                  </p>
+                  <el-form-item class="options">
+                    <el-button class="queding" @click="submitForm(ruleFormRef)">
+                      确定
+                    </el-button>
+                    <el-button class="congzhi" @click="resetForm(ruleFormRef)"
+                      >重置</el-button
+                    >
+                  </el-form-item>
+                </el-form>
+              </el-dialog>
+
+              <el-dialog
+                class="operate"
+                v-model="operateShow"
+                title="操作说明"
+                width="500"
+                :before-close="operateClose"
+                align-center
+                :close-on-click-modal="false"
+                :close-on-press-escape="false"
+              >
+                <div class="operateUl">
+                  <p>
+                    <span @click="lookFile(0)">建设单位_操作说明</span>
+                    <span @click="downFile(0)">下载</span>
+                  </p>
+                  <p>
+                    <span @click="lookFile(1)">县(区)管理员_操作说明</span
+                    ><span @click="downFile(1)">下载</span>
+                  </p>
+                  <p>
+                    <span @click="lookFile(2)">市级管理员_操作说明</span>
+                    <span @click="downFile(2)">下载</span>
+                  </p>
+                  <p>
+                    <span @click="lookFile(3)">省级管理员_操作说明</span>
+                    <span @click="downFile(3)">下载</span>
+                  </p>
+                </div>
+
+                <div class="options">
+                  <el-button class="queding" @click="operateClose">
+                    关闭
+                  </el-button>
+                </div>
+              </el-dialog>
+
+              <el-dialog
+                class="operate"
+                v-model="contactShow"
+                title="联系我们"
+                width="500"
+                :before-close="contactClose"
+                align-center
+                :close-on-click-modal="false"
+                :close-on-press-escape="false"
+              >
+                <div class="operateUl">
+                  <div style="margin: 15px 0">
+                    <span>联系人:</span>
+                    <span>邱工</span>
+                  </div>
+                  <div>
+                    <span>联系电话:</span
+                    ><span>0791-88514176 &nbsp;&nbsp; 18896551060</span>
+                  </div>
+                </div>
+                <div class="options">
+                  <el-button class="queding" @click="contactClose">
+                    关闭
+                  </el-button>
+                </div>
+              </el-dialog>
+
+              <el-dialog
+                class="preview"
+                v-model="previewShow"
+                title="预览文档"
+                width="1200"
+                :before-close="previewClose"
+                align-center
+                :close-on-click-modal="false"
+                :close-on-press-escape="false"
+              >
+                <div class="pre" v-loading="previewLoading">
+                  <vue-office-docx
+                    v-if="lookDocx"
+                    :src="lookDocx"
+                    @rendered="renderedHandler"
+                    @error="errorHandler"
+                  />
+                </div>
+              </el-dialog>
+            </el-dropdown-menu>
+          </template>
+        </el-dropdown>
+      </div> -->
+
+      <div class="flex flex-wrap items-center" style="cursor: pointer">
+        <el-dropdown :hide-on-click="false" trigger="click">
+          <el-avatar :size="30">
+            <img src="../../assets/images/touxiang.png" />
+          </el-avatar>
+          <template #dropdown>
+            <el-dropdown-menu>
+              <!-- <el-dropdown-item @click="uppassword">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <Lock />
+                </el-icon>
+                <span>修改密码</span>
+              </el-dropdown-item> -->
+              <el-dialog
+                class="pw"
+                v-model="uppasswordShow"
+                title="修改密码"
+                width="500"
+                :before-close="uppasswordClose"
+                align-center
+                :close-on-click-modal="false"
+              >
+                <el-form
+                  ref="ruleFormRef"
+                  :model="ruleForm"
+                  :rules="rules"
+                  label-width="100px"
+                  class="demo-ruleForm"
+                  :size="formSize"
+                  label-position="left"
+                  status-icon
+                >
+                  <el-form-item label="原密码" prop="oldpass">
+                    <el-input
+                      v-model="ruleForm.oldpass"
+                      placeholder="请输入原密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="新密码" prop="nowpass">
+                    <el-input
+                      v-model="ruleForm.nowpass"
+                      placeholder="请输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="确定新密码" prop="correctpass">
+                    <el-input
+                      v-model="ruleForm.correctpass"
+                      placeholder="请再次输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <p
+                    style="
+                      padding-bottom: 20px;
+                      font-size: 12px;
+                      color: rgb(43, 151, 252);
+                      border-bottom: 1px solid rgba(230, 230, 230, 1);
+                    "
+                  >
+                    注:密码格式为8-20位正确密码(大小写字母·字符·数字)
+                  </p>
+                  <el-form-item class="options">
+                    <el-button class="queding" @click="submitForm(ruleFormRef)">
+                      确定
+                    </el-button>
+                    <el-button class="congzhi" @click="resetForm(ruleFormRef)"
+                      >重置</el-button
+                    >
+                  </el-form-item>
+                </el-form>
+              </el-dialog>
+              <el-dropdown-item @click="loginOut">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <SwitchButton />
+                </el-icon>
+                <span>退出登录</span>
+              </el-dropdown-item>
+            </el-dropdown-menu>
+          </template>
+        </el-dropdown>
+      </div>
+      <span class="name">{{ username }}</span>
+    </div>
+  </el-menu>
+</template>
+
+<script setup>
+import { ref, reactive, onBeforeMount, onMounted, watch, computed } from "vue";
+import { ElMessage, ElMessageBox, ElNotification } from "element-plus";
+import { useStore } from "vuex";
+import { useRouter } from "vue-router";
+import { dayjs } from "element-plus";
+import axios from "axios";
+//引入VueOfficeDocx组件
+import VueOfficeDocx from "@vue-office/docx";
+//引入相关样式
+import "@vue-office/docx/lib/index.css";
+
+const api = ref();
+const btnRoles = ref();
+const store = useStore();
+const router = useRouter();
+const username = ref(); // 账号名称
+const activeIndex = ref(); // 路由路径
+const loginOutDialogVisible = ref(false); // 退出按钮
+const menuclose = ref(false); // 左边状态栏展开按钮状态
+const uppasswordShow = ref(false); // 修改密码展示框
+const ruleForm = reactive({
+  oldpass: "",
+  nowpass: "",
+  correctpass: "",
+});
+const ruleFormRef = ref();
+// 表单验证
+// 确定密码验证
+// const validatePass = (rule, value, callback) => {
+//   if (
+//     !/^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/.test(
+//       value
+//     )
+//   ) {
+//     callback(new Error("请输入8-20位正确密码(大小写字母·字符·数字)"));
+//   } else if (ruleForm.nowpass != ruleForm.correctpass) {
+//     callback(new Error("输入的两次密码不一致"));
+//   } else {
+//     callback();
+//   }
+// };
+const rules = reactive({
+  oldpass: [
+    {
+      required: true,
+      message: "原密码不能为空",
+      trigger: "blur",
+    },
+  ],
+  nowpass: [
+    {
+      required: true,
+      message: "新密码不能为空",
+      trigger: "blur",
+    },
+    // {
+    //   min: 8,
+    //   max: 20,
+    //   pattern:
+    //     /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/,
+    //   message: "请输入8-20位正确密码(大小写字母·字符·数字)",
+    //   trigger: "blur",
+    // },
+  ],
+  correctpass: [
+    {
+      required: true,
+      message: "确认密码不能为空",
+      trigger: "blur",
+    },
+    // { validator: validatePass, trigger: "blur" },
+  ],
+});
+
+const messageNum = ref(store.state.messageNum); // 信息条数
+// const messageNum = computed(() => {
+//   console.log(store.state.messageNum);
+
+//   store.state.messageNum
+// });
+
+// 操作说明
+const operateShow = ref(false);
+const operateList = ref();
+const lookDocx = ref(); // 预览的这个文件
+
+// 预览文档
+const previewShow = ref(false);
+const previewLoading = ref(false);
+
+// 联系我们
+const contactShow = ref(false);
+
+// 监控消息通知数量
+// watch(
+//   () => store.state.user.activeIndex,
+//   (newValue, oldValue) => {
+//     titlenumber.value = newValue;
+//     console.log(newValue, "路由地址");
+//   }
+// );
+
+const dateTime = ref(
+  dayjs().format("YYYY-MM-DD") + ` 星期四 ` + dayjs().format("HH:mm:ss")
+); // 时间
+
+// 选择菜单
+// const handleSelect = (key, keyPath) => {
+// store.commit("navbarUpdata", key);
+// activeIndex.value = key;
+// };
+
+// 展开按钮
+const SpreadMenu = (flag) => {
+  store.commit("menuClose", flag);
+  menuclose.value = flag;
+};
+
+// 修改密码
+const uppassword = () => {
+  uppasswordShow.value = true;
+};
+const uppasswordClose = () => {
+  uppasswordShow.value = false;
+  ruleFormRef.value.resetFields();
+};
+// 提交修改密码表单
+const submitForm = async (formEl) => {
+  if (!formEl) return;
+  await formEl.validate(async (valid, fields) => {
+    if (valid) {
+      let data = {
+        oldPassword: ruleForm.oldpass,
+        newPassword: ruleForm.nowpass,
+        confirmPassword: ruleForm.correctpass,
+      };
+      let resUpdata = await axios({
+        method: "post",
+        url: api.value + "/login/ChangePassword",
+        headers: {
+          tokenP: sessionStorage.getItem("tokenP"),
+          user_head: sessionStorage.getItem("userhead"),
+        },
+        data: data,
+      });
+      if (resUpdata.data.code == 200) {
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: resUpdata.data.message,
+          center: true,
+        });
+        sessionStorage.removeItem("tokenP");
+        sessionStorage.removeItem("userName");
+        sessionStorage.removeItem("tokenP");
+        sessionStorage.removeItem("roleId");
+        sessionStorage.removeItem("userhead");
+        sessionStorage.removeItem("provinceId");
+        sessionStorage.removeItem("cityId");
+        sessionStorage.removeItem("districtId");
+        sessionStorage.removeItem("address");
+        sessionStorage.removeItem("addressId");
+        uppasswordShow.value = false;
+        ruleFormRef.value.resetFields();
+        router.removeRoute("jianguanCloud");
+        ElNotification({
+          type: "warning",
+          title: "提示!!!",
+          message: "密码已修改,2s后退出到登录页面",
+          // duration: 0,
+          // position: "top-right",
+        });
+        setTimeout(() => {
+          router.push({ path: "/" });
+        }, 2000);
+      } else {
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: resUpdata.data.message,
+          center: true,
+        });
+      }
+    } else {
+      console.log("error submit!", fields);
+    }
+  });
+};
+// 重置表单
+const resetForm = (formEl) => {
+  // console.log("重置表单");
+  if (!formEl) return;
+  formEl.resetFields();
+};
+
+// 信息中心
+const messageClick = () => {
+  router.push({
+    path: "/delivery/message",
+  });
+};
+
+// 监测中心
+const monitoringClick = () => {
+  router.push({
+    path: "/delivery/monitoring",
+  });
+};
+
+// 操作说明
+const operateClick = async () => {
+  operateShow.value = true;
+  let res = await axios({
+    method: "get",
+    url: api.value + "/login/operatingInstructions",
+    headers: {
+      tokenP: sessionStorage.getItem("tokenP"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+  });
+  console.log(res, "操作说明列表");
+  if (res.data.code == 200) {
+    operateList.value = res.data.data;
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+const downFile = (flag) => {
+  window.location.href = operateList.value[flag].url;
+};
+const operateClose = () => {
+  operateShow.value = false;
+};
+// 预览文档弹窗
+const lookFile = (flag) => {
+  let urls =
+    "https://jgy-1325577833.cos.ap-guangzhou.myqcloud.com/%E7%9C%81%E7%BA%A7%E7%AE%A1%E7%90%86%E5%91%98_%E6%93%8D%E4%BD%9C%E8%AF%B4%E6%98%8E.docx";
+  // lookDocx.value = urls;
+  lookDocx.value = operateList.value[flag].url;
+  previewShow.value = true;
+  previewLoading.value = true;
+};
+const previewClose = () => {
+  previewShow.value = false;
+  lookDocx.value = "";
+};
+// 预览功能
+const renderedHandler = () => {
+  console.log("渲染完成");
+  previewLoading.value = false;
+};
+const errorHandler = () => {
+  console.log("渲染失败");
+  previewLoading.value = false;
+  ElMessage({
+    type: "error",
+    showClose: true,
+    message: "预览失败",
+    center: true,
+  });
+};
+
+// 联系我们
+const contactClick = () => {
+  contactShow.value = true;
+};
+const contactClose = () => {
+  contactShow.value = false;
+};
+const loginOut = () => {
+  ElMessageBox.confirm("是否退出登录?", "提示", {
+    confirmButtonText: "确认",
+    cancelButtonText: "取消",
+    type: "warning",
+  })
+    .then(() => {
+      sessionStorage.removeItem("userName");
+      sessionStorage.removeItem("token");
+      sessionStorage.removeItem("roleList");
+      sessionStorage.removeItem("btnRoles");
+      sessionStorage.removeItem("sidevarItem");
+      router.push({
+        path: `/delivery/login`,
+      });
+      router.removeRoute("jianguanCloud");
+      ElMessage({
+        type: "success",
+        message: "退出成功",
+      });
+    })
+    .catch(() => {
+      ElMessage({
+        type: "info",
+        message: "已取消登录",
+      });
+    });
+};
+
+watch(
+  () => sessionStorage.getItem("messageNum"),
+  (newValue) => {
+    console.log(newValue,'监听 信息条数');
+    const storedData = sessionStorage.getItem('messageNum');
+    if (newValue !== storedData) {
+      messageNum.value = newValue; // 只在 sessionStorage 变化时更新,避免无限循环
+    }
+  },
+  { immediate: true }
+); // 使用 immediate: true 来立即执行一次回调函数,以处理初始化情况
+
+onBeforeMount(() => {
+  btnRoles.value = JSON.parse(sessionStorage.getItem("btnRoles"));
+  console.log(btnRoles.value);
+});
+
+
+
+onMounted(() => {
+  api.value = store.state.user.api;
+  activeIndex.value = store.state.user.navbar;
+  username.value = sessionStorage.getItem("userName");
+  setInterval(() => {
+    var week = ["日", "一", "二", "三", "四", "五", "六"];
+    var datas = dayjs().day();
+    dateTime.value =
+      dayjs().format("YYYY-MM-DD") +
+      ` 星期${week[datas]} ` +
+      dayjs().format("HH:mm:ss");
+  }, 1000);
+
+  axios({
+    method: "get",
+    url: api.value + "/drone-message/unread",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+  }).then((res) => {
+    console.log(res, "未读信息条数");
+    if (res.data.data.unread > 0) {
+      sessionStorage.setItem("messageNum", res.data.data.unread);
+      messageNum.value = res.data.data.unread;
+      store.state.messageNum = res.data.data.unread;
+    } else {
+      sessionStorage.setItem("messageNum", "");
+      messageNum.value = "";
+      store.state.messageNum = ""
+    }
+  });
+});
+</script>
+
+<style scoped lang="scss">
+.el-menu--horizontal {
+  border-bottom: none;
+  display: flex;
+  align-items: center;
+  height: 64px;
+  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+  background-color: #fff;
+  // box-shadow: 5px 5px 10px 0px rgba(213, 228, 252, 1);
+  .logo {
+    left: 90px;
+    display: flex;
+    align-items: center;
+    span {
+      margin-left: 20px;
+      font-size: 24px;
+      font-weight: 600;
+    }
+  }
+  .login {
+    color: #000;
+    display: flex;
+    align-items: center;
+    position: absolute;
+    right: 10px;
+    top: 17px;
+    // 信息
+    .message {
+      margin: 0 28px 0 6px;
+      cursor: pointer;
+      display: flex;
+      align-items: center;
+      span {
+        color: rgba(102, 102, 102, 1);
+        padding: 0 0 0 12px;
+      }
+    }
+    // 监测中心
+    .monitoring {
+      margin: 0 28px 0 6px;
+      cursor: pointer;
+      display: flex;
+      align-items: center;
+      span {
+        color: rgba(0, 97, 255, 1);
+        padding: 0 0 0 5px;
+      }
+    }
+    .dateTime {
+      margin-right: 20px;
+    }
+    .el-badge {
+      display: flex;
+      align-items: center;
+      // :deep(.el-badge__content) {
+      //   width: 2px;
+      //   height: 14px;
+      // }
+    }
+    .items-center {
+      margin-left: 20px;
+    }
+    .name {
+      height: 20px;
+      line-height: 20px;
+      text-decoration: underline;
+      padding: 0 10px;
+      margin: 0 10px;
+      border-left: 2px solid #ccc;
+    }
+    .link {
+      display: flex;
+      align-items: center;
+    }
+    .switchButton {
+      cursor: pointer;
+    }
+  }
+  .login:focus {
+    outline: none;
+  }
+  .fold {
+    width: 46px;
+    height: 65px;
+  }
+  .fold:hover {
+    cursor: pointer;
+    background-color: rgba(67, 146, 249, 0.1);
+  }
+}
+.cockpit {
+  background-color: #000;
+}
+
+// 详情
+:deep(.pw) {
+  border-radius: 11px;
+
+  .el-dialog__header {
+    border-radius: 11px 11px 0 0;
+    background: rgba(237, 241, 245, 1);
+    font-weight: 600;
+    margin: 0;
+    height: 32px;
+
+    .el-dialog__headerbtn {
+      outline: none;
+    }
+  }
+  .el-dialog__body {
+    .options {
+      display: flex;
+      flex-direction: row-reverse;
+      .el-form-item__content {
+        margin-left: 0 !important;
+        flex: none;
+      }
+      .queding {
+        background: linear-gradient(
+          90deg,
+          rgb(38, 151, 255) 0%,
+          rgb(102, 181, 255) 100%
+        );
+        border: none !important;
+        color: #fff;
+        // border: 0.5px solid rgba(9, 101, 98, 1) !important;
+      }
+    }
+  }
+}
+// 操作说明
+:deep(.operate) {
+  //   height: 420px;
+  border-radius: 11px;
+
+  .el-dialog__header {
+    border-radius: 11px 11px 0 0;
+    background: rgba(237, 241, 245, 1);
+    font-weight: 600;
+    margin: 0;
+
+    .el-dialog__headerbtn {
+      outline: none;
+    }
+  }
+
+  .el-dialog__body {
+    padding: 0 30px 0 30px;
+    .operateUl {
+      p {
+        width: 220px;
+        color: rgba(46, 176, 241, 1);
+        display: flex;
+        justify-content: space-between;
+        span {
+          cursor: pointer;
+        }
+      }
+    }
+    .options {
+      margin: 20px 0;
+      display: flex;
+      flex-direction: row-reverse;
+      .queding {
+        margin-left: 20px;
+        background: linear-gradient(
+          90deg,
+          rgba(38, 151, 255, 1) 0%,
+          rgba(102, 181, 255, 1) 100%
+        );
+        border: none;
+      }
+      .quxiao {
+        border: 1px solid rgba(43, 151, 252, 1);
+        color: rgba(43, 151, 252, 1);
+      }
+    }
+  }
+}
+// 预览文档
+:deep(.preview) {
+  border-radius: 11px;
+
+  .el-dialog__header {
+    border-radius: 11px 11px 0 0;
+    background: rgba(237, 241, 245, 1);
+    font-weight: 600;
+    margin: 0;
+
+    .el-dialog__headerbtn {
+      outline: none;
+    }
+  }
+
+  .el-dialog__body {
+    padding: 20px;
+    height: 800px;
+    .pre {
+      height: 100%;
+      .vue-office-docx {
+        height: 100%;
+        .vue-office-docx-main {
+          height: 100%;
+        }
+      }
+    }
+  }
+}
+</style>
+<style lang="scss">
+.el-overlay {
+  .el-message-box__btns {
+    .el-button--primary {
+      background: linear-gradient(
+        90deg,
+        rgb(38, 151, 255) 0%,
+        rgb(102, 181, 255) 100%
+      );
+    }
+  }
+  .el-overlay-dialog {
+    .pw {
+      border-radius: 11px;
+
+      .el-dialog__header {
+        border-radius: 11px 11px 0 0;
+        background: rgba(237, 241, 245, 1);
+        font-weight: 600;
+        margin: 0;
+        .el-dialog__headerbtn {
+          outline: none;
+        }
+      }
+      .el-dialog__body {
+        padding: 30px 20px 10px 20px;
+        .el-input {
+          width: 200px;
+        }
+        .options {
+          margin-left: 170px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 509 - 0
src/layout/sidebar/NavbarBG.vue

@@ -0,0 +1,509 @@
+<template>
+  <el-menu
+    :default-active="activeIndex"
+    mode="horizontal"
+    background-color=""
+    text-color="#000"
+    active-text-color="#4392f7"
+    @select="handleSelect"
+  >
+    <!-- <el-icon
+      :size="20"
+      v-show="!menuclose"
+      class="fold"
+      @click="SpreadMenu(true)"
+      ><Fold
+    /></el-icon>
+    <el-icon
+      :size="20"
+      v-show="menuclose"
+      class="fold"
+      @click="SpreadMenu(false)"
+      ><Expand
+    /></el-icon> -->
+
+    <div class="logo">
+      <!-- <img src="@/assets/nanchang.png" style="width: 30px; height: 30px" /> -->
+      <span>江西装配建管云平台</span>
+    </div>
+    <div class="login">
+      <div class="dateTime">
+        <sapn class="dateTime">{{ dateTime }}</sapn>
+        <sapn class="time">{{ time }}</sapn>
+      </div>
+      <!-- <el-badge :value="titlenumber" class="item" v-if="titlenumber">
+        <img
+          src="@/assets/news.png"
+          @click="newsClick"
+          style="width: 20px; height: 20px; cursor: pointer"
+          alt=""
+        />
+      </el-badge> -->
+
+      <!-- <el-tooltip content="操作手册" placement="bottom" effect="light">
+        <a
+          target="_Blank"
+          class="link"
+          href="https://www.jinganrenjiams.com/illustrate/"
+        >
+          <img
+            src="@/assets/operation.png"
+            @click="newsClick"
+            style="width: 25px; height: 25px; cursor: pointer"
+            alt=""
+          />
+        </a>
+      </el-tooltip> -->
+      <!-- <div class="flex flex-wrap items-center" style="cursor: pointer">
+        <el-dropdown :hide-on-click="false" trigger="click">
+          <el-avatar :size="30">
+            <img
+              src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
+            />
+          </el-avatar>
+          <template #dropdown>
+            <el-dropdown-menu>
+              <el-dropdown-item @click="uppassword">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <Lock />
+                </el-icon>
+                <span>修改密码</span>
+              </el-dropdown-item>
+              <el-dialog
+                :append-to-body="true"
+                custom-class="pw"
+                v-model="uppasswordShow"
+                title="修改密码"
+                width="500"
+                :before-close="uppasswordClose"
+                align-center
+                :close-on-click-modal="false"
+              >
+                <el-form
+                  ref="ruleFormRef"
+                  :model="ruleForm"
+                  :rules="rules"
+                  label-width="100px"
+                  class="demo-ruleForm"
+                  :size="formSize"
+                  label-position="left"
+                  status-icon
+                >
+                  <el-form-item label="原密码" prop="oldpass">
+                    <el-input
+                      v-model="ruleForm.oldpass"
+                      placeholder="请输入原密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="新密码" prop="nowpass">
+                    <el-input
+                      v-model="ruleForm.nowpass"
+                      placeholder="请输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <el-form-item label="确定新密码" prop="correctpass">
+                    <el-input
+                      v-model="ruleForm.correctpass"
+                      placeholder="请再次输入新密码"
+                      clearable
+                    />
+                  </el-form-item>
+                  <p
+                    style="
+                      padding-bottom: 20px;
+                      font-size: 12px;
+                      color: rgb(43, 151, 252);
+                      border-bottom: 1px solid rgba(230, 230, 230, 1);
+                    "
+                  >
+                    注:密码格式为8-20位正确密码(大小写字母·字符·数字)
+                  </p>
+                  <el-form-item class="options">
+                    <el-button class="queding" @click="submitForm(ruleFormRef)">
+                      确定
+                    </el-button>
+                    <el-button class="congzhi" @click="resetForm(ruleFormRef)"
+                      >重置</el-button
+                    >
+                  </el-form-item>
+                </el-form>
+              </el-dialog>
+              <el-dropdown-item @click="loginOut">
+                <el-icon class="switchButton" :size="20" color="#000">
+                  <SwitchButton />
+                </el-icon>
+                <span>退出登录</span>
+              </el-dropdown-item>
+            </el-dropdown-menu>
+          </template>
+        </el-dropdown>
+      </div>
+      <span class="name">{{ username }}</span> -->
+    </div>
+  </el-menu>
+</template>
+
+<script setup>
+import { ref, reactive, onBeforeMount, onMounted, watch } from "vue";
+import { ElMessage, ElMessageBox, ElNotification } from "element-plus";
+import { useStore } from "vuex";
+import { useRouter } from "vue-router";
+import { dayjs } from "element-plus";
+import axios from "axios";
+
+const api = ref();
+const store = useStore();
+const router = useRouter();
+const username = ref(); // 账号名称
+const activeIndex = ref(); // 路由路径
+const loginOutDialogVisible = ref(false); // 退出按钮
+const menuclose = ref(false); // 左边状态栏展开按钮状态
+const uppasswordShow = ref(false); // 修改密码展示框
+const ruleForm = reactive({
+  oldpass: "",
+  nowpass: "",
+  correctpass: "",
+});
+const ruleFormRef = ref();
+// 表单验证
+const rules = reactive({
+  oldpass: [
+    {
+      required: true,
+      message: "密码不能为空",
+      trigger: "blur",
+    },
+  ],
+  nowpass: [
+    {
+      required: true,
+      message: "确认密码不能为空",
+      trigger: "blur",
+    },
+    {
+      min: 8,
+      max: 20,
+      pattern:
+        /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/,
+      message: "请输入8-20位正确密码(大小写字母·字符·数字)",
+      trigger: "blur",
+    },
+  ],
+  correctpass: [
+    {
+      required: true,
+      message: "确认密码不能为空",
+      trigger: "blur",
+    },
+    {
+      min: 8,
+      max: 20,
+      pattern:
+        /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\._\+(){}])[0-9a-zA-Z!@#$%^&*,\\._\+(){}]{8,20}$/,
+      message: "请输入8-20位正确密码(大小写字母·字符·数字)",
+      trigger: "blur",
+    },
+  ],
+  // desc: [{ required: true, message: "Please input activity form", trigger: "blur" }],
+});
+
+// 监控消息通知数量
+// watch(
+//   () => store.state.user.activeIndex,
+//   (newValue, oldValue) => {
+//     titlenumber.value = newValue;
+//     console.log(newValue, "路由地址");
+//   }
+// );
+
+const dateTime = ref(dayjs().format("YYYY-MM-DD") + ` 星期四 `); // 时间
+const time = ref(dayjs().format("HH:mm:ss"));
+
+// 选择菜单
+// const handleSelect = (key, keyPath) => {
+// store.commit("navbarUpdata", key);
+// activeIndex.value = key;
+// };
+
+// 展开按钮
+const SpreadMenu = (flag) => {
+  store.commit("menuClose", flag);
+  menuclose.value = flag;
+};
+
+// 修改密码
+const uppassword = () => {
+  uppasswordShow.value = true;
+};
+const uppasswordClose = () => {
+  uppasswordShow.value = false;
+  ruleFormRef.value.resetFields();
+};
+// 提交修改密码表单
+const submitForm = async (formEl) => {
+  if (!formEl) return;
+  await formEl.validate(async (valid, fields) => {
+    if (valid) {
+      let data = {
+        oldPassword: ruleForm.oldpass,
+        newPassword: ruleForm.nowpass,
+        confirmPassword: ruleForm.correctpass,
+      };
+      let resUpdata = await axios({
+        method: "post",
+        url: api.value + "/login/ChangePassword",
+        headers: {
+          tokenP: sessionStorage.getItem("tokenP"),
+          user_head: sessionStorage.getItem("userhead"),
+        },
+        data: data,
+      });
+      if (resUpdata.data.code == 200) {
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: resUpdata.data.message,
+          center: true,
+        });
+        sessionStorage.removeItem("tokenP");
+        sessionStorage.removeItem("userName");
+        sessionStorage.removeItem("tokenP");
+        sessionStorage.removeItem("roleId");
+        sessionStorage.removeItem("userhead");
+        sessionStorage.removeItem("provinceId");
+        sessionStorage.removeItem("cityId");
+        sessionStorage.removeItem("districtId");
+        sessionStorage.removeItem("address");
+        sessionStorage.removeItem("addressId");
+        uppasswordShow.value = false;
+        ruleFormRef.value.resetFields();
+        router.removeRoute("jianguanCloud");
+        ElNotification({
+          type: "warning",
+          title: "提示!!!",
+          message: "密码已修改,2s后退出到登录页面",
+          // duration: 0,
+          // position: "top-right",
+        });
+        setTimeout(() => {
+          router.push({ path: "/" });
+        }, 2000);
+      } else {
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: resUpdata.data.message,
+          center: true,
+        });
+      }
+    } else {
+      console.log("error submit!", fields);
+    }
+  });
+};
+// 重置表单
+const resetForm = (formEl) => {
+  // console.log("重置表单");
+  if (!formEl) return;
+  formEl.resetFields();
+};
+
+const loginOut = () => {
+  ElMessageBox.confirm("是否退出登录?", "提示", {
+    confirmButtonText: "确认",
+    cancelButtonText: "取消",
+    type: "warning",
+  })
+    .then(() => {
+      sessionStorage.removeItem("tokenP");
+      sessionStorage.removeItem("userName");
+      sessionStorage.removeItem("tokenP");
+      sessionStorage.removeItem("roleId");
+      sessionStorage.removeItem("userhead");
+      sessionStorage.removeItem("provinceId");
+      sessionStorage.removeItem("cityId");
+      sessionStorage.removeItem("districtId");
+      sessionStorage.removeItem("address");
+      sessionStorage.removeItem("addressId");
+      router.push({
+        path: `/login`,
+      });
+      router.removeRoute("jianguanCloud");
+      ElMessage({
+        type: "success",
+        message: "退出成功",
+      });
+    })
+    .catch(() => {
+      ElMessage({
+        type: "info",
+        message: "已取消登录",
+      });
+    });
+};
+
+onMounted(() => {
+  api.value = store.state.user.api;
+  activeIndex.value = store.state.user.navbar;
+  username.value = sessionStorage.getItem("userName");
+  setInterval(() => {
+    var week = ["日", "一", "二", "三", "四", "五", "六"];
+    var datas = dayjs().day();
+    dateTime.value = dayjs().format("YYYY-MM-DD") + ` 星期${week[datas]} `;
+    time.value = dayjs().format("HH:mm:ss");
+  }, 1000);
+});
+</script>
+
+<style scoped lang="scss">
+.el-menu--horizontal {
+  border-bottom: none;
+  display: flex;
+  align-items: center;
+  width: 100%;
+  height: 64px;
+  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+  // background-color: rgba(16, 46, 93, 0.8);
+  background-color: transparent;
+  // background-image: url("../../assets/navber.png");
+  background-size: 100% 140%;
+  background-position: center;
+  background-repeat: no-repeat;
+  // box-shadow: 5px 5px 10px 0px rgba(213, 228, 252, 1);
+  .logo {
+    left: 280px;
+    bottom: 12px;
+    // display: flex;
+    // align-items: center;
+    position: absolute;
+    span {
+      // margin-left: ;
+      // transform: translateX(280px);
+      // margin-bottom: 12px;
+      font-size: 33px;
+      font-weight: 600;
+      color: #fff;
+    }
+  }
+  .login {
+    color: #fff;
+    display: flex;
+    align-items: center;
+    position: absolute;
+    right: 10px;
+    top: 17px;
+
+    .dateTime {
+      margin-right: 0px;
+      color: rgba(0, 233, 254, 1);
+      text-shadow: 0 0 1px rgba(0, 233, 254, 0.8),
+        0 0 2px rgba(0, 233, 254, 0.8), 0 0 6px rgba(0, 233, 254, 0.8);
+    }
+    .time {
+      margin: 0 10px;
+      color: rgba(255, 255, 255, 1);
+      font-size: 18px;
+      text-shadow: 0 0 1px rgba(255, 255, 255, 0.8),
+        0 0 2px rgba(255, 255, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.8);
+    }
+    .el-badge {
+      display: flex;
+      align-items: center;
+      // :deep(.el-badge__content) {
+      //   width: 2px;
+      //   height: 14px;
+      // }
+    }
+    .items-center {
+      margin-left: 20px;
+    }
+    .name {
+      height: 20px;
+      line-height: 20px;
+      text-decoration: underline;
+      padding: 0 10px;
+      margin: 0 10px;
+      border-left: 2px solid #ccc;
+    }
+    .link {
+      display: flex;
+      align-items: center;
+    }
+    .switchButton {
+      cursor: pointer;
+    }
+  }
+  .login:focus {
+    outline: none;
+  }
+  .fold {
+    width: 46px;
+    height: 65px;
+  }
+  .fold:hover {
+    cursor: pointer;
+    background-color: rgba(67, 146, 249, 0.1);
+  }
+}
+.cockpit {
+  background-color: #000;
+}
+.el-dialog__body {
+  .options {
+    display: flex;
+    flex-direction: row-reverse;
+    :deep(.el-form-item__content) {
+      margin-left: 0 !important;
+      flex: none;
+    }
+    :deep(.queding) {
+      background: linear-gradient(
+        90deg,
+        rgb(38, 151, 255) 0%,
+        rgb(102, 181, 255) 100%
+      );
+      border: none !important;
+      color: #fff;
+    }
+  }
+}
+</style>
+<style lang="scss">
+.el-overlay {
+  .el-message-box__btns {
+    .el-button--primary {
+      background: linear-gradient(
+        90deg,
+        rgb(38, 151, 255) 0%,
+        rgb(102, 181, 255) 100%
+      );
+    }
+  }
+  .el-overlay-dialog {
+    .pw {
+      border-radius: 11px;
+
+      .el-dialog__header {
+        border-radius: 11px 11px 0 0;
+        background: rgba(237, 241, 245, 1);
+        font-weight: 600;
+        margin: 0;
+        .el-dialog__headerbtn {
+          outline: none;
+        }
+      }
+      .el-dialog__body {
+        padding: 30px 20px 10px 20px;
+        .el-input {
+          width: 200px;
+        }
+        .options {
+          margin-left: 170px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 347 - 0
src/layout/sidebar/SidevarItem.vue

@@ -0,0 +1,347 @@
+<template>
+  <div class="box-item">
+    <el-menu
+      class="el-menu-vertical-demo"
+      text-color="#fff"
+      :default-active="activeIndex"
+      :collapse="menuClose"
+      @select="handleSelect"
+      :router="true"
+    >
+      <!-- :default-openeds="[34]" -->
+      <div class="logo el-menu-item">
+        <el-icon :size="20"
+          ><img
+            src="@/assets/images/logo.png"
+            style="width: 40px; height: 40px"
+        /></el-icon>
+      </div>
+      <el-menu-item
+        :index="`/delivery/${item.path}`"
+        v-for="item in roleList"
+        :key="item.path"
+      >
+        <div class="itemSon">
+          <SvgIcon :icon="item.path" :size="22" />
+          <span>{{ item.name }}</span>
+        </div>
+      </el-menu-item>
+    </el-menu>
+  </div>
+</template>
+
+<script setup>
+import { ref, onBeforeMount, onMounted, watch, reactive, nextTick } from "vue";
+import axios from "axios";
+import { useStore } from "vuex";
+import { useRouter } from "vue-router";
+import { genFileId, ElMessage, ElMessageBox } from "element-plus";
+
+const store = useStore();
+const router = useRouter();
+const roleList = ref(); // 菜单权限
+const btnList = ref(); //按钮权限
+
+const menuClose = ref(false);
+const activeIndex = ref("");
+const acitveItems = reactive({ list: [] });
+const api = ref();
+
+watch(
+  () => store.state.user.collapse,
+  (newValue, oldValue) => {
+    menuClose.value = newValue;
+  }
+);
+watch(
+  () => router.currentRoute.value.fullPath,
+  (newValue, oldValue) => {
+    let data=newValue.split('?')
+    console.log(data[0]);
+    store.commit("indexUp", data[0]);
+    activeIndex.value = data[0];
+
+    // axios({
+    //   method: "get",
+    //   url: api.value + "/drone-message/unread",
+    //   headers: {
+    //     token: sessionStorage.getItem("token"),
+    //     user_head: sessionStorage.getItem("userhead"),
+    //   },
+    // }).then((res) => {
+    //   console.log(res, "未读信息条数");
+    //   if (res.data.data.unread > 0) {
+    //     sessionStorage.setItem("messageNum", res.data.data.unread);
+    //     store.state.messageNum = res.data.data.unread;
+    //   } else {
+    //     sessionStorage.setItem("messageNum", "");
+    //     store.state.messageNum = '';
+    //   }
+    // });
+  }
+);
+
+const handleSelect = (key, keyPath) => {
+  // store.commit("indexUp", key);
+  // activeIndex.value = key;
+  // sessionStorage.setItem("sidevarItem", key);
+  console.log(key, keyPath);
+  router.push({
+    path: `${key}`,
+  });
+
+  activeIndex.value = key;
+  store.commit("indexUp", key);
+  sessionStorage.setItem("sidevarItem", key);
+  // if (activeIndex.value == 1) {
+  //   router.push({
+  //     path: `/jianguanCloud/order`,
+  //   });
+  // }
+};
+const roleChange = async () => {
+  nextTick(async () => {
+    // let res = await axios({
+    //   method: "post",
+    //   url: api.value + "/api/sysUser/queryOwn",
+    //   headers: {
+    //     tokenP: sessionStorage.getItem("tokenP"),
+    //     user_head: sessionStorage.getItem("userhead"),
+    //   },
+    // });
+    // console.log(res, "获取个人信息");
+    // if (res.data.code == 200) {
+    //   sessionStorage.setItem("id", res.data.data.id);
+    //   sessionStorage.setItem("userName", res.data.data.userName);
+    //   let data = new FormData();
+    //   data.append("roleId", res.data.data.roleId);
+    //   let role = await axios({
+    //     method: "post",
+    //     url: api.value + "/api/sysRole/queryMenuByRole",
+    //     headers: {
+    //       tokenP: sessionStorage.getItem("tokenP"),
+    //       user_head: sessionStorage.getItem("userhead"),
+    //     },
+    //     data: data,
+    //   });
+    //   console.log(role, "查询角色菜单权限");
+    //   if (role.data.code == 200) {
+    //     roleList.value = []; // 菜单权限
+    //     btnList.value = [];
+    //     let resdata = role.data.data;
+    //     resdata = resdata.filter((i) => {
+    //       return i.state == 1;
+    //     });
+    //     resdata.forEach((item) => {
+    //       // let modules = import.meta.glob("../views/**/*.vue");
+    //       if (item.state == 1) {
+    //         let arr = {
+    //           path: item.url,
+    //           name: item.url,
+    //           meta: { title: item.menuName, icon: item.url },
+    //           component: () =>
+    //             import(`../../views/${item.url}/${item.url}.vue`),
+    //         };
+    //         // state[0].roleList.children.push(arr);
+    //         roleList.value.push(arr);
+    //       }
+    //       if (item.menuLists) {
+    //         item.menuLists.forEach((i) => {
+    //           if (i.state == 1) {
+    //             btnList.value.push(i.url);
+    //           }
+    //         });
+    //       }
+    //     });
+    //     sessionStorage.setItem("roleList", JSON.stringify(resdata));
+    //     sessionStorage.setItem("btnList", JSON.stringify(btnList.value));
+    //     let roles = JSON.parse(sessionStorage.getItem("roleList"));
+    //     if (roles) {
+    //       store.commit("ROLELIST", "");
+    //     }
+    //   } else {
+    //     if (res.data.message.indexOf("Handler dispatch failed") != -1) {
+    //       ElMessage({
+    //         type: "error",
+    //         showClose: true,
+    //         message: "token已过期,请重新登录",
+    //         center: true,
+    //       });
+    //     } else {
+    //       ElMessage({
+    //         type: "error",
+    //         showClose: true,
+    //         message: res.data.message,
+    //         center: true,
+    //       });
+    //     }
+    //   }
+    // } else {
+    //   if (res.data.message.indexOf("Handler dispatch failed") != -1) {
+    //     window.location.href =
+    //       "https://chtech.ncjti.edu.cn/kpi/template/api/sysUser/authorize";
+    //     ElMessage({
+    //       type: "error",
+    //       showClose: true,
+    //       message: "token已过期,请重新登录",
+    //       center: true,
+    //     });
+    //   } else {
+    //     ElMessage({
+    //       type: "error",
+    //       showClose: true,
+    //       message: res.data.message,
+    //       center: true,
+    //     });
+    //   }
+    // }
+    roleList.value = store.state.user.api;
+  });
+};
+onBeforeMount(() => {
+  api.value = store.state.user.api;
+  // roleChange();
+  activeIndex.value = sessionStorage.getItem("sidevarItem");
+  roleList.value = JSON.parse(sessionStorage.getItem("roleList"));
+  roleList.value = roleList.value.filter((i) => {
+    return !i.flag;
+  });
+  console.log(roleList.value);
+  // roleList.value = store.state.user.roleList;
+});
+</script>
+
+<style lang="scss" scoped>
+.el-menu-vertical-demo:not(.el-menu--collapse) {
+  width: 220px;
+  // min-height: 400px;
+}
+.box-item {
+  width: 220px;
+  height: calc(100vh);
+}
+.el-menu {
+  width: 220px;
+  height: 100%;
+  overflow: auto;
+  // background: rgba(55, 105, 173, 1);
+  background: rgba(46, 64, 89, 1);
+  background-image: url("../../assets/images/navberBg.png");
+  background-position: center; /* 设置背景图片居中 */
+  background-repeat: no-repeat; /* 设置背景图片不重复 */
+  background-size: cover; /* 设置背景图片覆盖整个容器 */
+  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.16);
+  border: none;
+  .logo {
+    height: 64px;
+    color: rgb(255, 255, 255);
+    cursor: default;
+    display: flex;
+    justify-content: space-around;
+    align-items: center;
+    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+  }
+
+  .logo:hover {
+    background-color: transparent !important;
+  }
+  .itemSon {
+    width: 180px;
+    height: 40px;
+    border-radius: 10px;
+    display: flex;
+    // justify-content: space-around;
+    align-items: center;
+    // background: linear-gradient(
+    //   90deg,
+    //   rgba(38, 151, 255, 1) 0%,
+    //   rgba(102, 182, 255, 1) 100%
+    // );
+    .svg-icon {
+      margin: 0 15px;
+    }
+  }
+  .el-sub-menu {
+    padding: 8px 0;
+    .el-menu-item {
+      padding: 0;
+      background: rgba(46, 64, 89, 1);
+      color: #fff;
+      display: flex;
+      justify-content: center;
+      .img {
+        width: 18px;
+        margin: 0 20px;
+      }
+      .itemSon:hover {
+        background: rgba(55, 105, 173, 1);
+        color: rgba(99, 180, 255, 1);
+      }
+    }
+    .el-menu-item:hover {
+      background: rgba(46, 64, 89, 1);
+      color: #fff;
+      .itemSon {
+        background: rgba(55, 105, 173, 1);
+        color: rgba(99, 180, 255, 1);
+      }
+    }
+    .el-menu-item.is-active {
+      .itemSon {
+        background: rgba(55, 105, 173, 1);
+        color: rgba(99, 180, 255, 1);
+      }
+    }
+    // 系统设置栏样式
+    :deep(.el-sub-menu__title) {
+      padding: 0;
+      margin: 0 auto;
+      width: 180px;
+      height: 40px;
+      border-radius: 10px;
+      display: flex;
+      align-items: center;
+      background: rgba(55, 105, 173, 1);
+      color: #fff;
+      .el-icon {
+        width: 18px;
+      }
+    }
+  }
+  .el-sub-menu.is-active {
+    :deep(.el-sub-menu__title) {
+      background: linear-gradient(
+        90deg,
+        rgba(38, 151, 255, 1) 0%,
+        rgba(102, 182, 255, 1) 100%
+      );
+      color: fff;
+    }
+  }
+
+  // 单个菜单项样式
+  .el-menu-item {
+    padding: 10px 0 !important;
+    display: flex;
+    justify-content: center;
+  }
+
+  .el-menu-item:hover {
+    background: rgba(46, 64, 89, 1);
+    .itemSon {
+      background: rgba(55, 105, 173, 1);
+      color: rgba(99, 180, 255, 1);
+    }
+  }
+  .el-menu-item.is-active {
+    .itemSon {
+      background: linear-gradient(
+        90deg,
+        rgba(38, 151, 255, 1) 0%,
+        rgba(102, 182, 255, 1) 100%
+      );
+      color: #fff;
+    }
+  }
+}
+</style>

+ 65 - 0
src/main.js

@@ -0,0 +1,65 @@
+import { createApp } from "vue";
+import "./style.css";
+import ElementPlus from "element-plus";
+import zhCn from "element-plus/dist/locale/zh-cn.mjs";
+import "element-plus/dist/index.css";
+import * as ElementPlusIconsVue from "@element-plus/icons-vue";
+import App from "./App.vue";
+
+import router from "@/router";
+import store from "@/store";
+
+import SvgIcon from "@/components/SvgIcon.vue";
+//引入注册脚本
+import "virtual:svg-icons-register";
+
+// 预览图片插件
+import Viewer from "v-viewer";
+import "viewerjs/dist/viewer.css";
+
+const app = createApp(App);
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+  app.component(key, component);
+}
+
+
+const btnFlag = (val) => {
+  let btnList = JSON.parse(sessionStorage.getItem("btnList"));
+  let flag = btnList.some((i) => {
+    return i == val;
+  });
+  return flag;
+};
+app.provide("$btnFlag", btnFlag);
+
+
+app.use(ElementPlus, {
+  locale: zhCn,
+});
+app.use(router);
+app.use(store);
+
+// 注册全局SvgIcon组件
+app.component("SvgIcon", SvgIcon);
+
+app.use(Viewer, {
+  Options: {
+    inline: true,
+    button: true, //右上角按钮
+    navbar: true, //底部缩略图
+    title: true, //当前图片标题
+    toolbar: true, //底部工具栏
+    tooltip: true, //显示缩放百分比
+    movable: true, //是否可以移动
+    zoomable: true, //是否可以缩放
+    rotatable: true, //是否可旋转
+    scalable: true, //是否可翻转
+    transition: true, //使用 CSS3 过度
+    fullscreen: true, //播放时是否全屏
+    keyboard: true, //是否支持键盘
+    url: "data-source",
+  },
+});
+
+app.mount("#app");
+app.config.devtools = true;

+ 135 - 0
src/router/index.js

@@ -0,0 +1,135 @@
+import {
+  createRouter,
+  createWebHistory,
+  createWebHashHistory,
+} from "vue-router";
+import Layout from "@/layout/index.vue";
+import store from "@/store";
+import NProgress from "nprogress";
+import "nprogress/nprogress.css";
+import { ElMessage, ElMessageBox } from "element-plus";
+const routes = [
+  {
+    path: "/delivery/login",
+    component: () => import("@/views/login/index.vue"),
+  },
+  {
+    path: "/",
+    redirect: "/delivery/login",
+  },
+  {
+    path: "/delivery/error",
+    name: "error",
+    component: () => import("@/views/error/error.vue"),
+    meta: { title: "无权限页面", icon: "error" },
+  },
+  {
+    path: "/delivery",
+    name: "delivery",
+    component: Layout,
+    children: [
+      // {
+      //   path: "home",
+      //   name: "home",
+      //   component: () => import("@/views/homePage/home.vue"),
+      //   meta: { title: "获取token页面", icon: "home" },
+      // },
+      // {
+      //   path: "monitoring",
+      //   name: "monitoring",
+      //   component: () => import("@/views/monitoring/monitoring.vue"),
+      //   meta: { title: "监测中心", icon: "monitoring" },
+      // },
+      // {
+      //   path: "message",
+      //   name: "message",
+      //   component: () => import("@/views/message/message.vue"),
+      //   meta: { title: "信息", icon: "message" },
+      // },
+      // {
+      //   path: "distribution",
+      //   name: "distribution",
+      //   component: () => import("@/views/distribution/distribution.vue"),
+      //   meta: { title: "配送中心", icon: "dashboard" },
+      // },
+      // {
+      //   path: "drone",
+      //   name: "drone",
+      //   component: () => import("@/views/drone/drone.vue"),
+      //   meta: { title: "飞行器管理", icon: "dashboard" },
+      // },
+      // {
+      //   path: "station",
+      //   name: "station",
+      //   component: () => import("@/views/station/station.vue"),
+      //   meta: { title: "站点管理", icon: "dashboard" },
+      // },
+      // {
+      //   path: "parking",
+      //   name: "parking",
+      //   component: () => import("@/views/parking/parking.vue"),
+      //   meta: { title: "停机坪管理", icon: "dashboard" },
+      // },
+      // {
+      //   path: "container",
+      //   name: "container",
+      //   component: () => import("@/views/container/container.vue"),
+      //   meta: { title: "货柜管理", icon: "dashboard" },
+      // },
+      // {
+      //   path: "account",
+      //   name: "account",
+      //   component: () => import("@/views/account/account.vue"),
+      //   meta: { title: "账号管理", icon: "dashboard" },
+      // },
+      // {
+      //   path: "system",
+      //   name: "system",
+      //   component: () => import("@/views/system/system.vue"),
+      //   meta: { title: "系统管理", icon: "dashboard" },
+      // },
+    ],
+  },
+];
+
+const router = createRouter({
+  // history: createWebHistory(""), // 发布地址
+  // history: createWebHashHistory("/droneAdmin"), // 发布地址
+  // history: createWebHashHistory("/droneAdmin"), // 万载发布地址
+  history: createWebHashHistory("/lowFly/droneAdmin"), // 发布地址
+  routes: routes,
+});
+
+router.beforeEach(async (to, from, next) => {
+  NProgress.start(); // 进度条开始
+  let hasRoutes = store.state.user.hasRoutes;
+  // console.log(hasRoutes, "hasRoutes");
+
+  if (to.path == "/delivery/login") {
+    next();
+  } else {
+    if (sessionStorage.getItem("token")) {
+      if (!hasRoutes) {
+        store.commit("SET_ROUTES_STATE", true);
+        store.commit("ROLELIST", "");
+        // console.log("当前有权限信息");
+        next({ ...to, replace: true });
+      } else {
+        // console.log("当前无权限信息");
+        next();
+      }
+    } else {
+      if (to.path == "/delivery/error") {
+        next();
+      } else {
+        next(`/delivery/login`);
+      }
+    }
+  }
+});
+
+router.afterEach(() => {
+  NProgress.done(); // 进度条结束
+});
+
+export default router;

+ 5 - 0
src/store/getters.js

@@ -0,0 +1,5 @@
+//store/getters
+const getters = {
+    age: state => state.user.age //导出age
+}
+export default getters;

+ 22 - 0
src/store/index.js

@@ -0,0 +1,22 @@
+//store/index.js
+
+import createPersistedstate from 'vuex-persistedstate' //持久化插件
+import { createStore } from 'vuex'; //引入vuex
+import user from './modules/user'; //引入modules的方法;
+import getters from './getters' //引入getters
+const store = createStore({
+    modules: {
+        user
+    },
+    getters,
+    // plugins: [
+    //     createPersistedstate({
+    //         // key: 'userStore', //存储持久状态的键。(默认:vuex)
+    //         paths: ['user'], //部分持续状态的任何路径的数组。如果不加,默认所有。
+    //         storage: window.sessionStorage //默认存储到localStorage,想要存储到sessionStorage
+    //     })
+    // ]
+
+})
+
+export default store;

+ 599 - 0
src/store/modules/user.js

@@ -0,0 +1,599 @@
+import axios from "axios";
+import router from "@/router";
+import Layout from "@/layout/index.vue";
+import { genFileId, ElMessage, ElMessageBox } from "element-plus";
+
+// 声明变量
+const state = {
+  collapse: false,
+  activeIndex: "", // 记录当前路由
+  messageNum: "", // 未读信息条数
+  username: "",
+  password: "",
+  api: "/lowFly/houtai/drone/auto", // 线上
+  // api: "/drone/auto", // 测试
+  roleList: [
+    // {
+    //   path: "distribution",
+    //   name: "distribution",
+    //   component: () => import("@/views/distribution/distribution.vue"),
+    //   meta: { title: "配送中心", icon: "distribution" },
+    // },
+    // {
+    //   path: "drone",
+    //   name: "drone",
+    //   component: () => import("@/views/drone/drone.vue"),
+    //   meta: { title: "飞行器管理", icon: "drone" },
+    // },
+    // {
+    //   path: "station",
+    //   name: "station",
+    //   component: () => import("@/views/station/station.vue"),
+    //   meta: { title: "站点管理", icon: "station" },
+    // },
+    // {
+    //   path: "parking",
+    //   name: "parking",
+    //   component: () => import("@/views/parking/parking.vue"),
+    //   meta: { title: "停机坪管理", icon: "parking" },
+    // },
+    // {
+    //   path: "container",
+    //   name: "container",
+    //   component: () => import("@/views/container/container.vue"),
+    //   meta: { title: "货柜管理", icon: "container" },
+    // },
+    // {
+    //   path: "account",
+    //   name: "account",
+    //   component: () => import("@/views/account/account.vue"),
+    //   meta: { title: "账号管理", icon: "account" },
+    // },
+    // {
+    //   path: "system",
+    //   name: "system",
+    //   component: () => import("@/views/system/system.vue"),
+    //   meta: { title: "系统管理", icon: "system" },
+    // },
+  ],
+  roles: [],
+  hasRoutes: false,
+};
+
+// 修改变量(state不能直接赋值修改,只能通过mutations)
+const mutations = {
+  menuClose: (state, value) => {
+    state.collapse = value;
+  },
+  indexUp: (state, value) => {
+    sessionStorage.setItem("sidevarItem", value);
+    state.activeIndex = value;
+    // if (!value) {
+    //   let roleId = sessionStorage.getItem("roleId");
+    //   state.user.roles.forEach((item) => {
+    //     if (item.roles == roleId) {
+    //       state.activeIndex = `/jianguanCloud/${item.list[0]}`;
+    //       sessionStorage.setItem(
+    //         "sidevarItem",
+    //         `/jianguanCloud/${item.list[0]}`
+    //       );
+    //     }
+    //   });
+    // } else {
+    //   sessionStorage.setItem("sidevarItem", value);
+    // }
+  },
+  SET_ROUTES_STATE: (state, value) => {
+    state.hasRoutes = value;
+  },
+  userName: (state, value) => {
+    state.username = value;
+  },
+  passWord: (state, value) => {
+    state.password = value;
+  },
+  ROLELIST: async (state, value) => {
+    let roleList = JSON.parse(sessionStorage.getItem("roleList"));
+    console.log(roleList, "role");
+    // axios({
+    //   method: "get",
+    //   url: state.api + "/drone-message/unread",
+    //   headers: {
+    //     token: sessionStorage.getItem("token"),
+    //     user_head: sessionStorage.getItem("userhead"),
+    //   },
+    // }).then((res) => {
+    //   console.log(res, "未读信息条数");
+    //   if (res.data.data.unread > 0) {
+    //     sessionStorage.setItem("messageNum", res.data.data.unread);
+    //     state.messageNum = res.data.data.unread;
+    //   } else {
+    //     sessionStorage.setItem("messageNum", "");
+    //     state.messageNum = "";
+    //   }
+    // });
+
+    if (roleList) {
+      router.addRoute({
+        path: "/delivery",
+        name: "delivery",
+        // component: modules[`../views/${item.name}/${item.name}.vue`],
+        component: Layout,
+        children: [
+          // {
+          //   path: "home",
+          //   name: "home",
+          //   component: () => import("@/views/homePage/home.vue"),
+          //   meta: { title: "获取token页面", icon: "home" },
+          // },
+        ],
+      });
+      let roles = roleList; // 真实拥有的菜单权限
+      roleList.forEach((item) => {
+        // if (item.state == 1) {
+        //   roles.push(item);
+        // }
+        let arr = {
+          path: item.path,
+          name: item.path,
+          meta: { title: item.name, icon: item.path },
+          component: () => import(`../../views/${item.path}/${item.path}.vue`),
+        };
+        router.addRoute("delivery", arr);
+      });
+      if (roleList) {
+        if (sessionStorage.getItem("sidevarItem")) {
+          let sidevarItem = sessionStorage.getItem("sidevarItem");
+          let flag = roles.some((i) => {
+            return sidevarItem.includes(i.path);
+          });
+          console.log(flag);
+          if (flag) {
+            router.push({
+              path: `${sessionStorage.getItem("sidevarItem")}`,
+            });
+          } else {
+            router.push({
+              path: `/delivery/${roles[0].path}`,
+            });
+          }
+        } else {
+          sessionStorage.setItem("sidevarItem", `/delivery/${roles[0].path}`);
+          router.push({
+            path: `/delivery/${roles[0].path}`,
+          });
+        }
+      }
+    }
+  },
+};
+// mutations的值由actions传入(异步)
+const actions = {
+  newsAsync: async ({ commit, state }) => {
+    let data = new FormData();
+    let res = await axios({
+      method: "post",
+      url: state.api + "/carBook/usermesUnRead.action",
+      headers: {
+        token: sessionStorage.getItem("token"),
+      },
+      data: data,
+    });
+    console.log(res, "系统消息");
+
+    commit("newsUp", res.data.u_count);
+    sessionStorage.setItem("newsNum", res.data.u_count);
+    console.log("vuex", res.data.u_count);
+  },
+  // 系统扫码时间
+  login: async ({ commit, state }, data) => {
+    return new Promise(async (resolve, reject) => {
+      let res = await axios({
+        method: "post",
+        url: state.api + "/login/Login",
+        data: data,
+      });
+
+      console.log(res, "登录账号");
+      if (res.data.code == 200) {
+        sessionStorage.setItem("userName", res.data.data.userName);
+        sessionStorage.setItem("token", res.data.data.token);
+        let droneManagement = res.data.data.droneManagement;
+        let btnRoles = {
+          peisongzhongxin: {}, // 配送中心
+          peisongshenqing: {}, // 配送申请
+          feixingqiguanli: {}, // 飞行器管理
+          zhandianguanli: {}, // 站点管理
+          hangxianguanli: {}, // 航线任务管理
+          tingjipingguanli: {}, // 停机坪管理
+          huoguiguanli: {}, // 货柜管理
+          jueseguanli: {}, // 角色管理
+          guanliduanguanli: {}, // 管理端管理
+          yidongduanguanli: {}, // 移动端管理
+          xinxi: {}, // 信息
+          jiancezhongxin: {}, // 检测中心
+          xitongguanli: {}, // 检测中心
+        };
+        let roleList = [];
+        // 配送中心
+        if (droneManagement.distributionCenter) {
+          let list = droneManagement.distributionCenter.split(",");
+          let a = list.some((i) => {
+            return i == 3;
+          });
+          if (a) {
+            roleList.push({
+              name: "配送中心",
+              path: "distribution",
+              route: "/delivery/distribution",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.peisongzhongxin.chakan = 1;
+            }
+            if (i == 2) {
+              btnRoles.peisongzhongxin.fanhui = 1;
+            }
+            if (i == 3) {
+              btnRoles.peisongzhongxin.chaxun = 1;
+            }
+          });
+        }
+        // 配送申请
+        if (droneManagement.distributionApplication) {
+          let list = droneManagement.distributionApplication.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "配送中心",
+              path: "distribution",
+              route: "/delivery/distribution",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.peisongshenqing.chakan = 1;
+            }
+            if (i == 2) {
+              btnRoles.peisongshenqing.tongyi = 1;
+            }
+            if (i == 3) {
+              btnRoles.peisongshenqing.jujue = 1;
+            }
+            if (i == 4) {
+              btnRoles.peisongshenqing.chaxun = 1;
+            }
+          });
+        }
+        // 飞行器管理
+        if (droneManagement.aircraftManagement) {
+          let list = droneManagement.aircraftManagement.split(",");
+          let a = list.some((i) => {
+            return i == 1;
+          });
+          if (a) {
+            roleList.push({
+              name: "飞行器管理",
+              path: "drone",
+              route: "/delivery/drone",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.feixingqiguanli.chaxun = 1;
+            }
+            if (i == 2) {
+              btnRoles.feixingqiguanli.shanchu = 1;
+            }
+            if (i == 3) {
+              btnRoles.feixingqiguanli.qiyong = 1;
+            }
+            if (i == 4) {
+              btnRoles.feixingqiguanli.jinyong = 1;
+            }
+            if (i == 5) {
+              btnRoles.feixingqiguanli.xiazaierweima = 1;
+            }
+            if (i == 6) {
+              btnRoles.feixingqiguanli.bianji = 1;
+            }
+            if (i == 7) {
+              btnRoles.feixingqiguanli.xinzeng = 1;
+            }
+          });
+        }
+        // 站点管理
+        if (droneManagement.stationManagement) {
+          let list = droneManagement.stationManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "站点管理",
+              path: "station",
+              route: "/delivery/station",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.zhandianguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.zhandianguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.zhandianguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.zhandianguanli.chaxun = 1;
+            }
+          });
+        }
+        // 航线任务管理
+        if (droneManagement.routeMissionManagement) {
+          let list = droneManagement.routeMissionManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "航线管理",
+              path: "routeMission",
+              route: "/delivery/routeMission",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.hangxianguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.hangxianguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.hangxianguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.hangxianguanli.chaxun = 1;
+            }
+          });
+        }
+        // 停机坪管理
+        if (droneManagement.parkingManagement) {
+          let list = droneManagement.parkingManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "停机坪管理",
+              path: "parking",
+              route: "/delivery/parking",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.tingjipingguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.tingjipingguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.tingjipingguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.tingjipingguanli.chaxun = 1;
+            }
+          });
+        }
+        // 货柜管理
+        if (droneManagement.containerManagement) {
+          let list = droneManagement.containerManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "货柜管理",
+              path: "container",
+              route: "/delivery/container",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.huoguiguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.huoguiguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.huoguiguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.huoguiguanli.chaxun = 1;
+            }
+          });
+        }
+        // 角色管理
+        if (droneManagement.menuManagement) {
+          let list = droneManagement.menuManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "账号管理",
+              path: "account",
+              route: "/delivery/account",
+            });
+          }
+
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.jueseguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.jueseguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.jueseguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.jueseguanli.chaxun = 1;
+            }
+          });
+        }
+        // 管理端管理
+        if (droneManagement.adminManagement) {
+          let list = droneManagement.adminManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "账号管理",
+              path: "account",
+              route: "/delivery/account",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.guanliduanguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.guanliduanguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.guanliduanguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.guanliduanguanli.chaxun = 1;
+            }
+          });
+        }
+        // 移动端管理
+        if (droneManagement.appManagement) {
+          let list = droneManagement.appManagement.split(",");
+          let a = list.some((i) => {
+            return i == 4;
+          });
+          if (a) {
+            roleList.push({
+              name: "账号管理",
+              path: "account",
+              route: "/delivery/account",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.yidongduanguanli.bianji = 1;
+            }
+            if (i == 2) {
+              btnRoles.yidongduanguanli.xinzeng = 1;
+            }
+            if (i == 3) {
+              btnRoles.yidongduanguanli.shanchu = 1;
+            }
+            if (i == 4) {
+              btnRoles.yidongduanguanli.chaxun = 1;
+            }
+          });
+        }
+        // 信息
+        if (droneManagement.messageManagement) {
+          let list = droneManagement.messageManagement.split(",");
+          let a = list.some((i) => {
+            return i == 1;
+          });
+          if (a) {
+            roleList.push({
+              name: "信息",
+              path: "message",
+              route: "/delivery/message",
+              flag: true,
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.xinxi.chaxun = 1;
+            }
+          });
+        }
+        // 检测中心
+        if (droneManagement.monitoringCenterManagement) {
+          let list = droneManagement.monitoringCenterManagement.split(",");
+          let a = list.some((i) => {
+            return i == 1;
+          });
+          if (a) {
+            roleList.push({
+              name: "检测中心",
+              path: "monitoring",
+              route: "/delivery/monitoring",
+              flag: true,
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.jiancezhongxin.chaxun = 1;
+            }
+          });
+        }
+        // 系统管理
+        if (droneManagement.systemManagement) {
+          let list = droneManagement.systemManagement.split(",");
+          let a = list.some((i) => {
+            return i == 1;
+          });
+          if (a) {
+            roleList.push({
+              name: "系统管理",
+              path: "system",
+              route: "/delivery/system",
+            });
+          }
+          list.forEach((i) => {
+            if (i == 1) {
+              btnRoles.xitongguanli.chaxun = 1;
+            }
+            if (i == 2) {
+              btnRoles.xitongguanli.xiugai = 1;
+            }
+          });
+        }
+        let jrr = [];
+        roleList.forEach((i) => {
+          let flag = jrr.some((j) => {
+            return j.path == i.path;
+          });
+          if (!flag) {
+            jrr.push(i);
+          }
+        });
+        sessionStorage.setItem("roleList", JSON.stringify(jrr));
+        sessionStorage.setItem("btnRoles", JSON.stringify(btnRoles));
+        commit("userName", res.data.data.userName);
+        commit("ROLELIST", "");
+        // if (res.data.data.roleId == 1) {
+        //   router.push({ path: "/jianguanCloud/project" });
+        //   commit("indexUp", "/jianguanCloud/project");
+        // } else {
+        //   router.push({ path: "/jianguanCloud/home" });
+        //   commit("indexUp", "/jianguanCloud/home");
+        // }
+        resolve("success");
+      } else {
+        resolve({ name: "reject", data: res });
+      }
+    });
+  },
+};
+
+export default {
+  state,
+  mutations,
+  actions,
+};

+ 89 - 0
src/style.css

@@ -0,0 +1,89 @@
+:root {
+  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
+  line-height: 1.5;
+  font-weight: 400;
+
+  color-scheme: light dark;
+  color: rgba(255, 255, 255, 0.87);
+  background-color: #242424;
+
+  font-synthesis: none;
+  text-rendering: optimizeLegibility;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-text-size-adjust: 100%;
+}
+
+a {
+  font-weight: 500;
+  color: #646cff;
+  text-decoration: inherit;
+}
+a:hover {
+  color: #535bf2;
+}
+
+a {
+  font-weight: 500;
+  color: #646cff;
+  text-decoration: inherit;
+}
+a:hover {
+  color: #535bf2;
+}
+
+body {
+  margin: 0;
+  display: flex;
+  place-items: center;
+  min-width: 320px;
+  min-height: 100vh;
+}
+
+h1 {
+  font-size: 3.2em;
+  line-height: 1.1;
+}
+
+button {
+  border-radius: 8px;
+  border: 1px solid transparent;
+  padding: 0.6em 1.2em;
+  font-size: 1em;
+  font-weight: 500;
+  font-family: inherit;
+  background-color: #1a1a1a;
+  cursor: pointer;
+  transition: border-color 0.25s;
+}
+button:hover {
+  border-color: #646cff;
+}
+button:focus,
+button:focus-visible {
+  outline: 4px auto -webkit-focus-ring-color;
+}
+
+.card {
+  padding: 2em;
+}
+
+/* #app {
+  max-width: 1280px;
+  margin: 0 auto;
+  padding: 2rem;
+  text-align: center;
+} */
+
+@media (prefers-color-scheme: light) {
+  :root {
+    color: #213547;
+    background-color: #ffffff;
+  }
+  a:hover {
+    color: #747bff;
+  }
+  button {
+    background-color: #f9f9f9;
+  }
+}

+ 1 - 0
src/style/mixin.scss

@@ -0,0 +1 @@
+$default: red

Файловите разлики са ограничени, защото са твърде много
+ 1377 - 0
src/utils/LabelsData.js


+ 74 - 0
src/utils/http.js

@@ -0,0 +1,74 @@
+/****   http.js   ****/
+// 导入封装好的axios实例
+import request from "./request";
+
+const http = {
+  /**
+   * methods: 请求
+   * @param url 请求地址
+   * @param params 请求参数
+   */
+
+  get(url, params, responseType, ContentType) {
+    const config = {
+      method: "get",
+      url: url,
+      responseType: responseType ? responseType : "",
+      //   headers: ContentType
+      //     ? ContentType
+      //     : { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8" },
+    };
+    if (params) {
+      config.params = params;
+    }
+
+    return request(config);
+  },
+  post(url, params, responseType, ContentType) {
+    const config = {
+      method: "post",
+      url: url,
+      //   headers: ContentType
+      //     ? ContentType
+      //     : {
+      //         "Content-Type": "application/json; charset=utf-8",
+      //       },
+    };
+    if (params) config.data = params;
+    return request(config);
+  },
+  put(url, params, ContentType) {
+    const config = {
+      method: "put",
+      url: url,
+      headers: ContentType
+        ? ContentType
+        : {
+            "Content-Type": "application/json; charset=utf-8",
+          },
+    };
+    if (params) {
+      // config.params = params
+      config.data = params;
+    }
+    return request(config);
+  },
+  delete(url, params, ContentType) {
+    const config = {
+      method: "delete",
+      url: url,
+      headers: ContentType
+        ? ContentType
+        : {
+            "Content-Type": "application/json; charset=utf-8",
+          },
+    };
+    if (params) {
+      // config.params = params
+      config.data = params;
+    }
+    return request(config);
+  },
+};
+//导出
+export default http;

+ 23 - 0
src/utils/loadMap.js

@@ -0,0 +1,23 @@
+/**
+ * 动态加载百度地图api函数
+ * @param {String} ak  百度地图AK,必传
+ */
+export default function loadBMap(ak) {
+  return new Promise((resolve, reject) => {
+    if (typeof window.BMap !== "undefined") {
+      resolve(window.BMap);
+      return true;
+    }
+    window.onBMapCallback = function () {
+      resolve(window.BMap);
+      console.log("百度地图脚本初始化成功...");
+      return true;
+    };
+    const script = document.createElement("script");
+    script.type = "text/javascript";
+    script.src = `https://api.map.baidu.com/api?v=3.0&ak=${ak}&callback=onBMapCallback&s=1`;
+    script.onerror = reject;
+    document.head.appendChild(script);
+    return true;
+  });
+}

+ 47 - 0
src/utils/request.js

@@ -0,0 +1,47 @@
+import axios from "axios";
+const service = axios.create({
+  baseURL: import.meta.env.VITE_BASE_API, //接口统一域名
+  timeout: 6000, //设置超时
+});
+
+// request拦截器
+service.interceptors.request.use(
+  (config) => {
+    // config.data = JSON.stringify(config.data); //数据转化,也可以使用qs转换
+    // config.headers = {
+    //     'Content-Type': 'application/json' //配置请求头
+    // }
+    // config.headers = { 'Content-Type': 'application/x-www-form-urlencoded' } //配置请求头
+    //如有需要:注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
+    const token = sessionStorage.getItem("token"); //这里取token之前,你肯定需要先拿到token,存一下
+    const user_head = sessionStorage.getItem("userhead"); //这里取token之前,你肯定需要先拿到token,存一下
+    if (token && user_head) {
+      // config.params = { 'admin_token': token } //如果要求携带在参数中
+      config.headers["token"] = token; //如果要求携带在请求头中
+      config.headers["user_head"] = user_head; //如果要求携带在请求头中
+    }
+    return config;
+  },
+  (error) => {
+    Promise.reject(error);
+  }
+);
+// 响应拦截器
+service.interceptors.response.use(
+  (response) => {
+    const res = response.data;
+
+    return response.data;
+  },
+  (error) => {
+    /* Message({
+                      message: '服务器调用错误',
+                      type: 'error',
+                      duration: 5 * 1000
+                    }) */
+    console.log(error);
+
+    return Promise.reject(error);
+  }
+);
+export default service;

+ 22 - 0
src/utils/rsa.js

@@ -0,0 +1,22 @@
+import { JSEncrypt } from 'jsencrypt';
+let publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMOcPB06u5yKyQsPjfVWiWgbEIrd14kiXNNihciaVKb6HnkQvq7zpQuZ80WEX94spnUMI3iOAl/GmIvHrpGwcbB4hJbznm+PajiwnUSPuCCXA68YJF640cJKb/8KeM7WVz69OFkIEPHhVxOy4FFF5QWe/kt6zOZ19HmE+ak+5x/QIDAQAB'
+let privateKey = '这里是封装的私钥'
+//加密方法
+export function RSAencrypt(pas) {
+    //实例化jsEncrypt对象
+    let jse = new JSEncrypt();
+    //设置公钥
+    jse.setPublicKey(publicKey);
+    console.log('加密:' + jse.encrypt(pas))
+    return jse.encrypt(pas);
+}
+
+//解密方法
+export function RSAdecrypt(pas) {
+    let jse = new JSEncrypt();
+    // 私钥
+    jse.setPrivateKey(privateKey)
+    console.log('解密:' + jse.decrypt(pas))
+    return jse.decrypt(pas);
+}
+

Файловите разлики са ограничени, защото са твърде много
+ 1728 - 0
src/views/account/account.vue


+ 893 - 0
src/views/container/container.vue

@@ -0,0 +1,893 @@
+<template>
+  <div class="content-box">
+    <div class="left">
+      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
+      <span class="cameratxt">货柜管理</span>
+    </div>
+    <div class="middle">
+      <div class="filter">
+        <div class="condition">
+          <el-input
+            clearable
+            v-model="searchInput.keyWord"
+            @clear="searchBtn"
+            class="w-50 m-2"
+            placeholder="请输入关键字"
+            style="width: 250px"
+          />
+        </div>
+        <el-button
+          style="margin: 0 30px"
+          type="primary"
+          class="search"
+          @click="searchBtn"
+          >查询</el-button
+        >
+        <div class="condition">
+          <span>排序 </span>
+          <el-select
+            v-model="searchInput.sort"
+            placeholder="请选择排序"
+            style="width: 160px"
+            :clearable="false"
+            @change="searchBtn"
+          >
+            <el-option label="降序" value="1" />
+            <el-option label="升序" value="2" />
+          </el-select>
+        </div>
+      </div>
+      <!-- 按钮列表 -->
+      <div class="gongneng" v-if="btnRoles.huoguiguanli.xinzeng==1">
+        <el-button @click="addAccountbtn" class="add"
+          >&nbsp;<el-icon><CirclePlus /></el-icon
+          >&nbsp;新增&nbsp;&nbsp;</el-button
+        >
+      </div>
+    </div>
+    <div class="scroll">
+      <div class="footer" v-loading="loading">
+        <el-table
+          :row-class-name="tableRowClassName"
+          :data="tableData.list"
+          @selection-change="handleSelectionChange"
+          style="width: 100%"
+          :header-cell-style="{
+            background: 'rgba(240, 243, 247, 1)',
+            height: '50px',
+            border: 0,
+          }"
+        >
+          <!-- <el-table-column
+            width="80"
+            align="center"
+            type="index"
+            label="序号"
+          /> -->
+          <el-table-column
+            align="center"
+            prop="containerName"
+            label="货柜名称"
+          />
+          <el-table-column align="center" prop="code" label="编号">
+          </el-table-column>
+          <el-table-column align="center" prop="totalCapacity" label="总容量" />
+          <el-table-column align="center" prop="occupy" label="占用" />
+          <el-table-column align="center" prop="free" label="空闲" />
+          <el-table-column align="center" prop="" label="经纬度">
+            <template #default="{ row }">
+              <span>{{ row.longitude }},{{ row.latitude }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="center" prop="location" label="位置" />
+          <el-table-column align="center" prop="totalTake" label="总任务数" />
+          <el-table-column align="center" prop="createTime" label="创建时间" />
+          <el-table-column align="center" label="操作" width="220">
+            <template #default="scope">
+              <div class="options">
+                <div class="edit" v-if="btnRoles.huoguiguanli.bianji==1" @click="editClick(scope.row)">编辑</div>
+                <el-popconfirm
+                  v-if="btnRoles.huoguiguanli.shanchu==1"
+                  width="220"
+                  confirm-button-text="确认"
+                  cancel-button-text="取消"
+                  :icon="InfoFilled"
+                  icon-color="#f89626"
+                  title="是否删除?"
+                  @confirm="del(scope.row)"
+                  @cancel="cancelEvent"
+                >
+                  <template #reference>
+                    <div class="del">删除</div>
+                  </template>
+                </el-popconfirm>
+              </div>
+            </template>
+          </el-table-column>
+        </el-table>
+
+        <!-- 新增货柜 -->
+        <el-dialog
+          class="account"
+          v-model="accountVisible"
+          :close-on-click-modal="false"
+          :close-on-press-escape="false"
+          :title="accountTitle"
+          align-center
+          width="600"
+          :before-close="cancelAccount"
+        >
+          <el-form
+            ref="accountRef"
+            :model="accountRuleForm"
+            :rules="accountRules"
+            class="demo-ruleForm"
+            label-width="80px"
+            :size="formSize"
+            label-position="right"
+            status-icon
+          >
+            <el-form-item label="货柜名称" prop="containerName">
+              <el-input
+                v-model="accountRuleForm.containerName"
+                placeholder="请输入货柜名称"
+                clearable
+              />
+            </el-form-item>
+            <!-- <span class="resetPassword"
+              >注:建设单位时用户名可填写单位名称</span
+            > -->
+            <el-form-item label="编号" prop="code">
+              <el-input
+                v-model="accountRuleForm.code"
+                placeholder="请输入编号"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="总容量" prop="totalCapacity">
+              <el-input
+                v-model="accountRuleForm.totalCapacity"
+                placeholder="请输入总容量"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="占用" prop="occupy">
+              <el-input
+                v-model="accountRuleForm.occupy"
+                placeholder="请输入占用数量"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="空闲" prop="free">
+              <el-input
+                v-model="accountRuleForm.free"
+                placeholder="请输入空闲数量"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="经度" prop="longitude">
+              <el-input
+                v-model="accountRuleForm.longitude"
+                placeholder="请输入经度"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="纬度" prop="latitude">
+              <el-input
+                v-model="accountRuleForm.latitude"
+                placeholder="请输入纬度"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="位置" prop="location">
+              <el-input
+                v-model="accountRuleForm.location"
+                placeholder="请输入位置"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item label="总任务数" prop="totalTake">
+              <el-input
+                v-model="accountRuleForm.totalTake"
+                placeholder="请输入总任务数"
+                clearable
+              />
+            </el-form-item>
+            <el-form-item class="options">
+              <el-button
+                class="queding"
+                type="primary"
+                @click="confirmAccount(accountRef)"
+              >
+                &nbsp;&nbsp;确认&nbsp;&nbsp;
+              </el-button>
+              <el-button class="quxiao" @click="cancelAccount"
+                >&nbsp;&nbsp;取消&nbsp;&nbsp;</el-button
+              >
+            </el-form-item>
+          </el-form>
+        </el-dialog>
+      </div>
+
+      <!-- 分页组件 -->
+      <el-pagination
+        background
+        v-model:current-page="currentPage"
+        v-model:page-size="pageSize"
+        :page-sizes="[20, 30, 40 ,50]"
+        layout="total,sizes, prev, pager, next, jumper, slot"
+        :total="total"
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+      />
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { ref, reactive, nextTick, onBeforeMount, onUnmounted } from "vue";
+import { useRouter } from "vue-router";
+import { ElMessage, ElMessageBox } from "element-plus";
+import { Calendar } from "@element-plus/icons-vue";
+import { dayjs } from "element-plus";
+import lodash, { reduce } from "lodash";
+import axios from "axios";
+import { useStore } from "vuex";
+const store = useStore();
+const router = useRouter();
+
+const roleId = ref(); // 判断账号的角色权限
+const btnRoles=ref()
+
+const loading = ref(false);
+const tableData = reactive({
+  list: [],
+});
+
+const searchInput = reactive({
+  keyWord: "", // 账号
+  sort: "1", // 用户名
+}); // 搜索按钮数据
+const currentPage = ref(1); // 当前页
+const pageSize = ref(20);
+const total = ref(40); // 当前总数
+const api = ref("");
+
+// 新增货柜 (--------------------------------------------------------)
+const accountVisible = ref(false);
+const accountTitle = ref();
+const accountRef = ref();
+
+const accountRuleForm = reactive({
+  containerName: "", //货柜名称
+  code: "", //编号
+  totalCapacity: "", //总容量
+  occupy: "", //占用
+  free: "", //空闲
+  longitude: "", //经度
+  latitude: "", //纬度
+  location: "", //位置
+  totalTake: "", //总任务数
+  id: "",
+});
+// 新增账号表单验证
+const accountRules = reactive({
+  containerName: [
+    { required: true, message: "货柜名称不能为空", trigger: "blur" },
+  ],
+  code: [{ required: true, message: "编号不能为空", trigger: "blur" }],
+  totalCapacity: [
+    { required: true, message: "总容量不能为空", trigger: "blur" },
+  ],
+  occupy: [{ required: true, message: "占用数量不能为空", trigger: "blur" }],
+  free: [{ required: true, message: "空闲数量不能为空", trigger: "blur" }],
+  longitude: [{ required: true, message: "经度不能为空", trigger: "blur" }],
+  latitude: [{ required: true, message: "纬度不能为空", trigger: "blur" }],
+  location: [{ required: true, message: "位置不能为空", trigger: "blur" }],
+  totalTake: [{ required: true, message: "总任务数不能为空", trigger: "blur" }],
+});
+
+// 详情弹窗 (--------------------------------------------------------)
+const infoVisible = ref(false);
+
+// 获取货柜列表
+const getList = async () => {
+  loading.value = true;
+  let data = {
+    currentPage: currentPage.value, // 当前页
+    pageCount: pageSize.value, // 一页数据条数
+    keyWord: searchInput.keyWord, //账号
+    sort: searchInput.sort, //用户名
+  };
+  let res = await axios({
+    method: "get",
+    url: api.value + "/drone-container/listContainer",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+    params: data,
+  });
+  console.log(res, "货柜列表");
+  if (res.data.code == 200) {
+    tableData.list = res.data.data.list;
+    total.value = res.data.data.totalCount;
+    loading.value = false;
+  } else {
+    loading.value = false;
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+
+// 搜索功能
+const searchBtn = lodash.debounce(async () => {
+  getList();
+}, 300);
+
+//删除按钮 (----------------------------------------------)
+const del = async (row) => {
+  // console.log(row);
+  let data = {
+    containerId: row.id,
+  };
+  let res = await axios({
+    method: "get",
+    url: api.value + "/drone-container/deleteContainer",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+    params: data,
+  });
+  if (res.data.code == 200) {
+    if (tableData.list.length == 1 && currentPage.value != 1) {
+      currentPage.value = currentPage.value - 1;
+    }
+    getList();
+    ElMessage({
+      type: "success",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+// 取消删除
+const cancelEvent = () => {
+  // ElMessage({
+  //   type: "info",
+  //   showClose: true,
+  //   message: "取消删除",
+  //   center: true,
+  // });
+};
+
+// 新增账号 (-----------------------------------------)
+const addAccountbtn = () => {
+  accountVisible.value = true;
+  accountTitle.value = "新增";
+  accountRuleForm.containerName = ""; //货柜名称
+  accountRuleForm.code = ""; //编号
+  accountRuleForm.totalCapacity = ""; //总容量
+  accountRuleForm.occupy = ""; //占用
+  accountRuleForm.free = ""; //空闲
+  accountRuleForm.longitude = ""; //经度
+  accountRuleForm.latitude = ""; //纬度
+  accountRuleForm.location = ""; //位置
+  accountRuleForm.totalTake = ""; //总任务数
+  accountRuleForm.id = "";
+};
+const confirmAccount = (formEl) => {
+  if (!formEl) return;
+  formEl.validate(async (valid, fields) => {
+    if (valid) {
+      let data = {
+        containerName: accountRuleForm.containerName, //货柜名称
+        code: accountRuleForm.code, //编号
+        totalCapacity: accountRuleForm.totalCapacity, //总容量
+        occupy: accountRuleForm.occupy, //占用
+        free: accountRuleForm.free, //空闲
+        longitude: accountRuleForm.longitude, //经度
+        latitude: accountRuleForm.latitude, //纬度
+        location: accountRuleForm.location, //位置
+        totalTake: accountRuleForm.totalTake, //总任务数
+      };
+      let res = "";
+      // 判断是否有id存在,有则是修改账号
+      if (accountRuleForm.id) {
+        data.id = accountRuleForm.id;
+        res = await axios({
+          method: "post",
+          url: api.value + "/drone-container/updateContainer",
+          headers: {
+            token: sessionStorage.getItem("token"),
+            user_head: sessionStorage.getItem("userhead"),
+          },
+          data: data,
+        });
+      } else {
+        res = await axios({
+          method: "post",
+          url: api.value + "/drone-container/saveContainer",
+          headers: {
+            token: sessionStorage.getItem("token"),
+            user_head: sessionStorage.getItem("userhead"),
+          },
+          data: data,
+        });
+      }
+      console.log(data, "添加账号参数");
+      console.log(res, "新增账号数据");
+      if (res.data.code == 200) {
+        accountVisible.value = false;
+        getList();
+        accountRef.value.resetFields();
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+      } else {
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+      }
+    }
+  });
+};
+const cancelAccount = () => {
+  accountRef.value.resetFields();
+  accountVisible.value = false;
+};
+// 修改账号
+const editClick = (row) => {
+  accountVisible.value = true;
+  accountTitle.value = "修改";
+  accountRuleForm.containerName = row.containerName; //货柜名称
+  accountRuleForm.code = row.code; //编号
+  accountRuleForm.totalCapacity = row.totalCapacity; //总容量
+  accountRuleForm.occupy = row.occupy; //占用
+  accountRuleForm.free = row.free; //空闲
+  accountRuleForm.longitude = row.longitude; //经度
+  accountRuleForm.latitude = row.latitude; //纬度
+  accountRuleForm.location = row.location; //位置
+  accountRuleForm.totalTake = row.totalTake; //总任务数
+  accountRuleForm.id = row.id;
+};
+
+// 重置密码 (------------------------------------------------)
+const resetClick = async (row) => {
+  let data = {
+    id: row.id,
+  };
+  let res = await axios({
+    method: "get",
+    url: api.value + "/login/resetPassword",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+    params: data,
+  });
+  console.log(res, "账号信息");
+  if (res.data.code == 200) {
+    ElMessage({
+      type: "success",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+
+// 详情弹窗
+const infoClick = () => {
+  infoVisible.value = true;
+};
+const cancelInfo = () => {
+  infoVisible.value = false;
+};
+
+// 多选框功能
+const handleSelectionChange = (val) => {
+  console.log(val);
+  selectData.list = val;
+};
+
+// 表格斑马纹颜色修改
+const tableRowClassName = ({ row, rowIndex }) => {
+  if (rowIndex % 2 === 0) {
+    return "even";
+  } else if (rowIndex % 2 !== 0) {
+    return "odd";
+  }
+  return "";
+};
+// 每页显示条数
+const handleSizeChange = (value) => {
+  console.log(value, "每页显示条数");
+  pageSize.value = value;
+  getList();
+};
+// 分页
+const handleCurrentChange = (value) => {
+  console.log(value, "分页");
+  currentPage.value = value;
+  getList();
+};
+
+onBeforeMount(async () => {
+  api.value = store.state.user.api;
+  btnRoles.value=JSON.parse(sessionStorage.getItem('btnRoles'))
+  console.log(btnRoles.value);
+  getList();
+});
+onUnmounted(() => {
+  // document.removeEventListener("keyup", Enters);
+});
+</script>
+
+<style scoped lang="scss">
+.content-box {
+  min-width: 1000px;
+  width: calc(100vw - 260px);
+  height: calc(100vh - 105px);
+  margin: 20px auto;
+  background-color: #fff;
+  color: #fff;
+  display: flex;
+  flex-direction: column;
+  box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
+
+  .left {
+    // width: calc(100wh - 40px);
+    display: flex;
+    align-items: center;
+    height: 60px;
+    margin: 0 30px;
+    border-bottom: 1px solid #ccc;
+    color: #000;
+    font-size: 18px;
+    font-weight: 600;
+
+    .cameratxt {
+      display: block;
+      height: 60px;
+      line-height: 60px;
+    }
+  }
+  .middle {
+    width: 96%;
+    margin: 0 auto;
+
+    color: #000;
+
+    // border-bottom: 1px solid rgb(231, 231, 231);
+    .filter {
+      display: flex;
+      flex-wrap: wrap;
+      align-items: center;
+      margin: 10px 0 0 0;
+
+      .search {
+        margin-left: 0 !important;
+        color: #fff;
+        background: linear-gradient(
+          90deg,
+          rgba(33, 107, 255, 1) 0%,
+          rgba(102, 182, 255, 1) 100%
+        );
+        border: none;
+      }
+
+      .reset {
+        border: 1px solid rgba(38, 151, 255, 1);
+        color: rgba(38, 151, 255, 1);
+      }
+
+      .condition {
+        display: flex;
+        align-items: center;
+        margin: 10px 30px 10px 0;
+
+        :deep(.el-input .el-input__inner) {
+          font-size: 14px;
+        }
+
+        span {
+          margin: 0 10px 0 0;
+        }
+      }
+    }
+
+    .gongneng {
+      margin: 10px 0;
+
+      .el-button {
+        color: #fff;
+        border: none;
+      }
+      .add {
+        background: linear-gradient(
+          90deg,
+          rgba(33, 107, 255, 1) 0%,
+          rgba(102, 182, 255, 1) 100%
+        );
+      }
+    }
+  }
+  .scroll {
+    flex: 1;
+    overflow: auto;
+  }
+  .footer {
+    width: 96%;
+    height: calc(100% - 82px);
+    margin: 10px auto 10px;
+
+    .el-table--fit {
+      height: 100%;
+      :deep(.el-table__header-wrapper) {
+        background-color: #000;
+        font-size: 14px;
+        color: #000;
+
+        .cell {
+          color: #000;
+        }
+      }
+
+      :deep(.el-table__row) {
+        height: 50px;
+        font-size: 14px;
+        color: #000;
+      }
+
+      :deep(.el-table__row td) {
+        padding: 0;
+        border: 0;
+      }
+
+      .el-button--primary {
+        margin-left: 5px;
+      }
+
+      :deep(.el-table__body .even) {
+        background-color: #fff;
+      }
+
+      :deep(.el-table__body .odd) {
+        background-color: rgba(240, 243, 247, 1);
+      }
+
+      :deep(.options) {
+        display: flex;
+        justify-content: center;
+        align-items: center;
+
+        .del {
+          color: rgba(212, 48, 48, 1);
+          cursor: pointer;
+        }
+        .edit {
+          color: rgba(0, 149, 255, 1);
+          cursor: pointer;
+          padding: 0 8px;
+        }
+        .reset {
+          color: rgba(0, 149, 255, 1);
+          cursor: pointer;
+        }
+      }
+    }
+
+    // 新增账号样式
+    :deep(.account) {
+      // height: 300px;
+      border-radius: 11px;
+
+      .el-dialog__header {
+        border-radius: 11px 11px 0 0;
+        background: rgba(237, 241, 245, 1);
+        font-weight: 600;
+        margin: 0;
+        height: 32px;
+
+        .el-dialog__headerbtn {
+          outline: none;
+        }
+      }
+
+      .el-dialog__body {
+        padding: 30px 30px 0 30px;
+        .el-form {
+          .formLi {
+            width: 100%;
+            margin-bottom: 5px;
+            display: flex;
+            .el-form-item {
+              .el-input {
+                width: 120px;
+              }
+              &:nth-child(2) {
+                .el-form-item__label {
+                  display: none;
+                }
+                .el-form-item__content {
+                  margin-left: 10px !important;
+                }
+              }
+              &:nth-child(3) {
+                .el-form-item__label {
+                  display: none;
+                }
+                .el-form-item__content {
+                  margin-left: 10px !important;
+                }
+              }
+            }
+          }
+          .resetPassword {
+            color: rgba(43, 151, 252, 1);
+            padding-left: 40px;
+            display: inline-block;
+            margin-bottom: 15px;
+          }
+          .options {
+            margin: 60px 0 40px 0;
+            .el-form-item__content {
+              display: flex;
+              flex-direction: row-reverse;
+              .queding {
+                margin-left: 20px;
+                background: linear-gradient(
+                  90deg,
+                  rgba(38, 151, 255, 1) 0%,
+                  rgba(102, 181, 255, 1) 100%
+                );
+                border: none;
+              }
+              .quxiao {
+                border: 1px solid rgba(43, 151, 252, 1);
+                color: rgba(43, 151, 252, 1);
+              }
+            }
+          }
+        }
+      }
+    }
+    // 详情样式
+    :deep(.info) {
+      // height: 500px;
+      border-radius: 11px;
+
+      .el-dialog__header {
+        border-radius: 11px 11px 0 0;
+        background: rgba(237, 241, 245, 1);
+        font-weight: 600;
+        margin: 0;
+        height: 32px;
+
+        .el-dialog__headerbtn {
+          outline: none;
+        }
+      }
+
+      .el-dialog__body {
+        padding: 20px 30px;
+        .download {
+          width: 100%;
+          display: flex;
+          flex-direction: row-reverse;
+          padding: 0 0 0 0;
+          .add {
+            background: linear-gradient(
+              90deg,
+              rgba(38, 151, 255, 1) 0%,
+              rgba(102, 181, 255, 1) 100%
+            );
+            color: #fff;
+          }
+        }
+        .title {
+          font-size: 24px;
+          font-weight: 700;
+          color: #000;
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          padding: 15px 0 0 0;
+        }
+        .date {
+          font-size: 16px;
+          color: rgba(166, 166, 166, 1);
+          padding: 15px 0 20px 0;
+        }
+        .content {
+          color: #000;
+          font-size: 16px;
+          padding: 0 0 30px 0;
+        }
+      }
+    }
+  }
+
+  .el-pagination {
+    width: calc(100vw - 300px);
+    margin: 20px auto;
+    justify-content: flex-end;
+    :deep(.el-pagination__total) {
+      color: #000;
+    }
+
+    :deep(.el-pagination__goto) {
+      color: #000;
+    }
+
+    :deep(.el-pagination__classifier) {
+      color: #000;
+    }
+
+    :deep(.el-input__wrapper) {
+      // border: 1px solid rgba(0, 0, 0, 1);
+      // border-radius: 5px;
+      // box-shadow: none;
+      width: 100px;
+    }
+
+    :deep(.el-pager li) {
+      margin: 0 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+
+    :deep(.el-pager li.is-active) {
+      // background-color: rgba(111, 182, 184, 1);
+      color: rgba(0, 149, 255, 1);
+      border: 1px solid rgba(0, 149, 255, 1);
+    }
+
+    :deep(.btn-prev) {
+      margin-right: 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+
+    :deep(.btn-next) {
+      margin-left: 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+  }
+}
+
+.el-input {
+  width: 192px;
+}
+</style>

Файловите разлики са ограничени, защото са твърде много
+ 1501 - 0
src/views/distribution/distribution.vue


Файловите разлики са ограничени, защото са твърде много
+ 1135 - 0
src/views/drone/drone.vue


+ 120 - 0
src/views/error/error.vue

@@ -0,0 +1,120 @@
+<template>
+  <div class="content-box">
+    <div class="noRole">
+      <span>无权限访问</span>
+      <img src="../../assets/images/noRole.png" alt="" />
+    </div>
+  </div>
+</template>
+
+<script setup>
+import {
+  ref,
+  reactive,
+  nextTick,
+  onMounted,
+  watch,
+  onBeforeMount,
+  onUnmounted,
+} from "vue";
+import COS from "cos-js-sdk-v5";
+import { useRouter } from "vue-router";
+import { genFileId, ElMessage, ElMessageBox } from "element-plus";
+import { Calendar } from "@element-plus/icons-vue";
+import { dayjs } from "element-plus";
+import lodash, { reduce } from "lodash";
+import axios from "axios";
+import { useStore } from "vuex";
+
+const store = useStore();
+const router = useRouter();
+
+const tableData = reactive({
+  list: [{}],
+});
+
+const searchInput = reactive({
+  name: "", // 项目名称
+  createTime: "", // 创建时间
+}); // 搜索按钮数据
+
+const currentPage = ref(1); // 当前页
+const pageSize = ref(10);
+const total = ref(40); // 当前总数
+const selectData = reactive({
+  list: [],
+}); // 多选框选择的数据
+const api = ref("");
+
+// 获取账户列表
+// const getList = async () => {
+//   loading.value = true;
+//   let data = {
+//     currentPage: currentPage.value, // 当前页
+//     pageCount: pageSize.value, // 一页数据条数
+//     projectName: searchInput.name,
+//     pageType: 1,
+//     permitNum: searchInput.LicenseCode, // 施工许可证编码
+//     projectUnit: searchInput.unit, // 建设单位
+//     projectPurpose: searchInput.purpose, // 项目用途
+//     structureType: searchInput.structureType, // 结构类型
+//     projectType: searchInput.projectType, // 项目类型
+//   };
+
+//   if (searchInput.createTime) {
+//     data.startDate = searchInput.createTime[0];
+//     data.endDate = searchInput.createTime[1];
+//   }
+//   let res = await axios({
+//     method: "get",
+//     url: api.value + "/jgcloudProject/queryPageJgcloudProject",
+//     headers: {
+//       tokenP: sessionStorage.getItem("tokenP"),
+//       user_head: sessionStorage.getItem("userhead"),
+//     },
+//     params: data,
+//   });
+//   console.log(res, "项目分页数据");
+//   if (res.data.code == 200) {
+//     tableData.list = res.data.data.list;
+//     total.value = res.data.data.totalCount;
+//     loading.value = false;
+//   } else {
+//     loading.value = false;
+//     ElMessage({
+//       type: "error",
+//       showClose: true,
+//       message: res.data.message,
+//       center: true,
+//     });
+//   }
+// };
+
+onBeforeMount(() => {
+  api.value = store.state.user.api;
+});
+onUnmounted(() => {
+  // document.removeEventListener("keyup", Enters);
+});
+</script>
+
+<style scoped lang="scss">
+.content-box {
+  width: calc(100vw);
+  height: calc(100vh);
+  background-color: #fff;
+  .noRole {
+    width: 100%;
+    height: 100%;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+  }
+  span {
+    font-size: 28px;
+    font-weight: 800;
+    color: rgb(191, 212, 250);
+  }
+}
+</style>

+ 418 - 0
src/views/login/index.vue

@@ -0,0 +1,418 @@
+<template>
+  <div class="box">
+    <div class="title">
+      <img class="logo" src="../../assets/images/logo1.png" alt="" />
+      <div class="txtLogo">
+        <span>欢迎登录</span>
+        <span>自动全流程低空物流信息管控系统</span>
+      </div>
+    </div>
+    <div class="loginBg">
+      <div class="left">
+        <div class="loginForm">
+          <div class="denglu">
+            <p>登录系统</p>
+          </div>
+          <div class="system">
+            <span>自动全流程低空</span>
+            <span>物流信息管控系统</span>
+          </div>
+          <el-form
+            ref="ruleFormRef"
+            :model="ruleForm"
+            status-icon
+            :rules="rules"
+            label-width="120px"
+            class="demo-ruleForm"
+          >
+            <el-form-item label="" prop="user">
+              <el-input
+                name="user"
+                :prefix-icon="User"
+                v-model="ruleForm.user"
+                placeholder="请输入登录名"
+                autocomplete="off"
+              />
+            </el-form-item>
+            <el-form-item label="" prop="pass">
+              <el-input
+                name="password"
+                :prefix-icon="Lock"
+                show-password
+                v-model="ruleForm.pass"
+                type="password"
+                autocomplete="off"
+                placeholder="请输入登录密码"
+              />
+            </el-form-item>
+            <!-- <el-checkbox
+              name="checked"
+              v-model="checked"
+              class="remeberPwd el-form-item"
+              >记住密码</el-checkbox
+            > -->
+            <el-form-item class="options">
+              <el-button
+                :loading="loading"
+                type="primary"
+                color="rgba(59, 140, 241, 1)"
+                @click="submitForm(ruleFormRef)"
+                >登录</el-button
+              >
+            </el-form-item>
+          </el-form>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script setup>
+import {
+  ref,
+  watch,
+  reactive,
+  onMounted,
+  onBeforeMount,
+  onUnmounted,
+} from "vue";
+import { User, Lock } from "@element-plus/icons-vue";
+import { useRouter } from "vue-router";
+import { ElMessage } from "element-plus";
+import { JSEncrypt } from "jsencrypt"; // 加密密码
+import { useStore } from "vuex";
+import axios from "axios";
+import { defineComponent } from "vue";
+// import { Vue3SeamlessScroll } from "vue3-seamless-scroll";
+
+const router = useRouter();
+const api = ref("");
+const roleId = ref();
+const store = useStore();
+
+const list = ref([]);
+const currentPage = ref(1); // 当前页
+const pageSize = ref(10);
+
+// 详情弹窗
+const infoContentVisible = ref(false);
+const infoList = ref();
+
+const loading = ref(false);
+const ruleFormRef = ref();
+const ruleForm = reactive({
+  user: "",
+  pass: "",
+});
+const checked = ref(false); // 记住密码
+
+const rules = reactive({
+  user: [{ required: true, message: "请填写账号", trigger: "blur" }],
+  pass: [{ required: true, message: "请填写密码", trigger: "blur" }],
+});
+
+const submitForm = (formEl) => {
+  if (!formEl) return;
+  formEl.validate(async (valid) => {
+    if (valid) {
+      loading.value = true;
+      let publicKey =
+        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMOcPB06u5yKyQsPjfVWiWgbEIrd14kiXNNihciaVKb6HnkQvq7zpQuZ80WEX94spnUMI3iOAl/GmIvHrpGwcbB4hJbznm+PajiwnUSPuCCXA68YJF640cJKb/8KeM7WVz69OFkIEPHhVxOy4FFF5QWe/kt6zOZ19HmE+ak+5x/QIDAQAB";
+      let encryptor = new JSEncrypt(); // 新建JSEncrypt对象
+      encryptor.setPublicKey(publicKey); // 设置公钥
+      let rsaPassWord = encryptor.encrypt(ruleForm.pass); // 对密码进行加密
+      console.log(rsaPassWord);
+
+      let data = {
+        account: ruleForm.user,
+        password: rsaPassWord,
+      };
+      let res;
+      try {
+        res = await store.dispatch("login", data);
+      } catch (e) {
+        console.log(e);
+      }
+      console.log(res);
+      if (res == "success") {
+        loading.value = false;
+        // if (checked.value == true) {
+        //   sessionStorage.setItem("user", ruleForm.user);
+        //   sessionStorage.setItem("pass", ruleForm.pass);
+        // }
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: "登录成功",
+          center: true,
+        });
+      } else {
+        loading.value = false;
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: res.data.data.message,
+          center: true,
+        });
+      }
+    } else {
+      return false;
+    }
+  });
+};
+const Enters = (e) => {
+  // console.log("按键:", e.key);
+  if (e.key == "Enter") {
+    submitForm(ruleFormRef.value);
+  }
+};
+onBeforeMount(() => {
+  api.value = store.state.user.api;
+  if (sessionStorage.getItem("user") && sessionStorage.getItem("pass")) {
+    checked.value = true;
+    ruleForm.user = sessionStorage.getItem("user");
+    ruleForm.pass = sessionStorage.getItem("pass");
+  }
+  roleId.value = sessionStorage.getItem("roleId");
+  document.addEventListener("keyup", Enters);
+});
+onUnmounted(() => {
+  document.removeEventListener("keyup", Enters);
+});
+</script>
+
+<style lang="scss" scoped>
+.box {
+  width: 100%;
+  height: 100vh;
+
+  .title {
+    width: 100%;
+    height: 120px;
+    display: flex;
+    align-items: center;
+    .logo {
+      width: 236px;
+      height: 64px;
+      margin: 0 25px 0 30px;
+    }
+    .txtLogo {
+      border-left: 1.12px solid rgba(20, 105, 248, 1);
+      display: flex;
+      flex-direction: column;
+      padding-left: 17px;
+      span:nth-child(1) {
+        color: rgba(0, 0, 0, 1);
+        font-size: 22px;
+      }
+      span:nth-child(2) {
+        font-size: 15.5px;
+        color: rgba(166, 166, 166, 1);
+      }
+    }
+  }
+  .loginBg {
+    width: 100%;
+    height: calc(100% - 120px);
+    background-image: url("../../assets/images/bg.png");
+    background-position: center; /* 设置背景图片居中 */
+    background-repeat: no-repeat; /* 设置背景图片不重复 */
+    background-size: cover; /* 设置背景图片覆盖整个容器 */
+
+    display: flex;
+    align-items: center;
+
+    .left {
+      // box-shadow: 39px 30px 58px 0px rgba(8, 53, 115, 0.55);
+      width: 526px;
+      // height: 70%;
+      min-height: 600px;
+      margin-left: 163px;
+      border-bottom-left-radius: 22px;
+      border-bottom-right-radius: 22px;
+      border-top: 7px solid rgba(33, 107, 255, 1);
+      background: rgba(239, 246, 255, 1);
+      box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1),
+        0px 18.59px 39.36px rgba(23, 57, 222, 0.25);
+      .loginForm {
+        .denglu {
+          p {
+            color: rgba(2, 17, 43, 1);
+            font-size: 20px;
+            margin: 34px 57px;
+            font-weight: 600;
+          }
+        }
+        .system {
+          display: flex;
+          flex-direction: column;
+          align-items: center;
+          margin-bottom: 40px;
+          span {
+            font-size: 34px;
+            font-weight: 600;
+            letter-spacing: 2px;
+            color: rgb(0, 0, 0);
+          }
+        }
+        .el-form {
+          width: 100%;
+          display: flex;
+          flex-direction: column;
+          align-items: center;
+          .el-form-item {
+            width: 420px;
+            height: 55px;
+            margin-bottom: 32px;
+
+            :deep(.el-form-item__content) {
+              margin-left: 0 !important;
+
+              .el-input {
+                height: 60px;
+
+                .el-input__wrapper {
+                  border-radius: 6px;
+                  // background: rgba(0, 0, 0, 0.1);
+                  .el-input__prefix {
+                    margin: 0 10px 0 12px;
+                    .el-icon {
+                      color: rgba(7, 40, 185, 1);
+                      padding-right: 10px;
+                      border-right: 2px solid rgba(7, 40, 185, 0.5);
+                    }
+                  }
+                }
+
+                .el-icon {
+                  width: 24px;
+                  height: 24px;
+                  svg {
+                    width: 24px;
+                    height: 24px;
+                  }
+                }
+                .el-input__inner {
+                  height: 100%;
+                  font-size: 24px;
+                }
+              }
+              .el-form-item__error {
+                font-size: 16px;
+                line-height: normal;
+                padding-top: 4px;
+              }
+              .el-button {
+                width: 100%;
+                height: 60px;
+                font-size: 24px;
+              }
+            }
+
+            .el-button--primary {
+              width: 380px;
+            }
+          }
+          .options {
+            margin-top: 30px;
+          }
+          .remeberPwd {
+            height: 30px;
+            margin-bottom: 30px;
+            color: #fff;
+            :deep(.el-checkbox__input) {
+              .el-checkbox__inner {
+                width: 18px;
+                height: 18px;
+              }
+              .el-checkbox__inner::after {
+                width: 6px;
+                height: 12px;
+                top: -1px;
+              }
+            }
+            :deep(.el-checkbox__label) {
+              font-size: 18px;
+              color: #fff;
+            }
+          }
+        }
+        .policeNum {
+          color: #fff;
+          white-space: nowrap;
+          transform: translateX(-30px);
+        }
+      }
+    }
+  }
+
+  // 详情
+  :deep(.infoContent) {
+    height: 720px;
+    border-radius: 11px;
+
+    .el-dialog__header {
+      border-radius: 11px 11px 0 0;
+      background: rgba(237, 241, 245, 1);
+      font-weight: 600;
+      margin: 0;
+      height: 32px;
+
+      .el-dialog__headerbtn {
+        outline: none;
+      }
+    }
+
+    .el-dialog__body {
+      padding: 0 30px;
+      color: #000;
+      height: calc(100% - 62px);
+      .content {
+        height: calc(100% - 30px);
+        overflow: auto;
+
+        h2 {
+          text-align: center;
+          margin: 20px auto;
+          width: 500px;
+          color: #000;
+          font-size: 26px;
+          white-space: nowrap;
+          text-overflow: ellipsis;
+          overflow: hidden;
+        }
+        .time {
+          font-size: 16px;
+          padding: 0;
+          margin: 0;
+        }
+        .info {
+          img {
+            max-width: 100%;
+          }
+        }
+        .upload {
+          .title {
+            padding: 10px 200px 10px 0;
+            border-top: 1px solid #000;
+          }
+          ul {
+            list-style: none;
+            li {
+              .name {
+                margin-right: 20px;
+              }
+              .download {
+                a {
+                  color: rgb(0, 149, 255);
+                  cursor: pointer;
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+}
+</style>

Файловите разлики са ограничени, защото са твърде много
+ 1334 - 0
src/views/message/message copy.vue


Файловите разлики са ограничени, защото са твърде много
+ 1343 - 0
src/views/message/message.vue


Файловите разлики са ограничени, защото са твърде много
+ 2398 - 0
src/views/monitoring/monitoring copy.vue


Файловите разлики са ограничени, защото са твърде много
+ 2482 - 0
src/views/monitoring/monitoring copy1.vue


Файловите разлики са ограничени, защото са твърде много
+ 2482 - 0
src/views/monitoring/monitoring.vue


Файловите разлики са ограничени, защото са твърде много
+ 921 - 0
src/views/parking/parking.vue


Файловите разлики са ограничени, защото са твърде много
+ 1960 - 0
src/views/routeMission/routeMission.vue


Файловите разлики са ограничени, защото са твърде много
+ 1100 - 0
src/views/station/station.vue


+ 312 - 0
src/views/system/system.vue

@@ -0,0 +1,312 @@
+<template>
+  <div class="content-box">
+    <div class="left">
+      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
+      <span class="cameratxt">系统管理</span>
+    </div>
+    <div class="scroll">
+      <div class="item">
+        <span>航线状态</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="droneCourse"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          droneCourse
+        }}</span>
+        <span
+          >分钟后自动由“已送达”变为“返航中”(当值为0时则不会自动变更状态)</span
+        >
+      </div>
+      <!-- <div class="item">
+        <span>gps</span>
+        <el-input
+          v-if="!editShow"
+          v-model="hour"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px;font-size: 18px;">{{ hour }}</span>
+        <span>向商业系统传输一次</span>
+      </div> -->
+      <div class="item">
+        <span>偏离预定航线</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="airRoute"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          airRoute
+        }}</span>
+        <span>米预警提示</span>
+      </div>
+      <div class="item">
+        <span>无人机飞行高度低于</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="low"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          low
+        }}</span>
+        <span>米或超出</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="tall"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          tall
+        }}</span>
+        <span>米预警提示</span>
+      </div>
+      <div class="item">
+        <span>根据下单时间超过</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="timeOut"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          timeOut
+        }}</span>
+        <span>分钟预警提示</span>
+      </div>
+      <div class="item">
+        <span>电池电量至</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="electric"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          electric
+        }}</span>
+        <span>(%)预警提示</span>
+      </div>
+      <div class="item">
+        <span>无人机超过</span>
+        <el-input
+          v-if="!editShow"
+          v-model.trim="ununited"
+          placeholder="请输入数字"
+          :clearable="false"
+          style="width: 120px; margin: 0 15px"
+          @change="hourChange"
+        />
+        <span v-else style="width: 120px; margin: 0 15px; font-size: 18px">{{
+          ununited
+        }}</span>
+        <span>分钟未连接上,预警提示</span>
+      </div>
+      <div class="item" v-if="btnRoles.xitongguanli.xiugai==1">
+        <el-button
+          style="margin-right: 20px"
+          v-if="editShow"
+          type="primary"
+          @click="editClick"
+          >修改</el-button
+        >
+        <el-button
+          style="margin-right: 20px"
+          v-if="!editShow"
+          type="primary"
+          @click="saveClick"
+          >保存</el-button
+        >
+        <el-button
+          style="margin: 0 20px 0 0"
+          v-if="!editShow"
+          type="primary"
+          @click="cancelClick"
+          >取消</el-button
+        >
+      </div>
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { ref, reactive, nextTick, onBeforeMount, onUnmounted } from "vue";
+import { useRouter } from "vue-router";
+import { ElMessage, ElMessageBox } from "element-plus";
+import { Calendar } from "@element-plus/icons-vue";
+import { dayjs } from "element-plus";
+import lodash, { reduce } from "lodash";
+import axios from "axios";
+import { useStore } from "vuex";
+const store = useStore();
+const router = useRouter();
+
+const btnRoles = ref();
+const api = ref("");
+const droneCourse = ref(0); // 航线状态
+// const gps = ref(0); // gps
+const airRoute = ref(0); // 偏离预定航线
+const low = ref(0); // 无人机飞行高度低于
+const tall = ref(0); // 超出?米预警提示
+const timeOut = ref(0); // 根据下单时间超过
+const electric = ref(0); // 电池电量至
+const ununited = ref(0); // 无人机超过?分钟未连接
+const hourId = ref(0);
+
+const editShow = ref(true);
+
+// 获取账户列表
+const getList = async () => {
+  let res = await axios({
+    method: "get",
+    url: api.value + "/drone-system-setting/listSetting",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+  });
+  console.log(res, "系统配置");
+  if (res.data.code == 200) {
+    droneCourse.value = res.data.data.droneCourse;
+    airRoute.value = res.data.data.airRoute;
+    low.value = res.data.data.low;
+    tall.value = res.data.data.tall;
+    timeOut.value = res.data.data.timeOut;
+    electric.value = res.data.data.electric;
+    ununited.value = res.data.data.ununited;
+    hourId.value = res.data.data.id;
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+const hourChange = async (val) => {};
+
+const editClick = () => {
+  editShow.value = false;
+};
+const saveClick = async () => {
+  editShow.value = false;
+  
+  let data = {
+    id: hourId.value, //id
+    droneCourse: droneCourse.value, //航线状态
+    airRoute: airRoute.value, //偏离航线(米)
+    electric: electric.value, //电量
+    tall: tall.value, //高于
+    low: low.value, //低于
+    timeOut: timeOut.value, //超时
+    ununited: ununited.value, //未连接
+  };
+  let res = await axios({
+    method: "post",
+    url: api.value + "/drone-system-setting/saveOrUpdateSetting",
+    headers: {
+      token: sessionStorage.getItem("token"),
+      user_head: sessionStorage.getItem("userhead"),
+    },
+    data: data,
+  });
+  console.log(res, "账号信息");
+  if (res.data.code == 200) {
+    editShow.value = true;
+    ElMessage({
+      type: "success",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+const cancelClick = () => {
+  getList()
+  editShow.value = true;
+};
+
+onBeforeMount(async () => {
+  api.value = store.state.user.api;
+  btnRoles.value = JSON.parse(sessionStorage.getItem("btnRoles"));
+  console.log(btnRoles.value);
+  getList();
+});
+onUnmounted(() => {
+  // document.removeEventListener("keyup", Enters);
+});
+</script>
+
+<style scoped lang="scss">
+.content-box {
+  min-width: 1000px;
+  width: calc(100vw - 260px);
+  height: calc(100vh - 105px);
+  margin: 20px auto;
+  background-color: #fff;
+  color: #fff;
+  display: flex;
+  flex-direction: column;
+  box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
+
+  .left {
+    // width: calc(100wh - 40px);
+    display: flex;
+    align-items: center;
+    height: 60px;
+    margin: 0 30px;
+    border-bottom: 1px solid #ccc;
+    color: #000;
+    font-size: 18px;
+    font-weight: 600;
+
+    .cameratxt {
+      display: block;
+      height: 60px;
+      line-height: 60px;
+    }
+  }
+  .scroll {
+    flex: 1;
+    margin: 20px 30px;
+    overflow: auto;
+    color: #000;
+    .item {
+      height: 35px;
+      margin-bottom: 15px;
+    }
+  }
+}
+
+.el-input {
+  width: 192px;
+}
+</style>

+ 156 - 0
src/views/system/system1.vue

@@ -0,0 +1,156 @@
+<template>
+  <div class="box">
+    <el-input
+      id="searchInputId"
+      class="common_layout"
+      placeholder="输入关键词搜索位置"
+      style="width: 36%"
+      v-model="positionInput"
+      @keyup.enter="searchLocation"
+    />
+    <el-button @click="searchLocation">搜索</el-button>
+
+    <div class="list">
+      <div class="list_item" :title="item.name" v-for="item in addressList" :key="item.id" @click="clickItem(item)">
+        {{ item.name }}
+      </div>
+    </div>
+  </div>
+
+  <div class="gdmap_container">
+    <div id="container" />
+  </div>
+</template>
+
+<script setup>
+import { onMounted, onUnmounted, ref } from "vue"
+import { ElMessage } from "element-plus"
+import AMapLoader from "@amap/amap-jsapi-loader"
+
+const $emit = defineEmits(["change"])
+
+const positionInput = ref("")
+
+let placeSearch
+let map
+
+const addressList = ref([])
+
+onMounted(() => {
+  initMap()
+})
+
+function initMap() {
+  window._AMapSecurityConfig = {
+    securityJsCode: "0d17744f13fff85605b79354540fd67b"
+  }
+  AMapLoader.load({
+    key: "ba26d52282a8ade8c422acfe679b6672",
+    version: "2.0",
+    plugins: ["AMap.AutoComplete", "AMap.PlaceSearch"]
+  }).then((AMap) => {
+    map = new AMap.Map("container", {
+      resizeEnable: true,
+      viewMode: "3D",
+      zoom: 15 // 初始化地图级别
+    })
+
+    const autoOptions = {
+      input: "searchInputId"
+    }
+
+    const auto = new AMap.AutoComplete(autoOptions)
+
+    placeSearch = new AMap.PlaceSearch({
+      pageSize: 20,
+      map: map
+    })
+
+    auto.on("select", select)
+    function select(e) {
+      placeSearch.setCity(e.poi.adcode)
+      placeSearch.search(e.poi.name) //关键字查询查询
+    }
+  })
+}
+
+const searchLocation = () => {
+  // 判断用户是否输入了关键字
+  if (!positionInput.value.trim()) {
+    ElMessage.error("请输入搜索内容!")
+    return
+  }
+
+  // 执行地点搜索,并处理搜索结果
+  placeSearch.search(positionInput.value, (status, result) => {
+    // console.log(status, result)
+    if (status === "complete" && result.info === "OK") {
+      // 如果搜索成功且有搜索结果
+      if (result.poiList.pois.length > 0) {
+        // 取第一个搜索结果,设置地图中心和缩放级别
+        const poi = result.poiList.pois[0]
+        map.setCenter([poi.location.lng, poi.location.lat])
+        map.setZoom(15) //缩放级别
+
+        addressList.value = result.poiList.pois
+        // console.log(addressList.value)
+      } else {
+        ElMessage.error("未找到相关地点!")
+      }
+    } else {
+      ElMessage.error("搜索失败!")
+    }
+  })
+}
+
+const clickItem = (item) => {
+  $emit("change", {
+    address: item.name,
+    lat: item.location.lat,
+    lng: item.location.lng
+  })
+}
+
+onUnmounted(() => {
+  map?.destroy()
+})
+</script>
+
+<style scoped>
+.box {
+  position: relative;
+}
+.list {
+  z-index: 2;
+  position: absolute;
+  top: 32px;
+  left: 0;
+  width: 36%;
+  max-height: 260px;
+  border: 1px solid #eee;
+  overflow-y: auto;
+  background-color: #fff;
+}
+
+.list_item {
+  box-sizing: border-box;
+  line-height: 30px;
+  overflow: hidden;
+  white-space: nowrap;
+  cursor: pointer;
+  text-overflow: ellipsis;
+  border-bottom: 1px solid #ccc;
+}
+.gdmap_container {
+  margin: 10px auto;
+  width: calc(100% - 60px);
+  height: calc(100% - 140px);
+}
+#container {
+  padding: 0px;
+  margin: 0px;
+  border: 1px solid gray;
+  width: 100%;
+  height: 100%;
+}
+</style>

+ 279 - 0
viewer.properties

@@ -0,0 +1,279 @@
+# Copyright 2012 Mozilla Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Main toolbar buttons (tooltips and alt text for images)
+previous.title=上一页
+previous_label=上一页
+next.title=下一页
+next_label=下一页
+
+# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
+page.title=页面
+# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
+# representing the total number of pages in the document.
+of_pages=/ {{pagesCount}}
+# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
+# will be replaced by a number representing the currently visible page,
+# respectively a number representing the total number of pages in the document.
+page_of_pages=({{pageNumber}} / {{pagesCount}})
+
+zoom_out.title=缩小
+zoom_out_label=缩小
+zoom_in.title=放大
+zoom_in_label=放大
+zoom.title=缩放
+presentation_mode.title=切换到演示模式
+presentation_mode_label=演示模式
+open_file.title=打开文件
+open_file_label=打开
+print.title=打印
+print_label=打印
+download.title=下载
+download_label=下载
+bookmark.title=当前在看的内容(复制或在新窗口中打开)
+bookmark_label=当前在看
+
+save.title=保存
+save_label=保存
+bookmark1.title=当前页面(在当前页面查看 URL)
+bookmark1_label=当前页面
+
+# Secondary toolbar and context menu
+tools.title=工具
+tools_label=工具
+first_page.title=转到第一页
+first_page_label=转到第一页
+last_page.title=转到最后一页
+last_page_label=转到最后一页
+page_rotate_cw.title=顺时针旋转
+page_rotate_cw_label=顺时针旋转
+page_rotate_ccw.title=逆时针旋转
+page_rotate_ccw_label=逆时针旋转
+
+cursor_text_select_tool.title=启用文本选择工具
+cursor_text_select_tool_label=文本选择工具
+cursor_hand_tool.title=启用手形工具
+cursor_hand_tool_label=手形工具
+
+scroll_page.title=使用页面滚动
+scroll_page_label=页面滚动
+scroll_vertical.title=使用垂直滚动
+scroll_vertical_label=垂直滚动
+scroll_horizontal.title=使用水平滚动
+scroll_horizontal_label=水平滚动
+scroll_wrapped.title=使用平铺滚动
+scroll_wrapped_label=平铺滚动
+
+spread_none.title=不加入衔接页
+spread_none_label=单页视图
+spread_odd.title=加入衔接页使奇数页作为起始页
+spread_odd_label=双页视图
+spread_even.title=加入衔接页使偶数页作为起始页
+spread_even_label=书籍视图
+
+# Document properties dialog box
+document_properties.title=文档属性…
+document_properties_label=文档属性…
+document_properties_file_name=文件名:
+document_properties_file_size=文件大小:
+# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
+# will be replaced by the PDF file size in kilobytes, respectively in bytes.
+document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
+# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
+# will be replaced by the PDF file size in megabytes, respectively in bytes.
+document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
+document_properties_title=标题:
+document_properties_author=作者:
+document_properties_subject=主题:
+document_properties_keywords=关键词:
+document_properties_creation_date=创建日期:
+document_properties_modification_date=修改日期:
+# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
+# will be replaced by the creation/modification date, and time, of the PDF file.
+document_properties_date_string={{date}}, {{time}}
+document_properties_creator=创建者:
+document_properties_producer=PDF 生成器:
+document_properties_version=PDF 版本:
+document_properties_page_count=页数:
+document_properties_page_size=页面大小:
+document_properties_page_size_unit_inches=英寸
+document_properties_page_size_unit_millimeters=毫米
+document_properties_page_size_orientation_portrait=纵向
+document_properties_page_size_orientation_landscape=横向
+document_properties_page_size_name_a3=A3
+document_properties_page_size_name_a4=A4
+document_properties_page_size_name_letter=文本
+document_properties_page_size_name_legal=法律
+# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
+# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
+# the size, respectively their unit of measurement and orientation, of the (current) page.
+document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}})
+# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
+# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
+# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
+document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}})
+# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
+# the document; usually called "Fast Web View" in English locales of Adobe software.
+document_properties_linearized=快速 Web 视图:
+document_properties_linearized_yes=是
+document_properties_linearized_no=否
+document_properties_close=关闭
+
+print_progress_message=正在准备打印文档…
+# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
+# a numerical per cent value.
+print_progress_percent={{progress}}%
+print_progress_close=取消
+
+# Tooltips and alt text for side panel toolbar buttons
+# (the _label strings are alt text for the buttons, the .title strings are
+# tooltips)
+toggle_sidebar.title=切换侧栏
+toggle_sidebar_notification2.title=切换侧栏(文档所含的大纲/附件/图层)
+toggle_sidebar_label=切换侧栏
+document_outline.title=显示文档大纲(双击展开/折叠所有项)
+document_outline_label=文档大纲
+attachments.title=显示附件
+attachments_label=附件
+layers.title=显示图层(双击即可将所有图层重置为默认状态)
+layers_label=图层
+thumbs.title=显示缩略图
+thumbs_label=缩略图
+current_outline_item.title=查找当前大纲项目
+current_outline_item_label=当前大纲项目
+findbar.title=在文档中查找
+findbar_label=查找
+
+additional_layers=其他图层
+# LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
+page_landmark=第 {{page}} 页
+# Thumbnails panel item (tooltip and alt text for images)
+# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
+# number.
+thumb_page_title=第 {{page}} 页
+# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
+# number.
+thumb_page_canvas=页面 {{page}} 的缩略图
+
+# Find panel button title and messages
+find_input.title=查找
+find_input.placeholder=在文档中查找…
+find_previous.title=查找词语上一次出现的位置
+find_previous_label=上一页
+find_next.title=查找词语后一次出现的位置
+find_next_label=下一页
+find_highlight=全部高亮显示
+find_match_case_label=区分大小写
+find_match_diacritics_label=匹配变音符号
+find_entire_word_label=全词匹配
+find_reached_top=到达文档开头,从末尾继续
+find_reached_bottom=到达文档末尾,从开头继续
+# LOCALIZATION NOTE (find_match_count): The supported plural forms are
+# [one|two|few|many|other], with [other] as the default value.
+# "{{current}}" and "{{total}}" will be replaced by a number representing the
+# index of the currently active find result, respectively a number representing
+# the total number of matches in the document.
+find_match_count={[ plural(total) ]}
+find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项
+find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项
+# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
+# [zero|one|two|few|many|other], with [other] as the default value.
+# "{{limit}}" will be replaced by a numerical value.
+find_match_count_limit={[ plural(limit) ]}
+find_match_count_limit[zero]=超过 {{limit}} 项匹配
+find_match_count_limit[one]=超过 {{limit}} 项匹配
+find_match_count_limit[two]=超过 {{limit}} 项匹配
+find_match_count_limit[few]=超过 {{limit}} 项匹配
+find_match_count_limit[many]=超过 {{limit}} 项匹配
+find_match_count_limit[other]=超过 {{limit}} 项匹配
+find_not_found=找不到指定词语
+
+# Error panel labels
+error_more_info=更多信息
+error_less_info=更少信息
+error_close=关闭
+# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
+# replaced by the PDF.JS version and build ID.
+error_version_info=PDF.js v{{version}} (build: {{build}})
+# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
+# english string describing the error.
+error_message=信息:{{message}}
+# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
+# trace.
+error_stack=堆栈:{{stack}}
+# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
+error_file=文件:{{file}}
+# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
+error_line=行号:{{line}}
+
+# Predefined zoom values
+page_scale_width=适合页宽
+page_scale_fit=适合页面
+page_scale_auto=自动缩放
+page_scale_actual=实际大小
+# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
+# numerical scale value.
+page_scale_percent={{scale}}%
+
+# Loading indicator messages
+loading=正在加载…
+
+# Loading indicator messages
+loading_error=加载 PDF 时发生错误。
+invalid_file_error=无效或损坏的 PDF 文件。
+missing_file_error=缺少 PDF 文件。
+unexpected_response_error=意外的服务器响应。
+
+rendering_error=渲染页面时发生错误。
+
+# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
+# replaced by the modification date, and time, of the annotation.
+annotation_date_string={{date}},{{time}}
+
+# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
+# "{{type}}" will be replaced with an annotation type from a list defined in
+# the PDF spec (32000-1:2008 Table 169 – Annotation types).
+# Some common types are e.g.: "Check", "Text", "Comment", "Note"
+text_annotation_type.alt=[{{type}} 注释]
+password_label=输入密码以打开此 PDF 文件。
+password_invalid=密码无效。请重试。
+password_ok=确定
+password_cancel=取消
+
+printing_not_supported=警告:此浏览器尚未完整支持打印功能。
+printing_not_ready=警告:此 PDF 未完成加载,无法打印。
+web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 PDF 字体。
+
+# Editor
+editor_free_text2.title=文本
+editor_free_text2_label=文本
+editor_ink2.title=绘图
+editor_ink2_label=绘图
+
+free_text2_default_content=开始输入…
+
+# Editor Parameters
+editor_free_text_color=颜色
+editor_free_text_size=字号
+editor_ink_color=颜色
+editor_ink_thickness=粗细
+editor_ink_opacity=不透明度
+
+# Editor aria
+editor_free_text2_aria_label=文本编辑器
+editor_ink2_aria_label=绘图编辑器
+editor_ink_canvas_aria_label=用户创建图像

+ 0 - 0
vite.config.js


Някои файлове не бяха показани, защото твърде много файлове са промени