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/orgnav/teaching.vue | 62 +++++++++++++++++++-----------
1 files changed, 39 insertions(+), 23 deletions(-)
diff --git a/src/pcviews/orgnav/teaching.vue b/src/pcviews/orgnav/teaching.vue
index 57e84aa..120be74 100644
--- a/src/pcviews/orgnav/teaching.vue
+++ b/src/pcviews/orgnav/teaching.vue
@@ -1,29 +1,40 @@
-/*
- * @Author: Morpheus
- * @Name: 教学与科研机构
- * @Date: 2021-11-15 10:02:12
- * @Last Modified by: Morpheus
- * @Last Modified time: 2021-12-21 15:12:33
- */
- <template>
- <div>
- <org-nav-bar :navList="list"
- :title="title"></org-nav-bar>
- </div>
+/* * @Author: Morpheus * @Name: 教学与科研机构 * @Date: 2021-11-15 10:02:12 *
+@Last Modified by: Morpheus * @Last Modified time: 2021-12-30 14:26:13 */
+<template>
+ <div></div>
</template>
<script>
import { getList } from '@/api/pc/orgnav/index'
+
+import { mapGetters } from 'vuex'
+
export default {
data () {
return {
- title: '教学与科研机构',
list: []
}
},
- created () {
- getList({ type: 4 }).then(res => {
- res.data.data.records.forEach(item => {
+ computed: {
+ ...mapGetters([
+ // 校区内导航的显示关闭
+ 'orgNavBarFlag',
+ 'arcNavBarFlag'
+ ])
+ },
+ mounted () {
+ if (this.arcNavBarFlag == true) {
+ this.$store.commit('SET_ARCNAVBARTITLE', '')
+ this.$store.commit('SET_ARCNAVBARCODE', '')
+ this.$store.commit('SET_ARCNAVBARFLAG', false)
+ }
+ this.$store.commit('SET_ORGNAVBARTITLE', '教学与科研机构')
+ this.$store.commit('SET_ORGNAVBARLIST', [])
+
+ this.$store.commit('SET_ORGNAVBARFLAG', true)
+
+ getList({ type: 4 }).then((res) => {
+ res.data.data.records.forEach((item) => {
this.list.push({
navTitle: item.mechanismname,
icon: '/img/navicon/tag.png',
@@ -37,19 +48,24 @@
QRImg: item.codeurl,
address: item.address,
telephone: item.telephone,
- introduce: item.introduce
+ introduce: item.introduce,
+ videourl: item.videourl,
+ x: item.x
})
})
+
+ this.$store.commit('SET_ORGNAVBARLIST', this.list)
})
},
- methods: {
- closeModel () {
- this.$store.dispatch('delVisitedViews', this.$route)
- this.$router.push('/pcLayout/default')
+ methods: {},
+ beforeDestroy () {
+ if (this.orgNavBarFlag == true) {
+ this.$store.commit('SET_ORGNAVBARTITLE', '')
+ this.$store.commit('SET_ORGNAVBARLIST', [])
+ this.$store.commit('SET_ORGNAVBARFLAG', false)
}
}
}
</script>
-<style>
-</style>
+<style></style>
--
Gitblit v1.9.3