<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="5">
            <span>输入条件：</span>
            <el-input v-model="search.name" placeholder="请输入名称" class="input"></el-input>
          </el-col>

          <el-col :span="8">
            <el-button class="btnSearch" @click="resetForm(search)">查询</el-button>
            <el-button class="btnSearch qing" @click="toClear(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);
    },
    toClear() {
      this.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);
}
/deep/.el-input__inner {
  height: 35px;
  line-height: 35px;
  width: 200px;
}
</style>
