<template>
    <div class="container">
        <div class="header">
            <el-button @click="Show1()">公司基本信息</el-button>
            <el-button @click="Show2()">楼宇基本信息</el-button>
            <el-button @click="Show3()">底层系统信息</el-button>
        </div>
        <corporation-info v-show="show1"></corporation-info>
        <building-info v-show="show2"></building-info>
        <accessedSystem v-show="show3"></accessedSystem>
    </div>
</template>

<script>
import CorporationInfo from './corporationInfo'
import buildingInfo from './buildingInfo'
import accessedSystem from './accessedSystem'
export default {
    components: { CorporationInfo ,buildingInfo,accessedSystem},
    data() {
        return {
            show1:true,
            show2:false,
            show3:false
        }
    },
    methods:{
        Show1(){
            this.show1 = true;
            this.show2 = false;
            this.show3 = false;
        },
        Show2(){
            this.show1 = false;
            this.show2 = true;
            this.show3 = false;
        },
        Show3(){
            this.show1 = false;
            this.show2 = false;
            this.show3 = true;
        },
    }
}
</script>
<style lang="less" scoped>
.container {
    position: absolute;
    left: 218px;
    right: 16px;
    top: 140px;
    height: 800px;
    line-height: 20px;
    background-color: rgba(255, 255, 255, 1);
    text-align: center;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
}

.header {
    text-align: left;
    padding: 15px;
    font-size: 25px;
    margin-left: 15px;

    .el-button {
        border-radius: 50px;
    }
}
</style>