Blame view

src/views/account/index.vue 6.4 KB
613d2a9c   Andy   add icon
1
  <template>
e4acf226   Andy   add 我的钱包前端页面 table
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    <div class="app-container">
      <!--卡片-->
      <el-row :gutter="16" class="card-second-top">
        <el-col :span="12">
          <el-card class="box-card">
            <el-row :gutter="24">
              <el-col :span="8" style="text-align: center">
                <svg-icon icon-class="recharge" class="svg-icon" style="width: 48px;height: 48px" />
              </el-col>
              <el-col :span="12" :offset="4">
                <el-row :gutter="16"><el-col :span="24">充值账户(元)</el-col></el-row>
                <el-row :gutter="16" class="common-color font-size24" style="margin-top: 4px"><el-col :span="24">240.0</el-col></el-row>
              </el-col>
            </el-row>
          </el-card>
        </el-col>
        <el-col :span="12">
          <el-card class="box-card">
            <el-row :gutter="24">
              <el-col :span="8" style="text-align: center">
                <svg-icon icon-class="give" style="width: 48px;height: 48px" />
              </el-col>
              <el-col :span="12" :offset="4">
                <el-row :gutter="16"><el-col :span="24">赠送账户(元)</el-col></el-row>
                <el-row :gutter="16" class="common-color font-size24" style="margin-top: 4px"><el-col :span="24">140.0</el-col></el-row>
              </el-col>
            </el-row>
          </el-card>
        </el-col>
      </el-row>
      <!--账户明细 sta-->
      <el-card shadow="always" class="card-second-top margin-top-24">
        <el-tabs :tab-position="left" >
          <el-tab-pane label="充值记录">
            <el-table
              :data="paytableData"
              style="width: 100%;"
              :show-overflow-tooltip="true">
              <el-table-column
                prop="parkName"
                label="账户类型"
                :show-overflow-tooltip="true">
              </el-table-column>
              <el-table-column
                prop="license"
                label="充值金额"
                :show-overflow-tooltip="true">
              </el-table-column>
              <el-table-column
                prop="money"
                label="充值后余额">
              </el-table-column>
              <el-table-column
                prop="inTime"
                label="充值时间"
                :show-overflow-tooltip="true">
              </el-table-column>
            </el-table>
            <el-pagination
              :page-size="10"
              :pager-count="11"
              layout="prev, pager, next"
              :total="total">
            </el-pagination>
          </el-tab-pane>
          <el-tab-pane label="支出记录">
            <el-table
              :data="outtableData"
              style="width: 100%;"
              :show-overflow-tooltip="true">
              <el-table-column
                prop="parkName"
                label="账户类型"
                :show-overflow-tooltip="true">
              </el-table-column>
              <el-table-column
                prop="license"
                label="交易金额"
                :show-overflow-tooltip="true">
              </el-table-column>
              <el-table-column
                prop="money"
                label="交易后余额">
              </el-table-column>
              <el-table-column
                prop="outtype"
                label="交易类型">
              </el-table-column>
              <el-table-column
                prop="inTime"
                label="交易时间"
                :show-overflow-tooltip="true">
              </el-table-column>
            </el-table>
            <el-pagination
              :page-size="10"
              :pager-count="21"
              layout="prev, pager, next"
              :total="total">
            </el-pagination>
          </el-tab-pane>
        </el-tabs>
  
       <!-- <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
          <el-tab-pane label="充值" name="first">
  
          </el-tab-pane>
          <el-tab-pane label="支出" name="second">配置管理</el-tab-pane>
        </el-tabs>-->
  
      </el-card>
    </div>
613d2a9c   Andy   add icon
114
115
116
117
  </template>
  
  <script>
  // import { getList } from '@/api/table'
e4acf226   Andy   add 我的钱包前端页面 table
118
119
120
  import pagination from '@/components/Pagination/index.vue';
  import LoadingBar from 'nprogress' // progress bar
  import 'nprogress/nprogress.css' // progress bar style
613d2a9c   Andy   add icon
121
122
  
  export default {
e4acf226   Andy   add 我的钱包前端页面 table
123
124
125
    components:{
      'i-pagination': pagination
    },
613d2a9c   Andy   add icon
126
127
128
129
130
131
    filters: {
  
    },
    data() {
      return {
        list: null,
e4acf226   Andy   add 我的钱包前端页面 table
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
        listLoading: true,
        btnLoading:false,
        loading:false,
        paytableData: [
          {
            parkName: '个人账户',
            license: '21',
            money: '31',
            inTime: '2019-06-02 09:00:00',
          },
          {
            parkName: '个人账户',
            license: '10',
            money: '31',
            inTime: '2019-06-02 00:23:00',
          },
          {
            parkName: '个人账户',
            license: '21',
            money: '31',
            inTime: '2019-06-02 09:00:00',
          },
          {
            parkName: '个人账户',
            license: '10',
            money: '31',
            inTime: '2019-06-02 00:23:00',
          },{
            parkName: '个人账户',
            license: '10',
            money: '31',
            inTime: '2019-06-02 00:23:00',
          },
        ],
        outtableData: [
          {
            parkName: '个人账户',
            license: '21',
            money: '31',
            outtype: '停车支付',
            inTime: '2019-06-02 09:00:00',
          },
          {
            parkName: '个人账户',
            license: '10',
            money: '31',
            outtype: '停车支付',
            inTime: '2019-06-02 00:23:00',
          },
          {
            parkName: '个人账户',
            license: '21',
            money: '31',
            outtype: '停车支付',
            inTime: '2019-06-02 09:00:00',
          },
          {
            parkName: '个人账户',
            license: '10',
            money: '31',
            outtype: '停车支付',
            inTime: '2019-06-02 00:23:00',
          },
        ],
        /** 分页*/
        total: 32,
        currentPage: 1,
        pageSize: 10,
613d2a9c   Andy   add icon
200
201
      }
    },
e4acf226   Andy   add 我的钱包前端页面 table
202
203
    computed: {
    },
613d2a9c   Andy   add icon
204
205
206
    created() {
  
    },
e4acf226   Andy   add 我的钱包前端页面 table
207
208
    mounted:function () {
    },
613d2a9c   Andy   add icon
209
    methods: {
e4acf226   Andy   add 我的钱包前端页面 table
210
211
212
213
214
215
216
217
218
219
220
221
222
      queryBtn:function () {
        LoadingBar.start();
        this.btnLoading=true;
        this.loading = true;
  
      },
      /**获取子组件页码方法*/
      handleSizeChange: function(pages) {
        this.currentPage = pages.page;
        this.pageSize = pages.limit;
        /** 调用表格数据.*/
        this.queryBtn();
      },
613d2a9c   Andy   add icon
223
224
225
226
  
    }
  }
  </script>
e4acf226   Andy   add 我的钱包前端页面 table
227
228
229
230
231
232
233
234
235
236
  <style lang="scss" scoped >
    .serch-wrap{
      background-color: #FFF;
      padding: 15px;
    }
    .el-card__header{
      padding:10px 20px!important;;
    }
  
  </style>