From 6851cc1e217a2af9ae62ebb3bf28e00a0d8ddadb Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 31 Dec 2021 09:06:55 +0800
Subject: [PATCH] +

---
 src/pcviews/arc/teaching.vue |  204 +++++++-------------------------------------------
 1 files changed, 29 insertions(+), 175 deletions(-)

diff --git a/src/pcviews/arc/teaching.vue b/src/pcviews/arc/teaching.vue
index 6ddc52b..d7562b0 100644
--- a/src/pcviews/arc/teaching.vue
+++ b/src/pcviews/arc/teaching.vue
@@ -3,195 +3,49 @@
  * @Name: 教学科研
  * @Date: 2021-11-15 17:14:47
  * @Last Modified by: Morpheus
- * @Last Modified time: 2021-11-19 14:06:53
+ * @Last Modified time: 2021-12-30 14:54:33
  */
 <template>
     <div>
-        <arc-nav-bar :navList="list"
-                     :title="title"></arc-nav-bar>
+
     </div>
 </template>
 
 <script>
+
+import { mapGetters } from 'vuex'
+
 export default {
     data () {
         return {
-            title: '教学科研',
-            list: []
+
         }
     },
-    created () {
-        this.list = [
-            {
-                title: '西大直街',
-                flag: true,
-                list: [
-                    {
-                        navTitle: '外国语学院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '主楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '电机楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '机械楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '明德楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '格物楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '管理楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '理学楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '正心楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '新技术楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '综合楼',
-                        icon: '/img/navicon/tag.png'
-                    }
-                ]
-            },
-            {
-                title: '黄河路',
-                flag: false,
-                list: [
-                    {
-                        navTitle: '二校区主楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '土木科研楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '建筑设计院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '环境学院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '土木学院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '交通学院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '计算机学院',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '城市水资源与水环境国家重点实验室楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '寒地城乡人居环境科学重点实验室',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '西配楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '水实验楼',
-                        icon: '/img/navicon/tag.png'
-                    }
-                ]
-            },
-            {
-                title: '科学园',
-                flag: false,
-                list: [
-                    {
-                        navTitle: '一期小园',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园A栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园B1栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园B2栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园B3栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园C1栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园C2栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园C3栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园D栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科学园E栋',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '科技创新大厦',
-                        icon: '/img/navicon/tag.png'
-                    }
-                ]
-            },
-            {
-                title: '土木楼',
-                flag: false,
-                list: [
-                    {
-                        navTitle: '土木楼',
-                        icon: '/img/navicon/tag.png'
-                    },
-                    {
-                        navTitle: '机电学院实验楼',
-                        icon: '/img/navicon/tag.png'
-                    }
-                ]
-            }
-        ]
+    computed: {
+        ...mapGetters([
+            // 校内导航的显示关闭
+            'orgNavBarFlag',
+            'arcNavBarFlag'
+        ])
+    },
+    mounted () {
+        if (this.orgNavBarFlag == true) {
+            this.$store.commit('SET_ORGNAVBARTITLE', '')
+            this.$store.commit('SET_ORGNAVBARLIST', [])
+            this.$store.commit('SET_ORGNAVBARFLAG', false)
+        }
+        this.$store.commit('SET_ARCNAVBARTITLE', '教学科研')
+        this.$store.commit('SET_ARCNAVBARCODE', 2)
+        this.$store.commit('SET_ARCNAVBARFLAG', true)
     },
     methods: {
-        closeModel () {
-            this.$store.dispatch('delVisitedViews', this.$route)
-            this.$router.push('/pcLayout/default')
+
+    },
+    beforeDestroy () {
+        if (this.arcNavBarFlag == true) {
+            this.$store.commit('SET_ARCNAVBARTITLE', '')
+            this.$store.commit('SET_ARCNAVBARCODE', '')
+            this.$store.commit('SET_ARCNAVBARFLAG', false)
         }
     }
 }

--
Gitblit v1.9.3