From 81f54040c2cb65537c6c6e1db8358a39a57dea0d Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Mon, 15 Aug 2022 16:14:01 +0800
Subject: [PATCH] 1
---
src/pcviews/arc/teaching.vue | 227 ++++++++------------------------------------------------
1 files changed, 34 insertions(+), 193 deletions(-)
diff --git a/src/pcviews/arc/teaching.vue b/src/pcviews/arc/teaching.vue
index 6ddc52b..3df77f4 100644
--- a/src/pcviews/arc/teaching.vue
+++ b/src/pcviews/arc/teaching.vue
@@ -1,201 +1,42 @@
-/*
- * @Author: Morpheus
- * @Name: 教学科研
- * @Date: 2021-11-15 17:14:47
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-11-19 14:06:53
- */
+/* * @Author: Morpheus * @Name: 教学科研 * @Date: 2021-11-15 17:14:47 * @Last
+Modified by: Morpheus * @Last Modified time: 2021-12-30 14:54:33 */
<template>
- <div>
- <arc-nav-bar :navList="list"
- :title="title"></arc-nav-bar>
- </div>
+ <div></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'
- }
- ]
- }
- ]
- },
- methods: {
- closeModel () {
- this.$store.dispatch('delVisitedViews', this.$route)
- this.$router.push('/pcLayout/default')
- }
+ data() {
+ return {};
+ },
+ 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: {},
+ beforeDestroy() {
+ if (this.arcNavBarFlag == true) {
+ this.$store.commit("SET_ARCNAVBARTITLE", "");
+ this.$store.commit("SET_ARCNAVBARCODE", "");
+ this.$store.commit("SET_ARCNAVBARFLAG", false);
+ }
+ },
+};
</script>
-<style>
-</style>
+<style></style>
--
Gitblit v1.9.3