<template>
    <el-card shadow="always" class="search_header_top_row1">

        <el-form :inline="true" :model="filterForm" class="demo-form-inline">
            <el-form-item label="系统类型">
                <el-input v-model.trim="filterForm.systemType" placeholder="请选择系统类型" clearable />
            </el-form-item>
            <el-form-item label="版本号">
                <el-input v-model.trim="filterForm.versionCode" placeholder="请输入版本号" clearable />
            </el-form-item>
            <el-form-item label="部署时间范围">
                <el-date-picker v-model.trim="filterForm.dataRange" type="daterange" range-separator="To" start-placeholder="Start date"
                    end-placeholder="End date" />
            </el-form-item>
            <el-form-item  >
                <el-button type="primary" @click="serachFn">查询</el-button>
                <el-button type="plain" @click="resetFn">重置</el-button>
              
            </el-form-item> 
        </el-form>
        <div>
            <el-button type="primary" @click="addFn">新增</el-button>
            <el-button type="primary" @click="exportFn">导出</el-button>
        </div>
 
    </el-card>
</template>

<script lang="ts" setup>
const emits = defineEmits(['search','reset','export','add'])
 
const filterForm = reactive({
    systemType: '',
    versionCode:'',
    dataRange:''
})

const serachFn = () => {
    emits('search',filterForm)
}

const resetFn=()=>{
    emits('reset')
}

const exportFn =()=>{
    emits('export')
}
 
const addFn =()=>{
    emits('add')
}
 


</script>

<style scoped lang="scss"></style>
