From 180b06428a2d3aaa8fb1701d2f8438c4b01cfd0e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 26 Nov 2024 20:25:41 +0800
Subject: [PATCH] 作战图添加

---
 public/img/ochart.jpg                   |    0 
 src/pages/first/components/mainMenu.vue |    6 +++++-
 src/views/ochart/index.vue              |   36 ++++++++++++++++++++++++++++++++++++
 src/router/index.js                     |    9 ++++++++-
 4 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/public/img/ochart.jpg b/public/img/ochart.jpg
new file mode 100644
index 0000000..49d8dc3
--- /dev/null
+++ b/public/img/ochart.jpg
Binary files differ
diff --git a/src/pages/first/components/mainMenu.vue b/src/pages/first/components/mainMenu.vue
index b289b1a..c620915 100644
--- a/src/pages/first/components/mainMenu.vue
+++ b/src/pages/first/components/mainMenu.vue
@@ -47,6 +47,10 @@
       menuName: '突发事件模拟',
       path: '/layout/first/pd'
     },
+    {
+      menuName: '作战图',
+      path: '/layout/first/ochart'
+    },
   ]
 )
 
@@ -56,7 +60,7 @@
   if (params.path) {
     if (router.currentRoute.value.path == params.path) return
 
-    if (params.path == '/layout/first/supplies' || params.path == '/layout/first/rt') {
+    if (params.path == '/layout/first/supplies' || params.path == '/layout/first/rt' || params.path == '/layout/first/ochart') {
       store.setLoadSingle(true)
     } else {
       store.setLoadSingle(false)
diff --git a/src/router/index.js b/src/router/index.js
index 8a8d59b..964e37e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-25 16:35:31
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-21 15:44:21
+ * @LastEditTime: 2024-11-26 20:14:39
  * @FilePath: \bigScreen\src\router\index.js
  * @Description: 
  * 
@@ -94,6 +94,13 @@
             },
             component: () => import('@/views/pd/index.vue')
           },
+          {
+            path: 'ochart',
+            meta: {
+              title: '作战图'
+            },
+            component: () => import('@/views/ochart/index.vue')
+          },
         ]
       },
       {
diff --git a/src/views/ochart/index.vue b/src/views/ochart/index.vue
new file mode 100644
index 0000000..0f8b79a
--- /dev/null
+++ b/src/views/ochart/index.vue
@@ -0,0 +1,36 @@
+<!--
+ * @Author: shuishen 1109946754@qq.com
+ * @Date: 2023-03-10 15:27:59
+ * @LastEditors: shuishen 1109946754@qq.com
+ * @LastEditTime: 2024-11-26 20:24:05
+ * @FilePath: \bigScreen\src\views\ochart\index.vue
+ * @Description: 综合设计
+ * 
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
+-->
+<script setup>
+const { VITE_APP_BASE } = import.meta.env
+let image = ref(VITE_APP_BASE + 'img/ochart.jpg')
+</script>
+
+<template>
+  <div class="container page-container">
+    <div class="w100 h100 img-box">
+      <img class="w100" :src="image" alt="">
+    </div>
+  </div>
+</template>
+
+<style lang="scss" scoped>
+.container {
+  position: absolute;
+  width: 100%;
+  height: 100%;
+
+  .img-box {
+    pointer-events: all;
+    overflow: hidden;
+    overflow-y: auto;
+  }
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3