search.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <fieldset>
  3. <legend>
  4. <el-tag type="info">条件筛选</el-tag>
  5. </legend>
  6. <el-form class="lv-form-inline" ref="searchForm" :model="searchKey" label-position="right" label-width="100px">
  7. <div class="search-form">
  8. <div class="form-left">
  9. <el-row :gutter="10">
  10. <el-col :span="this.$store.state.global.ismobile?12:4">
  11. <el-input v-model="searchKey.truename" placeholder="地址名称" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  12. <template #prepend>代理名称</template>
  13. </el-input>
  14. </el-col>
  15. <el-col :span="this.$store.state.global.ismobile?12:4">
  16. <el-input v-model="searchKey.mobile" placeholder="手机号码" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  17. <template #prepend>联系电话</template>
  18. </el-input>
  19. </el-col>
  20. <el-col :span="this.$store.state.global.ismobile?12:4">
  21. <el-select v-model="searchKey.status" clearable placeholder="请选择状态" @change="searchForm" :style="{width: '100%'}" class="diy-select">
  22. <el-option value="1" label="冻结"></el-option>
  23. <el-option value="2" label="正常"></el-option>
  24. <template #prefix>状态</template>
  25. </el-select>
  26. </el-col>
  27. <el-col :span="this.$store.state.global.ismobile?12:4">
  28. <el-date-picker v-model="searchKey.create" :style="{width: '100%'}" placeholder="请选择创建时间" start-placeholder="开始时间" end-placeholder="结束时间" type="daterange" range-separator="至" @change="searchForm" />
  29. </el-col>
  30. </el-row>
  31. </div>
  32. <div class="form-line"></div>
  33. <div class="form-right">
  34. <el-button type="primary" icon="el-icon-search" @click="searchForm">搜索</el-button>
  35. </div>
  36. </div>
  37. </el-form>
  38. </fieldset>
  39. </template>
  40. <script>
  41. export default {
  42. data(){
  43. return {
  44. searchKey:{}
  45. }
  46. },
  47. methods: {
  48. searchForm(){
  49. this.$emit("success",this.searchKey);
  50. }
  51. }
  52. }
  53. </script>