<template>
  <div id="needSearchInfo">
    <el-row>
      <el-col :span="24">
        <el-col :span="5">
          <span>产品名称：</span>
          <el-input v-model="name" placeholder="请输入产品名称" class="input"></el-input>
        </el-col>
        <el-col :span="5">
          <span>机构名称：</span>
          <el-input v-model="innewname" placeholder="请输入机构名称" class="input"></el-input>
        </el-col>
        <el-col :span="8" class="btn">
          <el-button class="btnSearch" @click="clickBtn()">查询</el-button>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'needSearchInfo',
  props: {},
  components: {},
  data: () => ({
    innewname: '',
    name: '',
  }),
  created() {},
  computed: {},
  methods: {
    clickBtn() {
      let finaldata = {};
      finaldata.innewname = this.innewname;
      finaldata.name = this.name;
      this.$emit('clickBtn', finaldata);
    },
  },
};
</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>
