<template>
    <div class="container">
        <div class="header">
            <el-button @click="Show1()">定时任务</el-button>
            <el-button @click="Show2()">加密方法</el-button>
        </div>
        <periodic-task v-show="show1"></periodic-task>
        <encryption-method v-show="show2"></encryption-method>
    </div>
</template>

<script>
import EncryptionMethod from './encryptionMethod'
import periodicTask from './periodicTask'
export default {
  components: { periodicTask,EncryptionMethod },
    data() {
        return {
            show1:true,
            show2:false
        }
    },
    methods:{
        Show1(){
            this.show1 = true;
            this.show2 = false;
        },
        Show2(){
            this.show1 = false;
            this.show2 = true;
        },
    }
}
</script>
<style lang="less" scoped>
.container{
    position: absolute;
    left: 218px;
    top: 150px;
    right: 16px;
    bottom: 20px;
    line-height: 20px;
    background-color: rgba(255, 255, 255, 1);
    color: rgba(16, 16, 16, 1);
    font-size: 14px;
    text-align: center;
}
.header {
    text-align: left;
    padding: 15px;
    font-size: 25px;
    margin-left: 15px;

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