<template>
    <div class="project-attendance-worker-drawer" v-if="isOpen">
        <el-drawer v-if="isOpen" :visible.sync="isOpen" direction="rtl" size="70%" style="padding-left: 20px">
            <template slot="title">
                <div>{{ title + " 【人员信息】" }}</div>
            </template>
            <div>
             <main-index ref="main"></main-index>
            </div>
        </el-drawer>
    </div>
</template>

<script>
import mainIndex from './index.vue'
export default {
    components:{
        mainIndex
    },
    data() {
        return {
            prj:null,
            isOpen: false,
            title: '',           
        };
    },

    mounted() {

    },

    methods: {              
        show(prj) {
            this.prj=prj;
            this.title = prj.projectName||"";
            this.isOpen = true;
            setTimeout(()=>{
                this.$refs.main.initMe(prj);
            },400);    
        },

    },
};
</script>

<style lang="scss" scoped>
.project-attendance-worker-drawer {
    ::v-deep .el-drawer__header {
        margin-bottom: 0px;
    }

    ::v-deep .el-drawer__body {
        padding: 12px 24px;
    }
    ::v-deep .el-drawer{
        min-width: 1200px;
    }
}
</style>