|
@@ -4,13 +4,8 @@
|
4
|
4
|
<el-form class="form-wrapper" :inline="true" :model="formInline">
|
5
|
5
|
<el-row>
|
6
|
6
|
<el-col :span="8">
|
7
|
|
- <el-form-item label="关键时间节点:">
|
8
|
|
- <el-input v-model="formInline.searchTime" placeholder="请输入关键时间节点"></el-input>
|
9
|
|
- </el-form-item>
|
10
|
|
- </el-col>
|
11
|
|
- <el-col :span="8">
|
12
|
|
- <el-form-item label="关键字:">
|
13
|
|
- <el-input v-model="formInline.searchWord" placeholder="请输入关键字"></el-input>
|
|
7
|
+ <el-form-item label="车牌号:">
|
|
8
|
+ <el-input v-model="formInline.plateNo" placeholder="请输入车牌号"></el-input>
|
14
|
9
|
</el-form-item>
|
15
|
10
|
</el-col>
|
16
|
11
|
<el-col :span="8">
|
|
@@ -24,62 +19,17 @@
|
24
|
19
|
<el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
|
25
|
20
|
<el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
|
26
|
21
|
</el-table-column>
|
27
|
|
-<!-- <el-table-column label="操作" width="150">-->
|
28
|
|
-<!-- <template slot-scope="scope" style="display: inline-block">-->
|
29
|
|
-<!-- <el-button type="primary" @click="handleAudit(scope.row)" slot="reference">修改</el-button>-->
|
30
|
|
-<!-- <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">-->
|
31
|
|
-<!-- <el-button type="danger" slot="reference">删除</el-button>-->
|
32
|
|
-<!-- </el-popconfirm>-->
|
33
|
|
-<!-- </template>-->
|
34
|
|
-<!-- </el-table-column>-->
|
35
|
22
|
</el-table>
|
36
|
23
|
<div class="table-pagination">
|
37
|
24
|
<el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
|
38
|
25
|
:current-page.sync="pageNum" :page-size.sync="pageSize">
|
39
|
26
|
</el-pagination>
|
40
|
27
|
</div>
|
41
|
|
- <el-dialog
|
42
|
|
- :title="title"
|
43
|
|
- :visible.sync="dialogVisible"
|
44
|
|
- width="50%"
|
45
|
|
- custom-class="audit-dialog">
|
46
|
|
- <div style="height: 350px" class="form-div">
|
47
|
|
- <el-form label-position="left" label-width="80px" :model="formLabelAlign">
|
48
|
|
- <el-form-item label="停车路段">
|
49
|
|
- <el-input v-model="formLabelAlign.parkRoad"></el-input>
|
50
|
|
- </el-form-item>
|
51
|
|
- <el-form-item label="停车位置">
|
52
|
|
- <el-input v-model="formLabelAlign.parkStall"></el-input>
|
53
|
|
- </el-form-item>
|
54
|
|
- <el-form-item label="车牌号">
|
55
|
|
- <el-input v-model="formLabelAlign.plateCode"></el-input>
|
56
|
|
- </el-form-item>
|
57
|
|
- <el-form-item label="车牌类型">
|
58
|
|
- <el-input v-model="formLabelAlign.plateType"></el-input>
|
59
|
|
- </el-form-item>
|
60
|
|
- <el-form-item label="停车时间">
|
61
|
|
- <el-input v-model="formLabelAlign.parkTime"></el-input>
|
62
|
|
- </el-form-item>
|
63
|
|
- <el-form-item label="离开时间">
|
64
|
|
- <el-input v-model="formLabelAlign.leaveTime"></el-input>
|
65
|
|
- </el-form-item>
|
66
|
|
- <el-form-item label="修改人">
|
67
|
|
- <el-input v-model="formLabelAlign.revisePerson"></el-input>
|
68
|
|
- </el-form-item>
|
69
|
|
- <el-form-item label="修改时间">
|
70
|
|
- <el-input v-model="formLabelAlign.reviseTime"></el-input>
|
71
|
|
- </el-form-item>
|
72
|
|
- </el-form>
|
73
|
|
- </div>
|
74
|
|
- <span slot="footer" class="dialog-footer">
|
75
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
76
|
|
-<!-- <el-button type="primary" @click="handleConfirm">确 定</el-button>-->
|
77
|
|
- </span>
|
78
|
|
- </el-dialog>
|
79
|
28
|
</div>
|
80
|
29
|
</template>
|
81
|
30
|
<script>
|
82
|
31
|
import api from "@/api/audit.js";
|
|
32
|
+import dictionary from "@/util/dictionary";
|
83
|
33
|
|
84
|
34
|
export default {
|
85
|
35
|
components: {},
|
|
@@ -104,7 +54,7 @@ export default {
|
104
|
54
|
},
|
105
|
55
|
{
|
106
|
56
|
label: '车牌类型',
|
107
|
|
- key: 'type'
|
|
57
|
+ key: 'plateColor'
|
108
|
58
|
},
|
109
|
59
|
{
|
110
|
60
|
label: '入场时间',
|
|
@@ -133,18 +83,7 @@ export default {
|
133
|
83
|
pageNum: 1,
|
134
|
84
|
searchWords: undefined,
|
135
|
85
|
formInline: {
|
136
|
|
- searchTime: '',
|
137
|
|
- searchWord: ''
|
138
|
|
- },
|
139
|
|
- formLabelAlign: {
|
140
|
|
- parkRoad: '',
|
141
|
|
- parkStall: '',
|
142
|
|
- plateCode: '',
|
143
|
|
- plateType: '',
|
144
|
|
- parkTime: '',
|
145
|
|
- leaveTime: '',
|
146
|
|
- revisePerson: '',
|
147
|
|
- reviseTime: '',
|
|
86
|
+ plateNo: ''
|
148
|
87
|
},
|
149
|
88
|
title: ''
|
150
|
89
|
}
|
|
@@ -155,47 +94,16 @@ export default {
|
155
|
94
|
watch: {
|
156
|
95
|
},
|
157
|
96
|
methods: {
|
158
|
|
- handleAudit(row) {
|
159
|
|
- this.title = '修改停车收费取证'
|
160
|
|
- this.formLabelAlign.parkRoad = row.resourceName
|
161
|
|
- this.formLabelAlign.parkStall = row.resourceName
|
162
|
|
- this.formLabelAlign.plateCode = row.resourceName
|
163
|
|
- this.formLabelAlign.plateType = row.resourceName
|
164
|
|
- this.formLabelAlign.parkTime = row.resourceName
|
165
|
|
- this.formLabelAlign.leaveTime = row.resourceName
|
166
|
|
- this.formLabelAlign.revisePerson = row.resourceName
|
167
|
|
- this.formLabelAlign.reviseTime = row.resourceName
|
168
|
|
- this.formLabelAlign=row
|
169
|
|
- this.dialogVisible = true
|
170
|
|
- },
|
171
|
|
- deleteRow (record) {
|
172
|
|
- console.log(record)
|
173
|
|
- },
|
174
|
97
|
handlePageChange() {
|
175
|
98
|
this.getTableData()
|
176
|
99
|
},
|
177
|
|
- handleCancelApply(row) {
|
178
|
|
- console.log('enter handle cancel apply')
|
179
|
|
- },
|
180
|
|
- handleConfirm() {
|
181
|
|
- // api.tcsfztListByPage({id, applyType: this.formLabelAlign.parkRoad}).then(res => {
|
182
|
|
- // if(res.success) {
|
183
|
|
- // this.dialogVisible = false
|
184
|
|
- // this.$message({
|
185
|
|
- // message: '审核成功!',
|
186
|
|
- // type: 'success'
|
187
|
|
- // })
|
188
|
|
- // this.getTableData()
|
189
|
|
- // }
|
190
|
|
- // })
|
191
|
|
- },
|
192
|
100
|
onSubmit () {
|
193
|
101
|
this.getTableData()
|
194
|
102
|
},
|
195
|
103
|
getTableData() {
|
196
|
104
|
const {pageNum, pageSize} = this
|
197
|
|
- api.tcsfztListByPage({current: pageNum, size: pageSize}).then(res => {
|
198
|
|
- this.tableData = res.data.records || []
|
|
105
|
+ api.tcsfztListByPage({current: pageNum, size: pageSize, ...this.formInline}).then(res => {
|
|
106
|
+ this.tableData = (res.data.records || []).map(item => ({...item, plateColor: dictionary.plateColorMap[item.plateColor]}))
|
199
|
107
|
this.total = res.data.total
|
200
|
108
|
})
|
201
|
109
|
}
|