From e8e7b70168d5cc8a465c92da28bdcce52e8bf3cc Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Thu, 10 Mar 2022 14:48:21 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web

---
 src/pcviews/orgnav/directly.vue |  114 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/src/pcviews/orgnav/directly.vue b/src/pcviews/orgnav/directly.vue
index fb7d80c..300c09b 100644
--- a/src/pcviews/orgnav/directly.vue
+++ b/src/pcviews/orgnav/directly.vue
@@ -1,70 +1,70 @@
 /* * @Author: Morpheus * @Name: 直属及附属单位 * @Date: 2021-11-15 10:02:12 *
 @Last Modified by: Morpheus * @Last Modified time: 2021-12-30 14:25:45 */
 <template>
-  <div></div>
+    <div></div>
 </template>
 
 <script>
-import { getList } from "@/api/pc/orgnav/index";
+import { getList } from '@/api/pc/orgnav/index'
 
-import { mapGetters } from "vuex";
+import { mapGetters } from 'vuex'
 
 export default {
-  data() {
-    return {
-      list: [],
-    };
-  },
-  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);
+    data () {
+        return {
+            list: []
+        }
+    },
+    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: 3 }).then((res) => {
+            res.data.data.records.forEach((item) => {
+                this.list.push({
+                    navTitle: item.mechanismname,
+                    icon: '/img/navicon/tag.png',
+                    longitude: item.jd,
+                    latitude: item.wd,
+                    alt: item.gd,
+                    heading: item.heading,
+                    pitch: item.pitch,
+                    roll: item.roll,
+                    bgImg: item.tpurl,
+                    QRImg: item.codeurl,
+                    address: item.address,
+                    telephone: item.telephone,
+                    introduce: item.introduce,
+                    videourl: item.videourl
+                })
+            })
+
+            this.$store.commit('SET_ORGNAVBARLIST', this.list)
+        })
+    },
+    methods: {},
+    beforeDestroy () {
+        if (this.orgNavBarFlag == true) {
+            this.$store.commit('SET_ORGNAVBARTITLE', '')
+            this.$store.commit('SET_ORGNAVBARLIST', [])
+            this.$store.commit('SET_ORGNAVBARFLAG', false)
+        }
     }
-    this.$store.commit("SET_ORGNAVBARTITLE", "直属及附属单位");
-    this.$store.commit("SET_ORGNAVBARLIST", []);
-
-    this.$store.commit("SET_ORGNAVBARFLAG", true);
-
-    getList({ type: 3 }).then((res) => {
-      res.data.data.records.forEach((item) => {
-        this.list.push({
-          navTitle: item.mechanismname,
-          icon: "/img/navicon/tag.png",
-          longitude: item.jd,
-          latitude: item.wd,
-          alt: item.gd,
-          heading: item.heading,
-          pitch: item.pitch,
-          roll: item.roll,
-          bgImg: item.tpurl,
-          QRImg: item.codeurl,
-          address: item.address,
-          telephone: item.telephone,
-          introduce: item.introduce,
-          videourl: item.videourl,
-        });
-      });
-
-      this.$store.commit("SET_ORGNAVBARLIST", this.list);
-    });
-  },
-  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>

--
Gitblit v1.9.3