xiaoxin преди 2 месеца
ревизия
59367588b3
променени са 75 файла, в които са добавени 27694 реда и са изтрити 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. 5949 0
      package-lock.json
  10. 50 0
      package.json
  11. 59 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/logo.ico
  18. BIN
      src/assets/images1/achievement.png
  19. BIN
      src/assets/images1/advertising.png
  20. BIN
      src/assets/images1/arrows.png
  21. BIN
      src/assets/images1/bg.png
  22. BIN
      src/assets/images1/btn_left.png
  23. BIN
      src/assets/images1/btn_left2.png
  24. BIN
      src/assets/images1/btn_right.png
  25. BIN
      src/assets/images1/btn_right2.png
  26. BIN
      src/assets/images1/certificate.png
  27. BIN
      src/assets/images1/certificate_frame.png
  28. BIN
      src/assets/images1/footer.png
  29. BIN
      src/assets/images1/footer_app.png
  30. BIN
      src/assets/images1/honor.png
  31. BIN
      src/assets/images1/logo.png
  32. BIN
      src/assets/images1/logo1.png
  33. BIN
      src/assets/images1/logo_buttom.png
  34. BIN
      src/assets/images1/navber_item.png
  35. BIN
      src/assets/images1/news_i.png
  36. BIN
      src/assets/images1/notice.png
  37. BIN
      src/assets/images1/photo.png
  38. BIN
      src/assets/images1/playground.png
  39. BIN
      src/assets/images1/qrCode.png
  40. BIN
      src/assets/images1/rectangle.png
  41. BIN
      src/assets/images1/unit.png
  42. BIN
      src/assets/images2/bg.png
  43. BIN
      src/assets/images2/home.png
  44. BIN
      src/assets/images2/intro.png
  45. BIN
      src/assets/images3/arrows.png
  46. BIN
      src/assets/images3/bg.png
  47. BIN
      src/assets/images4/bg.png
  48. BIN
      src/assets/images4/close.png
  49. BIN
      src/assets/images4/rightArrow.png
  50. BIN
      src/assets/images5/bg.png
  51. BIN
      src/assets/images5/moxuanhu.png
  52. BIN
      src/assets/images6/bg.png
  53. BIN
      src/assets/images6/photo.png
  54. 371 0
      src/components/NavItem.vue
  55. 43 0
      src/components/SvgIcon.vue
  56. 63 0
      src/main.js
  57. 104 0
      src/router/index.js
  58. 5 0
      src/store/getters.js
  59. 22 0
      src/store/index.js
  60. 500 0
      src/store/modules/user.js
  61. 89 0
      src/style.css
  62. 1 0
      src/style/mixin.scss
  63. 74 0
      src/utils/http.js
  64. 23 0
      src/utils/loadMap.js
  65. 47 0
      src/utils/request.js
  66. 22 0
      src/utils/rsa.js
  67. 4285 0
      src/views/home/home copy.vue
  68. 5215 0
      src/views/home/home.vue
  69. 2258 0
      src/views/industry/industry.vue
  70. 2074 0
      src/views/interflow/interflow.vue
  71. 1636 0
      src/views/research/research.vue
  72. 2070 0
      src/views/scientific/scientific.vue
  73. 1624 0
      src/views/studio/studio.vue
  74. 279 0
      viewer.properties
  75. 96 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/logo.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>

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


+ 50 - 0
package.json

@@ -0,0 +1,50 @@
+{
+  "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",
+    "swiper": "^11.2.5",
+    "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"
+  }
+}

+ 59 - 0
src/App.vue

@@ -0,0 +1,59 @@
+<script setup>
+import {
+  ref,
+  reactive,
+  watch,
+  nextTick,
+  onBeforeMount,
+  onUnmounted,
+} from "vue";
+import { useRouter } from "vue-router";
+import { useStore } from "vuex";
+const store = useStore();
+const router = useRouter();
+
+watch(
+  () => router.currentRoute.value.fullPath,
+  (newValue, oldValue) => {
+    console.log(newValue);
+    sessionStorage.setItem("navItem", newValue);
+  }
+);
+
+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 {
+  width: calc(100%);
+  height: calc(100%);
+  margin: 0;
+  padding: 0;
+  text-align: unset;
+}
+// *::-webkit-scrollbar-track {
+//   background-color: #fff;
+// }
+
+// *::-webkit-scrollbar {
+//   background-color: #57b2ff;
+//   height: 0;
+//   width: 15px;
+// }
+
+// *::-webkit-scrollbar-thumb {
+//   background: #57b2ff;
+//   border-radius: 4px;
+//   height: 0;
+//   width: 15px;
+// }
+</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/logo.ico


BIN
src/assets/images1/achievement.png


BIN
src/assets/images1/advertising.png


BIN
src/assets/images1/arrows.png


BIN
src/assets/images1/bg.png


BIN
src/assets/images1/btn_left.png


BIN
src/assets/images1/btn_left2.png


BIN
src/assets/images1/btn_right.png


BIN
src/assets/images1/btn_right2.png


BIN
src/assets/images1/certificate.png


BIN
src/assets/images1/certificate_frame.png


BIN
src/assets/images1/footer.png


BIN
src/assets/images1/footer_app.png


BIN
src/assets/images1/honor.png


BIN
src/assets/images1/logo.png


BIN
src/assets/images1/logo1.png


BIN
src/assets/images1/logo_buttom.png


BIN
src/assets/images1/navber_item.png


BIN
src/assets/images1/news_i.png


BIN
src/assets/images1/notice.png


BIN
src/assets/images1/photo.png


BIN
src/assets/images1/playground.png


BIN
src/assets/images1/qrCode.png


BIN
src/assets/images1/rectangle.png


BIN
src/assets/images1/unit.png


BIN
src/assets/images2/bg.png


BIN
src/assets/images2/home.png


BIN
src/assets/images2/intro.png


BIN
src/assets/images3/arrows.png


BIN
src/assets/images3/bg.png


BIN
src/assets/images4/bg.png


BIN
src/assets/images4/close.png


BIN
src/assets/images4/rightArrow.png


BIN
src/assets/images5/bg.png


BIN
src/assets/images5/moxuanhu.png


BIN
src/assets/images6/bg.png


BIN
src/assets/images6/photo.png


+ 371 - 0
src/components/NavItem.vue

@@ -0,0 +1,371 @@
+<template>
+  <!-- 头部 -->
+  <div class="navber">
+    <img class="logo" src="../assets/images1/logo1.png" alt="" />
+    <div class="items">
+      <span
+        class="i"
+        :class="activeIndex == '/home' ? 'active' : ''"
+        @click="navChange('/home')"
+        >首页</span
+      >
+      <span
+        class="i schoolInfo"
+        :class="
+          activeIndex == '/research' || activeIndex == 'studio' ? 'active' : ''
+        "
+      >
+        <span>学校概况</span>
+        <div class="info">
+          <div class="info_i" @click="navChange('/research')">研究院介绍</div>
+          <div class="info_i" @click="navChange('/studio')">墨轩工作室</div>
+        </div>
+      </span>
+      <span
+        class="i"
+        :class="activeIndex == '/industry' ? 'active' : ''"
+        @click="navChange('/industry')"
+        >行业动态</span
+      >
+      <span
+        class="i"
+        :class="activeIndex == '/interflow' ? 'active' : ''"
+        @click="navChange('/interflow')"
+        >交流合作</span
+      >
+      <span
+        class="i"
+        :class="activeIndex == '/scientific' ? 'active' : ''"
+        @click="navChange('/scientific')"
+        >科学研究</span
+      >
+    </div>
+    <div class="navber_item">
+      <img @click="navOpen" src="../assets/images1/navber_item.png" alt="" />
+    </div>
+  </div>
+</template>
+
+<script setup>
+import {
+  ref,
+  watch,
+  reactive,
+  nextTick,
+  onBeforeMount,
+  onUnmounted,
+  onMounted,
+} from "vue";
+import { useRouter, useRoute } from "vue-router";
+
+const router = useRouter();
+
+const activeIndex = ref("home");
+
+const navShow = ref(false);
+
+const navChange = (i, txt) => {
+  sessionStorage.setItem("navItem", i);
+  activeIndex.value = i;
+  router.push({
+    path: `${i}`,
+  });
+};
+
+const navOpen = () => {
+  navShow.value = true;
+};
+
+watch(
+  () => router.currentRoute.value.fullPath,
+  (newValue, oldValue) => {
+    console.log(newValue);
+    activeIndex.value = newValue;
+    // store.commit("indexUp", data[0]);
+    // activeIndex.value = data[0];
+    // sessionStorage.setItem("navItem", newValue);
+  }
+);
+
+onMounted(() => {});
+
+onBeforeMount(async () => {
+  if (sessionStorage.getItem("navItem")) {
+    activeIndex.value = sessionStorage.getItem("navItem");
+  } else {
+    activeIndex.value = "/home";
+  }
+});
+onUnmounted(() => {});
+</script>
+
+<style scoped lang="scss">
+@media (min-width: 1700px) {
+  .navber {
+    width: calc(100%);
+    height: 102px;
+    opacity: 1;
+    background: linear-gradient(
+      180deg,
+      rgba(90, 142, 186, 1) 0%,
+      rgba(145, 174, 203, 1) 100%
+    );
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    .logo {
+      width: 358px;
+      height: 67px;
+    }
+    .items {
+      font-size: 14px;
+      color: #fff;
+      .i {
+        margin: 0 15px;
+        padding: 15px 0;
+        cursor: pointer;
+        position: relative;
+      }
+      .i:hover {
+        color: rgba(255, 216, 89, 1);
+        &::before {
+          content: "";
+          position: absolute;
+          bottom: 0px; /* 根据需要调整 */
+          left: 0;
+          width: 100%;
+          height: 5px; /* 边框厚度 */
+          background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+          border-radius: 22px; /* 根据需要调整 */
+        }
+      }
+
+      .active {
+        color: rgba(255, 216, 89, 1);
+      }
+      .active::before {
+        content: "";
+        position: absolute;
+        bottom: 0px; /* 根据需要调整 */
+        left: 0;
+        width: 100%;
+        height: 5px; /* 边框厚度 */
+        background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+        border-radius: 22px; /* 根据需要调整 */
+      }
+
+      .schoolInfo:hover {
+        .info {
+          display: block;
+        }
+      }
+      .info {
+        display: none;
+        width: 102px;
+        // height: 90px;
+        position: absolute;
+        top: 49px;
+        left: -20px;
+        color: rgba(51, 51, 51, 1);
+        background: rgba(255, 255, 255, 1);
+        padding: 10px 0;
+        .info_i {
+          width: 100%;
+          height: 35px;
+          line-height: 35px;
+          text-align: center;
+          // padding: 12px 0;
+          &:hover {
+            color: rgba(255, 216, 89, 1);
+          }
+        }
+      }
+    }
+    .navber_item {
+      display: none;
+    }
+  }
+}
+/* 针对600px至900px屏幕的样式 */
+@media (min-width: 500px) and (max-width: 1699px) {
+  .navber {
+    width: calc(100%);
+    height: 102px;
+    opacity: 1;
+    background: linear-gradient(
+      180deg,
+      rgba(90, 142, 186, 1) 0%,
+      rgba(145, 174, 203, 1) 100%
+    );
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    .logo {
+      width: 358px;
+      height: 67px;
+    }
+    .items {
+      font-size: 14px;
+      color: #fff;
+      .i {
+        margin: 0 15px;
+        padding: 15px 0;
+        cursor: pointer;
+        position: relative;
+      }
+      .i:hover {
+        color: rgba(255, 216, 89, 1);
+        &::before {
+          content: "";
+          position: absolute;
+          bottom: 0px; /* 根据需要调整 */
+          left: 0;
+          width: 100%;
+          height: 5px; /* 边框厚度 */
+          background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+          border-radius: 22px; /* 根据需要调整 */
+        }
+      }
+
+      .active {
+        color: rgba(255, 216, 89, 1);
+      }
+      .active::before {
+        content: "";
+        position: absolute;
+        bottom: 0px; /* 根据需要调整 */
+        left: 0;
+        width: 100%;
+        height: 5px; /* 边框厚度 */
+        background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+        border-radius: 22px; /* 根据需要调整 */
+      }
+
+      .schoolInfo:hover {
+        .info {
+          display: block;
+        }
+      }
+      .info {
+        display: none;
+        width: 102px;
+        // height: 90px;
+        position: absolute;
+        top: 49px;
+        left: -20px;
+        color: rgba(51, 51, 51, 1);
+        background: rgba(255, 255, 255, 1);
+        padding: 10px 0;
+        .info_i {
+          width: 100%;
+          height: 35px;
+          line-height: 35px;
+          text-align: center;
+          // padding: 12px 0;
+          &:hover {
+            color: rgba(255, 216, 89, 1);
+          }
+        }
+      }
+    }
+    .navber_item {
+      display: none;
+    }
+  }
+}
+/* 针对小于600px屏幕的样式 */
+@media (max-width: 499px) {
+  .navber {
+    width: calc(100%);
+    height: 45px;
+    opacity: 1;
+    background: linear-gradient(
+      180deg,
+      rgba(90, 142, 186, 1) 0%,
+      rgba(145, 174, 203, 1) 100%
+    );
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    .logo {
+      // width: 35%;
+      height: 65%;
+      margin-left: 10px;
+    }
+    .items {
+      display: none;
+      font-size: 14px;
+      color: #fff;
+      .i {
+        margin: 0 15px;
+        padding: 15px 0;
+        cursor: pointer;
+        position: relative;
+      }
+      .i:hover {
+        color: rgba(255, 216, 89, 1);
+        &::before {
+          content: "";
+          position: absolute;
+          bottom: 0px; /* 根据需要调整 */
+          left: 0;
+          width: 100%;
+          height: 5px; /* 边框厚度 */
+          background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+          border-radius: 22px; /* 根据需要调整 */
+        }
+      }
+
+      .active {
+        color: rgba(255, 216, 89, 1);
+      }
+      .active::before {
+        content: "";
+        position: absolute;
+        bottom: 0px; /* 根据需要调整 */
+        left: 0;
+        width: 100%;
+        height: 5px; /* 边框厚度 */
+        background-color: rgba(255, 216, 89, 1); /* 边框颜色 */
+        border-radius: 22px; /* 根据需要调整 */
+      }
+
+      .schoolInfo:hover {
+        .info {
+          display: block;
+        }
+      }
+      .info {
+        display: none;
+        width: 102px;
+        // height: 90px;
+        position: absolute;
+        top: 49px;
+        left: -20px;
+        color: rgba(51, 51, 51, 1);
+        background: rgba(255, 255, 255, 1);
+        padding: 10px 0;
+        .info_i {
+          width: 100%;
+          height: 35px;
+          line-height: 35px;
+          text-align: center;
+          // padding: 12px 0;
+          &:hover {
+            color: rgba(255, 216, 89, 1);
+          }
+        }
+      }
+    }
+    .navber_item {
+      height: 100%;
+      display: flex;
+      align-items: center;
+      margin-right: 10px;
+      img {
+        height: 50%;
+      }
+    }
+  }
+}
+</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>
+  

+ 63 - 0
src/main.js

@@ -0,0 +1,63 @@
+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;

+ 104 - 0
src/router/index.js

@@ -0,0 +1,104 @@
+import {
+  createRouter,
+  createWebHistory,
+  createWebHashHistory,
+} from "vue-router";
+import store from "@/store";
+import NProgress from "nprogress";
+import "nprogress/nprogress.css";
+import { ElMessage, ElMessageBox } from "element-plus";
+const routes = [
+  {
+    path: "/",
+    redirect: "/home",
+  },
+  {
+    path: "/home",
+    name: "home",
+    component: () => import("@/views/home/home.vue"),
+    meta: { title: "首页", icon: "" },
+  },
+  {
+    path: "/research",
+    name: "research",
+    component: () => import("@/views/research/research.vue"),
+    meta: { title: "研究院", icon: "" },
+  },
+  {
+    path: "/studio",
+    name: "studio",
+    component: () => import("@/views/studio/studio.vue"),
+    meta: { title: "墨轩工作室", icon: "" },
+  },
+  {
+    path: "/industry",
+    name: "industry",
+    component: () => import("@/views/industry/industry.vue"),
+    meta: { title: "行业动态", icon: "" },
+  },
+  {
+    path: "/interflow",
+    name: "interflow",
+    component: () => import("@/views/interflow/interflow.vue"),
+    meta: { title: "交流合作", icon: "" },
+  },
+  {
+    path: "/scientific",
+    name: "scientific",
+    component: () => import("@/views/scientific/scientific.vue"),
+    meta: { title: "科学研究", icon: "" },
+  },
+];
+
+const router = createRouter({
+  // history: createWebHistory("/testingServer/flyshow"), // 发布地址
+  history: createWebHistory("/"), // 发布地址
+  // history: createWebHashHistory("/"), // 发布地址
+  // history: createWebHashHistory("/testingServer/flyshow"), // 发布地址
+  routes: routes,
+});
+
+router.beforeEach(async (to, from, next) => {
+  NProgress.start(); // 进度条开始
+
+  // 让页面回到顶部
+  // chrome
+  document.body.scrollTop = 0;
+
+  // firefox
+  document.documentElement.scrollTop = 0;
+
+  // safari
+  window.pageYOffset = 0;
+  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`);
+  //     }
+  //   }
+  // }
+  next();
+});
+
+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;

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

@@ -0,0 +1,500 @@
+import axios from "axios";
+import router from "@/router";
+import { genFileId, ElMessage, ElMessageBox } from "element-plus";
+
+// 声明变量
+const state = {
+  collapse: false,
+  activeIndex: "", // 记录当前路由
+  messageNum: "", // 未读信息条数
+  username: "",
+  password: "",
+  // api: "/alumnus/gxy/houtai/drone/auto", // 线上
+  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");
+  },
+};
+// 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: {}, // 站点管理
+          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.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

+ 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);
+}
+

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


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


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


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


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


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


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


+ 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=用户创建图像

+ 96 - 0
vite.config.js

@@ -0,0 +1,96 @@
+import { defineConfig } from "vite";
+import vue from "@vitejs/plugin-vue";
+import path from "path";
+import { resolve, join } from "path";
+import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
+// https://vitejs.dev/config/
+export default defineConfig({
+  plugins: [
+    vue(),
+    createSvgIconsPlugin({
+      iconDirs: [path.resolve(process.cwd(), "src/assets/svgIcon")], //指定需要转换的图标文件    夹
+      symbolId: "icon-[dir]-[name]",
+    })
+  ],
+  resolve: {
+    alias: {
+      "@": path.resolve("./src"), // @代替src
+    },
+  },
+  css: {
+    preprocessorOptions: {
+      scss: {
+        additionalData: `@import "./src/style/mixin.scss";`, // 此处全局的scss文件
+      },
+    },
+  },
+  server: {
+    host: "0.0.0.0",
+    port: 8050,
+    // 是否开启 https
+    // https: false,
+    proxy: {
+      // "/houtai/drone/auto": {
+      //   target: "http://172.16.20.78:80/houtai/drone/auto", // 正式环境
+      //   changeOrigin: true,
+      //   rewrite: (path) => path.replace(/^\/houtai\/drone\/auto/, ""),
+      // },
+      // "/alumnus/gxy/houtai/drone/auto": {
+      //   target: "https://chtech.ncjti.edu.cn/alumnus/gxy/houtai/drone/auto", // 正式环境
+      //   changeOrigin: true,
+      //   rewrite: (path) => path.replace(/^\/alumnus\/gxy\/houtai\/drone\/auto/, ""),
+      // },
+
+      '/testingServer/flyshow': {
+        target: 'https://chtech.ncjti.edu.cn/testingServer/flyshow', // 万载高德地图API的实际域名
+        changeOrigin: true,
+        rewrite: (path) => path.replace(/^\/testingServer\/flyshow/, '')
+      },
+
+      // '/drone/auto': {
+      //   target: 'http://192.168.161.190:8080/drone/auto', // 万载高德地图API的实际域名
+      //   changeOrigin: true,
+      //   rewrite: (path) => path.replace(/^\/drone\/auto/, '')
+      // }
+    },
+  },
+  publicDir: "public",
+  base: "./",
+  // 打包配置
+  build: {
+    target: "modules", //设置最终构建的浏览器兼容目标  //es2015(编译成es5) | modules
+    outDir: "dist", // 构建得包名  默认:dist
+    assetsDir: "static", // 静态资源得存放路径文件名  assets
+    sourcemap: false, //构建后是否生成 source map 文件
+    // brotliSize: false, // 启用/禁用 brotli 压缩大小报告。 禁用该功能可能会提高大型项目的构建性能
+    chunkSizeWarningLimit: 1500, //chunk 大小警告的限制(以 kbs 为单位)默认:500
+    // cssTarget: 'chrome61' //防止 vite 将 rgba() 颜色转化为 #RGBA 十六进制符号的形式  (要兼容的场景是安卓微信中的 webview 时,它不支持 CSS 中的 #RGBA 十六进制颜色符号)
+    rollupOptions: {
+      input: {
+        index: resolve(__dirname, "index.html"),
+      },
+      output: {
+        manualChunks(id) {
+          if (id.includes("node_modules")) {
+            return id
+              .toString()
+              .split("node_modules/")[1]
+              .split("/")[0]
+              .toString();
+          }
+        },
+        chunkFileNames: "static/js/[name].[hash].js",
+        entryFileNames: "static/js/[name].[hash].js",
+        assetFileNames: "static/[ext]/name.[hash].[ext]",
+      },
+    },
+    minify: "terser", // 项目压缩 :boolean | 'terser' | 'esbuild'
+    terserOptions: {
+      // 生产环境移除console
+      compress: {
+        drop_console: true,
+        drop_debugger: true,
+      },
+    },
+  },
+});