needSearchInfo.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <div id="needSearchInfo">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="12">
  6. <span>筛选条件:</span>
  7. <el-select v-model="region" >
  8. <el-option label="未授信" value="0"></el-option>
  9. <el-option label="已授信" value="1"></el-option>
  10. </el-select>
  11. </el-col>
  12. <el-col :span="5" class="btn">
  13. <el-button type="primary" @click="clickBtn()" >查询</el-button>
  14. </el-col>
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'needSearchInfo',
  22. props: {},
  23. components: {},
  24. data: () => ({
  25. region: '0',
  26. }),
  27. created() {},
  28. computed: {},
  29. methods: {
  30. clickBtn() {
  31. this.$emit('clickBtn',this.region);
  32. },
  33. },
  34. };
  35. </script>
  36. <style lang="less" scoped>
  37. .info {
  38. padding: 15px 0;
  39. }
  40. .info .input {
  41. padding: 6px 0;
  42. }
  43. .info .btn {
  44. text-align: center;
  45. }
  46. /deep/.el-button {
  47. color: #fff;
  48. background-color: red;
  49. border-color: red;
  50. }
  51. /deep/.el-input__inner {
  52. height: 30px;
  53. line-height: 30px;
  54. }
  55. </style>