<template>
  <div id="searchInfo">
    <el-row>
      <el-col :span="24">
        <el-form :model="search" ref="search">
          <!-- <el-col :span="5">
            <span>筛选条件：</span>

            <el-select v-model="search.region" placeholder="请选择">
              <el-option label="类型一" value="0"></el-option>
              <el-option label="类型二" value="1"></el-option>
            </el-select>
          </el-col> -->
          <el-col :span="4">
            <span>输入条件：</span>
            <el-input v-model="search.name" placeholder="请输入名称" class="input"></el-input>
          </el-col>
          <!-- <el-col :span="7">
          <span>时间选择：</span>
          <el-date-picker v-model="search.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
        </el-col> -->
          <el-col :span="8">
            <el-button class="btnSearch" @click="resetForm(search)">查询</el-button>
          </el-col>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'searchInfo',
  props: {},
  components: {},
  data: () => ({
    search: {},
  }),
  created() {},
  computed: {},
  methods: {
    resetForm(search) {
      this.$emit('sousuo', search);
    },
  },
};
</script>

<style lang="less" scoped>
.input {
  width: 150px;
}
/deep/.el-input__inner {
  height: 35px;
  line-height: 35px;
}
.btnSearch {
  width: 80px;
  height: 34px;
  background: rgba(233, 2, 29, 1);
  border-radius: 4px;
  padding: 0;
  color: #fff;
}
.qing {
  background: rgba(185, 185, 185, 1);
}
</style>
