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

    </div>
</template>

<script>
    import table from "@/assets/mixins/table";
    export default {
        components: {
        },
        mixins: [table],
        created() {
        },
        methods: {
        },
        data() {
            return {
                config: {
                    search: [
                        {
                            name: "deviceName",
                            type: "text",
                            label: "设备名称，设置设备名称。",
                            fuzzy: true
                        },
                        {
                            name: "productKey",
                            type: "text",
                            label: "平台为产品颁发的全局唯一标识符",
                            fuzzy: true
                        },
                        {
                            name: "logType",
                            type: "select",
                            label: "日志类型，(0.上报事件，1.下发服务)",
                            fuzzy: true
                        },
                    ],
                    columns: [
                        {type: "selection", width: 60},
                        {label: "设备名称，设置设备名称。", prop: "deviceName"},
                        {label: "平台为产品颁发的全局唯一标识符", prop: "productKey"},
                        {label: "日志类型，(0.上报事件，1.下发服务)", prop: "logType"},
                        {label: "内容", prop: "content"},
                        {
                            label: "操作",
                            width: 180,
                            formatter: row => {
                                return (
                                    <div><el-button type="primary" icon="el-icon-edit"  size='mini' onClick={()=>{this.toEdit(row)}}>编辑</el-button></div>
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>