<!-- 搜索表单 -->
<template>
    <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>
<script>
export default {
    data() {
        return {};
    },
    props: {
        user: {
            type: 'String',
            default: ''
        }
    },
    computed: {
        // 表格列配置
        seekList() {
            return [
                {
                    label: '关键字：',
                    value: 'code',
                    type: 'input',
                    placeholder: '编码/故障原因/'
                },
                {
                    label: '编码:',
                    value: 'code',
                    type: 'input',
                    placeholder: '请输入'
                },
                {
                    label: '故障原因:',
                    value: 'workCode',
                    type: 'input',
                    placeholder: '请输入'
                },
                {
                    label: '故障类型:',
                    value: 'workCode',
                    width: 380,
                    type: 'input',
                    placeholder: ''
                },
            ];
        }
    },
    methods: {
        /* 搜索 */
        search(e) {
            this.$emit('search', {
                ...e
            });
        }
    }
};
</script>