<template>
    <div>
        <p class="info">公司总览</p>
        <el-table ref="multipleTable" border :data="tableData" tooltip-effect="dark"
            :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" style="width: 100%"
            @selection-change="handleSelectionChange">
            <el-table-column type="selection" width="50">
            </el-table-column>
            <el-table-column prop="corporation_name" label="公司名称">
            </el-table-column>
            <el-table-column prop="Sccode" label="社会信用代码">
            </el-table-column>
            <el-table-column prop="legal_person" label="公司法人">
            </el-table-column>
            <el-table-column prop="contact_person" label="联系人">
            </el-table-column>
            <el-table-column prop="contact_phone" label="联系电话">
            </el-table-column>
            <el-table-column prop="operation" label="操作">
                <el-button size="mini" type="text">查看</el-button>
                <el-button size="mini" type="text">编辑</el-button>
                <el-button size="mini" type="text">删除</el-button>
            </el-table-column>
        </el-table>
        <div class="bottom">
            <div>
                <checkbox class="checkbox"></checkbox>
                <el-button class="check-cancel" size="mini" type="text" @click="cancleChecked">取消</el-button>
            </div>
            <div class="bottom_button" v-show="show">
                <el-button class="delete" type="text">批量删除</el-button>
            </div>
            <page class="page"></page>
        </div>
    </div>
</template>

<script>
import checkbox from '@/components/Checkbox/index'
import page from '@/components/pagination/index'
export default {
    components: { checkbox, page },
    data() {
        return {
            tableData: [{
                corporation_name: '中讯邮电咨询设计院有限公司',
                Sccode: '4032',
                legal_person: '张三',
                contact_person: '张三',
                contact_phone: '12345678901',
            }, {
                corporation_name: '北京电信规划院有限公司',
                Sccode: '9416',
                legal_person: '李四',
                contact_person: '李四',
                contact_phone: '12345678901',
            }, {
                corporation_name: '北京电信规划院有限公司',
                Sccode: '9416',
                legal_person: '李四',
                contact_person: '李四',
                contact_phone: '12345678901',
            }],
            multipleSelection: [],
            show: true
        }
    },
    methods: {
        cancleChecked() {
            //
        },
        handleClick() {
            //
        }
    }
}
</script>
<style lang="less" scoped>
.info {
    text-align: left;
    padding: 0px;
    font-size: 25px;
}

.bottom {
    position: relative;
    left: 20px;
    top: 420px;
    height: 50px;
    line-height: 20px;
    background-color: rgba(255, 255, 255, 1);
    text-align: center;

    .checkbox {
        position: absolute;
        left: 29px;
        top: 15px;
        font-size: 14px;
    }

    .check-cancel {
        position: absolute;
        // line-height: 20px;
        font-size: 14px;
        text-align: center;
        left: 140px;
        top: 10px;
    }

    .bottom_button {
        position: absolute;
        left: 200px;
        top: 7px;

        .delete {
            width: 95px;
            height: 30px;
            font-size: 14px;
            text-align: center;
            padding: 1px;
        }

        .disabled {
            width: 95px;
            height: 30px;
            font-size: 14px;
            text-align: center;
            padding: 1px;
        }

        .el-dropdown {
            margin-left: 15px;

            /deep/.el-button--primary {
                height: 30px;
                //background-color: rgba(255, 255, 255, 1);
            }
        }
    }

    .page {
        position: absolute;
        top: -10px;
        right: 30px;
    }
}
</style>