1
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
114
| <template>
| <div>
| <div style="padding: 10px 10px 0px 10px;">
| <el-form :inline="true" :model="searchForm">
| <el-form-item label="停车场">
| <el-select v-model="searchForm.parkId" clearable>
| <el-option v-for="item in table1" :key="item.id" :label="item.name" :value="item.id" ></el-option>
| </el-select>
| </el-form-item>
| <el-form-item label="车牌号">
| <el-input v-model="searchForm.carNo" clearable></el-input>
| </el-form-item>
| <el-form-item label="姓名">
| <el-input v-model="searchForm.name" clearable></el-input>
| </el-form-item>
| <el-form-item label="手机号">
| <el-input v-model="searchForm.phone" clearable></el-input>
| </el-form-item>
| <el-form-item>
| <el-button type="primary" size="small" @click="onSearch" icon="el-icon-search">查询</el-button>
| </el-form-item>
| </el-form>
| </div>
|
| <el-table :height="tableHeight" :data="pageData.rows" v-loading="pageData.isLoading" border style="width:100%;border:1px solid #bcbec2;">
| <el-table-column type="index" width="50" label="序号" align="center"> </el-table-column>
| <el-table-column prop="name" label="停车场" align="center" width="150"></el-table-column>
| <el-table-column
| prop="carNo"
| header-align="center"
| align="center"
| label="车牌号">
| </el-table-column>
| <el-table-column prop="name" label="名称" align="center"></el-table-column>
| <el-table-column prop="phone" label="手机号" align="center"></el-table-column>
| <el-table-column prop="money" label="缴费金额" align="center"></el-table-column>
| </el-table>
| <el-pagination background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="float: right"></el-pagination>
| </div>
| </template>
|
| <script>
| export default {
| name: "index",
| data: function () {
| return {
| flag:false,
| flag2:false,
| searchForm: {
| name: '',
| carNo:'',
| type:null,
| date: null
| },
| pageData: this.$byutil.defaultPageData(),
| formData: {
| type: 0,
| parkId:null,
| carNo:null,
| phone:0,
| sixMonthMoney:0,
| yearMoney:0,
| name: '',
| createBy:'',
| updateBy:''
| },
| ids:[],
| urlPath:this.$systemconfig.basePath + '/ffzf/paymentLog/',
| table1:[],
| userName:'',
| tableHeight:500,
| }
| },
| mounted() {
| let username = localStorage.getItem('name')
| this.formData.createBy = username
| this.userName = username
| this.loadData();
| this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/park/findAll', this.formData, res => {
| this.table1 = res.data;
| })
| this.tableHeight = window.innerHeight - 260
| },
| methods: {
| selectChange(value){
| if(value==1){
| this.flag2 = true;
| }else{
| this.flag2 = false;
| }
| },
|
| loadData() {
| this.$byutil.loadPageData(this, this.urlPath+'findPage', this.searchForm);
| },
| onSearch() {
| this.pageData = this.$byutil.defaultPageData();
| this.loadData();
| },
| onPageSizeChange(val) {
| this.pageData.pageSize = val;
| this.loadData();
| },
| onCurrentPageChange(val) {
| this.pageData.page = val;
| this.loadData();
| },
| }
| }
| </script>
|
| <style scoped>
|
| </style>
|
|