index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <el-container class="flex-column">
  3. <div class="table-search">
  4. <div class="first-title">财务对账</div>
  5. <el-tabs v-model="activeName" class="demo-tabs" @tab-change="handleClick">
  6. <el-tab-pane label="日汇总" name="day"></el-tab-pane>
  7. <el-tab-pane label="月汇总" name="mon"></el-tab-pane>
  8. <el-tab-pane label="自定义汇总" name="custom"></el-tab-pane>
  9. </el-tabs>
  10. <search @success="handleSuccess" :type="elType"></search>
  11. </div>
  12. <el-main class="nopadding">
  13. </el-main>
  14. </el-container>
  15. </template>
  16. <script>
  17. import search from './components/search';
  18. export default {
  19. components: {
  20. search
  21. },
  22. data() {
  23. return {
  24. activeName:"day",
  25. elType:"1"
  26. }
  27. },
  28. methods: {
  29. handleClick(event){
  30. this.activeName = event;
  31. if (event=='mon') {
  32. this.elType = 2
  33. } else {
  34. this.elType = 1
  35. }
  36. },
  37. handleSuccess(){
  38. }
  39. }
  40. }
  41. </script>
  42. <style>
  43. .table-search{border-bottom: 0;}
  44. .first-title{
  45. align-items: center;
  46. color: #1d2129;
  47. display: flex;
  48. font-size: 20px;
  49. font-weight: 600;
  50. justify-content: space-between;
  51. line-height: 28px;
  52. margin-bottom: 20px;}
  53. </style>