<template>
    <div class="page">
        <LayoutTable :data='tableData' :config='tableConfig' />
    </div>
</template>

<script>
    import table from "@/assets/mixins/table";

    export default {
        mixins: [table],
        data() {
            return {
                config: {
                    search: [

                    ],
                    columns: [
                        {type: "selection", width: 60},
                                                {label: "上传资料地址", prop: "file"},
                        {label: "上传时间", prop: "uploadtime", formatter: this.formatterDate},
                        {label: "不通过原因", prop: "summary"},
                        {label: "变更时间", prop: "updatetime", formatter: this.formatterDate},
                        {label: "变更用户loginName", prop: "updateuser"},
                        {
                            label: "操作",
                            width: 180,
                            formatter: row => {
                                return (
                                    <div><el-button type="primary" icon="el-icon-edit" round size='mini' onClick={()=>{this.toEdit(row)}}>编辑</el-button></div>
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>