<template>
<!--  宿舍管理 -->
    <div class="dormitory">
        <!-- 宿舍楼 -->
        <building v-if="showType==1" @setType="setType"></building>
        <!-- 入住登记 -->
        <checkIn v-if="showType==2" @setType="setType"></checkIn>
    </div>
</template>
<script>
import building from './dormitoryMod/building.vue'
import checkIn from './dormitoryMod/checkIn.vue'
export default {
    components:{
        building,
        checkIn
    },
    data(){
        return {
            showType:1, //显示模块 1 宿舍楼管理  2 入住登记管理
        }
    },
    methods:{
        //设置显示 模块
        setType(val){
            this.showType = val;
        }
    }
}
</script>
<style lang="less" scoped>
.dormitory{
    width: 100%;
    height: 100%;
}
</style>