liuyg
2021-12-31 5c7c3cc18ce38ec6897808d63359cf774b958a30
src/pcviews/arc/dorm.vue
@@ -3,29 +3,49 @@
 * @Name: 学生宿舍
 * @Date: 2021-11-15 17:14:47
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-12-15 11:48:43
 * @Last Modified time: 2021-12-30 14:25:14
 */
<template>
    <div>
        <arc-nav-bar :title="title"
                     :arcCode="code"></arc-nav-bar>
    </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
    data () {
        return {
            title: '学生宿舍',
            code: 4
        }
    },
    created () {
    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', 4)
        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)
        }
    }
}