<template>
    <div>
        <div style="width: 100%; height: 100px;margin-top: 10px;">
            <el-tag>{{ label }}</el-tag>
            <el-button style="margin:70px 1180px 0 0 ">新建</el-button>
            <el-button type="text">历史记录</el-button>
        </div>
        <div style="height: 600px;width: 100%; margin-top: 10px;">
            <el-table border :data="tableData" tooltip-effect="dark" 
                :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" style="width: 100%">
                <el-table-column type="index" width="50" label="序号">
                </el-table-column>
                <el-table-column prop="name" label="姓名">
                </el-table-column>
                <el-table-column prop="job_number" label="工号">
                </el-table-column>
                <el-table-column prop="phone_number" label="联系方式">
                </el-table-column>
                <el-table-column prop="territory" label="负责区域">
                </el-table-column>
                <el-table-column prop="photo" label="照片">
                    <template slot-scope="scope">
                        <el-image :src="scope.row.photo" style="width: 40px; height: 40px;" :preview-src-list="[scope.row.photo]"></el-image>
                    </template>
                </el-table-column>
                <el-table-column prop="status" label="状态">
                </el-table-column>
                <el-table-column prop="EODInfo" label="值班信息">
                </el-table-column>
            </el-table>
        </div>
        <el-button>删除</el-button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            label: "前台人员信息",
            tableData:[{
                name:'张三',
                job_number:'01111',
                phone_number:'12345678901',
                territory:'九层前台',
                photo:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
                status:'正常'
            },
            {
                name:'张三',
                job_number:'01111',
                phone_number:'12345678901',
                territory:'九层前台',
                photo:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
                status:'休假'
            },
            {
                name:'张三',
                job_number:'01111',
                phone_number:'12345678901',
                territory:'九层前台',
                photo:'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
                status:'正常'
            }
            ]

        }
    },
}
</script>

<style lang="less" scoped>

.el-tag {
    position: absolute;
    background-color: transparent;
    border-color: transparent;
    font-size: 25px;
    color: #000;
    top: 20px;
    left: 20px;

}

.el-button--text {
    position: absolute;
    top: 70px;
    right: 20px;
}

.el-button {
    height: 30px;
    width: 100px;
    margin-top: 20px;
    margin-inline: 40px;
    padding: 5px;
}
</style>