<template>
    <div class="seach">
        <el-form class="generat-seach" :inline="true" :model="queryForm">
            <el-form-item label="最大风速" class="!mb-0">
                <el-input-number v-model="queryForm.maxs" class="!w-[130px]" :max="30"></el-input-number>
            </el-form-item>
            <el-form-item label="最小风速" class="!mb-0">
                <el-input-number v-model="queryForm.mins" class="!w-[130px]" :min="0"></el-input-number>
            </el-form-item>
            <el-form-item label="最大功率" class="!mb-0">
                <el-input-number v-model="queryForm.maxp" class="!w-[130px]"></el-input-number>
            </el-form-item>
            <el-form-item label="最小功率" class="!mb-0">
                <el-input-number v-model="queryForm.minp" class="!w-[130px]" :min="0"></el-input-number>
            </el-form-item>
            <el-form-item label="筛选条件：" class="!mb-0">
                <el-checkbox v-model="queryForm.isfbw">非并网</el-checkbox>
                <el-checkbox v-model="queryForm.isfhl">非合理值</el-checkbox>
                <el-checkbox v-model="queryForm.isbw">并网后10分钟</el-checkbox>
                <el-checkbox v-model="queryForm.istj">停机前10分钟</el-checkbox>
                <el-checkbox v-model="queryForm.isglpc">功率曲线偏差</el-checkbox>
            </el-form-item>
            <el-form-item class="!mb-0">
                <el-button type="primary" @click="funSubmit">预处理</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                queryForm: {
                    maxs: 25,
                    mins: 0,
                    maxp: 2500,
                    minp: 0,
                    isfbw: true,
                    isfhl: true,
                    isbw: true,
                    istj: true,
                    isglpc: true,
                },
            }
        },
        methods: {
            funSubmit() {
                this.$emit('submit', this.queryForm)
            }
        }
    }
</script>

<style lang="less">
    .seach {
        padding: 20px 0 0 20px;
    }
</style>