<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-select v-model="queryForm.dimension" class="w-[80px]">
                    <el-option v-for="item in 30" :key="item" :value="item" :label="item"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="拟合方式" class="!mb-0">
                <el-select v-model="queryForm.mode" class="w-[120px]">
                    <el-option :value="0" label="单台拟合"></el-option>
                    <el-option :value="1" label="合并拟合"></el-option>
                    <el-option :value="2" label="同名拟合"></el-option>
                </el-select>
            </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,
                    dimension: 10, //拟合维度
                    mode: 0 //拟合方式
                },
            }
        },
        methods: {
            funSubmit() {
                this.$emit('submit', this.queryForm)
            }
        }
    }
</script>

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