<script setup name="search">
import { reactive, ref } from 'vue'
import SubmitBtn from '@com/SubmitBtn.vue'

const queryForm = reactive({
	maxs: 25,
	mins: 0,
	maxp: 2500,
	minp: 0,
	isfbw: true,
	isfhl: true,
	isbw: true,
	istj: true,
	isglpc: true,
	// isqfh: false,
	// qfhdj: 2
})
/**导出 */
const emits = defineEmits(['submit'])
const funSubmit = async () => {
	emits('submit', queryForm)
}
/**created */
</script>
<template>
	<div class="pl-[20px] flex items-center h-[80px] relative">
		<div class="absolute top-[-7px] left-[20px] text-[#838383] text-[14px]">操作面板</div>
		<el-form class="" :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-checkbox v-model="queryForm.isqfh">欠符合等级</el-checkbox> -->
					<!-- <el-select class="ml-10px w-[80px]" v-model="queryForm.qfhdj">
						<el-option :value="1" label="1"></el-option>
						<el-option :value="2" label="2"></el-option>
						<el-option :value="3" label="3"></el-option>
						<el-option :value="4" label="4"></el-option>
						<el-option :value="5" label="5"></el-option>
					</el-select> -->
				</el-form-item>
				<el-form-item class="!mb-0">
				<submit-btn @click="funSubmit" desc="预处理"></submit-btn>
			</el-form-item>
		</el-form>
	</div>
</template>