<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: "materialName"},
                        {label: "材料必要性", prop: "isMust",formatter:this.formatter},
                        {label: "材料类型", prop: "materialType",formatter:this.formatter},
                        {label: "材料形式", prop: "materialProperty",formatter:this.formatter},
                        {label: "纸质材料份数", prop: "paperNum"},
                     
                        {
                            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>