Water.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div class="main">
  3. <div class="search_bottom_tab">
  4. <div class="tab_list" v-for="(item, index) in tabs" :class="activeIndex == index ? 'active' : ''" :key="index">
  5. 充值金额:50000元
  6. {{ item.label }}{{ item.value }}
  7. </div>
  8. <!-- <div class="tab_list">充值金额:50000元</div> -->
  9. </div>
  10. <zz-table
  11. :cols="cols"
  12. :settings="{ showIndex: true, stripe: true }"
  13. :loading="mixins_onQuery"
  14. :data="mixins_list"
  15. :pageset="mixins_pageset"
  16. @page-change="pageChange"
  17. >
  18. </zz-table>
  19. </div>
  20. </template>
  21. <script>
  22. import list from '@utils/list.js';
  23. export default {
  24. mixins: [list],
  25. data() {
  26. return {
  27. cols: [
  28. {
  29. label: '社区名称',
  30. prop: 'communityName'
  31. },
  32. {
  33. label: '房间',
  34. prop: 'assets'
  35. },
  36. {
  37. label: '业主',
  38. prop: 'residentName'
  39. },
  40. {
  41. label: '业主手机号',
  42. prop: 'residentPhone'
  43. },
  44. {
  45. label: '水费余额(元)',
  46. prop: 'balance'
  47. },
  48. {
  49. label: '最后扣费时间',
  50. prop: 'lastPayTime'
  51. }
  52. ],
  53. tabs: [
  54. {
  55. label: '充值金额',
  56. value: '0'
  57. },
  58. {
  59. label: '扣费金额',
  60. value: '0'
  61. }
  62. ],
  63. activeIndex: 1,
  64. mixins_post: 'post'
  65. };
  66. },
  67. created() {
  68. this.mixins_dataUrl = '/sc-charge/house/account/page';
  69. this.mixins_query = {
  70. accountType: 2
  71. };
  72. // this.mixins_search();
  73. },
  74. mounted() {},
  75. methods: {
  76. getParent(query) {
  77. Object.assign(this.mixins_query, query);
  78. this.mixins_search();
  79. }
  80. }
  81. };
  82. </script>
  83. <style scoped lang='scss'>
  84. @import '@assets/css/public-style.scss';
  85. .search_bottom_tab {
  86. height: 60px;
  87. line-height: 60px;
  88. background: #ffffff;
  89. border-radius: 4px;
  90. margin-bottom: 20px;
  91. padding: 0 20px;
  92. box-sizing: border-box;
  93. .tab_list {
  94. display: inline-block;
  95. border-bottom: 1px solid transparent;
  96. cursor: pointer;
  97. &:not(:last-child) {
  98. margin-right: 40px;
  99. }
  100. &.active {
  101. color: $mainTextColor;
  102. border-color: $mainTextColor;
  103. }
  104. }
  105. }
  106. </style>