|
@@ -0,0 +1,734 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="body-wrapper">
|
|
3
|
+ <el-tabs v-model="activeName">
|
|
4
|
+ <el-tab-pane label="业务参数配置" name="业务参数配置">
|
|
5
|
+ <el-form class="form-wrapper" :inline="true" :model="formInline1" style="margin-bottom: 20px;">
|
|
6
|
+ <el-row>
|
|
7
|
+ <el-col :span="8">
|
|
8
|
+ <el-form-item label="所在区域:">
|
|
9
|
+ <el-input v-model="formInline1.localArea" placeholder="请输入"></el-input>
|
|
10
|
+ </el-form-item>
|
|
11
|
+ </el-col>
|
|
12
|
+ <el-col :span="8">
|
|
13
|
+ <el-form-item label="业务类型:">
|
|
14
|
+ <el-input v-model="formInline1.businessType" placeholder="请输入"></el-input>
|
|
15
|
+ </el-form-item>
|
|
16
|
+ </el-col>
|
|
17
|
+ <el-col :span="8">
|
|
18
|
+ <el-form-item>
|
|
19
|
+ <el-button type="primary" class="query-btn" @click="onSubmit1">查询</el-button>
|
|
20
|
+ </el-form-item>
|
|
21
|
+ <el-form-item>
|
|
22
|
+ <el-button type="success" @click="handleAdd">添加</el-button>
|
|
23
|
+ </el-form-item>
|
|
24
|
+ </el-col>
|
|
25
|
+ </el-row>
|
|
26
|
+ </el-form>
|
|
27
|
+ <el-table :data="tableData1">
|
|
28
|
+ <el-table-column v-for="(item, index) in columns1" :key="index" :label="item.label" :prop="item.key">
|
|
29
|
+ </el-table-column>
|
|
30
|
+ <el-table-column
|
|
31
|
+ label="操作"
|
|
32
|
+ width="200">
|
|
33
|
+ <template slot-scope="scope" style="display: inline-block">
|
|
34
|
+ <el-button type="primary" @click="handleEdit(scope.row)" slot="reference">修改</el-button>
|
|
35
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">
|
|
36
|
+ <el-button type="danger" slot="reference">删除</el-button>
|
|
37
|
+ </el-popconfirm>
|
|
38
|
+ </template>
|
|
39
|
+ </el-table-column>
|
|
40
|
+ </el-table>
|
|
41
|
+ <div class="table-pagination">
|
|
42
|
+ <el-pagination layout="prev, pager, next" :total="total1" @current-change="handlePageChange1"
|
|
43
|
+ :current-page.sync="pageNum1" :page-size.sync="pageSize1">
|
|
44
|
+ </el-pagination>
|
|
45
|
+ </div>
|
|
46
|
+ <el-dialog
|
|
47
|
+ :title="title"
|
|
48
|
+ :visible.sync="dialogVisible"
|
|
49
|
+ width="45%"
|
|
50
|
+ custom-class="audit-dialog">
|
|
51
|
+ <div class="form-div">
|
|
52
|
+ <el-form label-position="left" label-width="100px" :model="formLabelAlign">
|
|
53
|
+ <el-form-item label="所在区域">
|
|
54
|
+ <el-input v-model="formLabelAlign.localArea"></el-input>
|
|
55
|
+ </el-form-item>
|
|
56
|
+ <el-form-item label="业务类型">
|
|
57
|
+ <el-input v-model="formLabelAlign.businessType"></el-input>
|
|
58
|
+ </el-form-item>
|
|
59
|
+ <el-form-item label="内容">
|
|
60
|
+ <el-input v-model="formLabelAlign.content"></el-input>
|
|
61
|
+ </el-form-item>
|
|
62
|
+ <el-form-item label="参数配置">
|
|
63
|
+ <el-input v-model="formLabelAlign.parameterConfiguration"></el-input>
|
|
64
|
+ </el-form-item>
|
|
65
|
+ </el-form>
|
|
66
|
+ </div>
|
|
67
|
+ <span slot="footer" class="dialog-footer">
|
|
68
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
69
|
+ <el-button type="primary" @click="handleConfirm">确 定</el-button>
|
|
70
|
+ </span>
|
|
71
|
+ </el-dialog>
|
|
72
|
+ </el-tab-pane>
|
|
73
|
+ <el-tab-pane label="节假日配置" name="节假日配置">
|
|
74
|
+ <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
|
|
75
|
+ <el-row>
|
|
76
|
+ <el-col :span="8">
|
|
77
|
+ <el-form-item label="所在区域:">
|
|
78
|
+ <el-input v-model="formInline2.localArea" placeholder="请输入"></el-input>
|
|
79
|
+ </el-form-item>
|
|
80
|
+ </el-col>
|
|
81
|
+ <el-col :span="8">
|
|
82
|
+ <el-form-item label="节假日名称:">
|
|
83
|
+ <el-input v-model="formInline2.holidayName" placeholder="请输入"></el-input>
|
|
84
|
+ </el-form-item>
|
|
85
|
+ </el-col>
|
|
86
|
+ <el-col :span="8">
|
|
87
|
+ <el-form-item>
|
|
88
|
+ <el-button type="primary" class="query-btn" @click="onSubmit2">查询</el-button>
|
|
89
|
+ </el-form-item>
|
|
90
|
+ <el-form-item>
|
|
91
|
+ <el-button type="success" @click="handleAdd2">添加</el-button>
|
|
92
|
+ </el-form-item>
|
|
93
|
+ </el-col>
|
|
94
|
+ </el-row>
|
|
95
|
+ </el-form>
|
|
96
|
+ <el-table :data="tableData2">
|
|
97
|
+ <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
|
|
98
|
+ </el-table-column>
|
|
99
|
+ <el-table-column
|
|
100
|
+ label="操作"
|
|
101
|
+ width="200">
|
|
102
|
+ <template slot-scope="scope" style="display: inline-block">
|
|
103
|
+ <el-button type="primary" @click="handleEdit2(scope.row)" slot="reference">修改</el-button>
|
|
104
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteRow2(scope.row)">
|
|
105
|
+ <el-button type="danger" slot="reference">删除</el-button>
|
|
106
|
+ </el-popconfirm>
|
|
107
|
+ </template>
|
|
108
|
+ </el-table-column>
|
|
109
|
+ </el-table>
|
|
110
|
+ <div class="table-pagination">
|
|
111
|
+ <el-pagination layout="prev, pager, next" :total="total2" @current-change="handlePageChange2"
|
|
112
|
+ :current-page.sync="pageNum2" :page-size.sync="pageSize2">
|
|
113
|
+ </el-pagination>
|
|
114
|
+ </div>
|
|
115
|
+ <el-dialog
|
|
116
|
+ :title="title2"
|
|
117
|
+ :visible.sync="dialogVisible2"
|
|
118
|
+ width="45%"
|
|
119
|
+ custom-class="audit-dialog">
|
|
120
|
+ <div class="form-div">
|
|
121
|
+ <el-form label-position="left" label-width="145px" :model="formLabelAlign2">
|
|
122
|
+ <el-form-item label="所在区域">
|
|
123
|
+ <el-input v-model="formLabelAlign2.localArea"></el-input>
|
|
124
|
+ </el-form-item>
|
|
125
|
+ <el-form-item label="节假日名称">
|
|
126
|
+ <el-input v-model="formLabelAlign2.holidayName"></el-input>
|
|
127
|
+ </el-form-item>
|
|
128
|
+ <el-form-item label="基础停车费(元/小时)">
|
|
129
|
+ <el-input v-model="formLabelAlign2.basicFee"></el-input>
|
|
130
|
+ </el-form-item>
|
|
131
|
+ <el-form-item label="超时费(元/小时)">
|
|
132
|
+ <el-input v-model="formLabelAlign2.overtimeFee"></el-input>
|
|
133
|
+ </el-form-item>
|
|
134
|
+ </el-form>
|
|
135
|
+ </div>
|
|
136
|
+ <span slot="footer" class="dialog-footer">
|
|
137
|
+ <el-button @click="dialogVisible2 = false">取 消</el-button>
|
|
138
|
+ <el-button type="primary" @click="handleConfirm2">确 定</el-button>
|
|
139
|
+ </span>
|
|
140
|
+ </el-dialog>
|
|
141
|
+ </el-tab-pane>
|
|
142
|
+ <el-tab-pane label="热门商圈配置" name="热门商圈配置">
|
|
143
|
+ <el-form class="form-wrapper" :inline="true" :model="formInline3" style="margin-bottom: 20px;">
|
|
144
|
+ <el-row>
|
|
145
|
+ <el-col :span="8">
|
|
146
|
+ <el-form-item label="所在区域:">
|
|
147
|
+ <el-input v-model="formInline3.localArea" placeholder="请输入"></el-input>
|
|
148
|
+ </el-form-item>
|
|
149
|
+ </el-col>
|
|
150
|
+ <el-col :span="8">
|
|
151
|
+ <el-form-item label="商圈名称:">
|
|
152
|
+ <el-input v-model="formInline3.businessDistrictName" placeholder="请输入"></el-input>
|
|
153
|
+ </el-form-item>
|
|
154
|
+ </el-col>
|
|
155
|
+ <el-col :span="8">
|
|
156
|
+ <el-form-item>
|
|
157
|
+ <el-button type="primary" class="query-btn" @click="onSubmit3">查询</el-button>
|
|
158
|
+ </el-form-item>
|
|
159
|
+ <el-form-item>
|
|
160
|
+ <el-button type="success" @click="handleAdd3">添加</el-button>
|
|
161
|
+ </el-form-item>
|
|
162
|
+ </el-col>
|
|
163
|
+ </el-row>
|
|
164
|
+ </el-form>
|
|
165
|
+ <el-table :data="tableData3">
|
|
166
|
+ <el-table-column v-for="(item, index) in columns3" :key="index" :label="item.label" :prop="item.key">
|
|
167
|
+ </el-table-column>
|
|
168
|
+ <el-table-column
|
|
169
|
+ label="操作"
|
|
170
|
+ width="200">
|
|
171
|
+ <template slot-scope="scope" style="display: inline-block">
|
|
172
|
+ <el-button type="primary" @click="handleEdit3(scope.row)" slot="reference">修改</el-button>
|
|
173
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteRow3(scope.row)">
|
|
174
|
+ <el-button type="danger" slot="reference">删除</el-button>
|
|
175
|
+ </el-popconfirm>
|
|
176
|
+ </template>
|
|
177
|
+ </el-table-column>
|
|
178
|
+ </el-table>
|
|
179
|
+ <div class="table-pagination">
|
|
180
|
+ <el-pagination layout="prev, pager, next" :total="total3" @current-change="handlePageChange3"
|
|
181
|
+ :current-page.sync="pageNum3" :page-size.sync="pageSize3">
|
|
182
|
+ </el-pagination>
|
|
183
|
+ </div>
|
|
184
|
+
|
|
185
|
+ <el-dialog
|
|
186
|
+ :title="title3"
|
|
187
|
+ :visible.sync="dialogVisible3"
|
|
188
|
+ width="45%"
|
|
189
|
+ custom-class="audit-dialog">
|
|
190
|
+ <div class="form-div">
|
|
191
|
+ <el-form label-position="left" label-width="145px" :model="formLabelAlign3">
|
|
192
|
+ <el-form-item label="所在区域">
|
|
193
|
+ <el-input v-model="formLabelAlign3.localArea"></el-input>
|
|
194
|
+ </el-form-item>
|
|
195
|
+ <el-form-item label="商圈名称">
|
|
196
|
+ <el-input v-model="formLabelAlign3.businessDistrictName"></el-input>
|
|
197
|
+ </el-form-item>
|
|
198
|
+ <el-form-item label="基础停车费(元/小时)">
|
|
199
|
+ <el-input v-model="formLabelAlign3.basicFee"></el-input>
|
|
200
|
+ </el-form-item>
|
|
201
|
+ <el-form-item label="超时费(元/小时)">
|
|
202
|
+ <el-input v-model="formLabelAlign3.overtimeFee"></el-input>
|
|
203
|
+ </el-form-item>
|
|
204
|
+ </el-form>
|
|
205
|
+ </div>
|
|
206
|
+ <span slot="footer" class="dialog-footer">
|
|
207
|
+ <el-button @click="dialogVisible3 = false">取 消</el-button>
|
|
208
|
+ <el-button type="primary" @click="handleConfirm3">确 定</el-button>
|
|
209
|
+ </span>
|
|
210
|
+ </el-dialog>
|
|
211
|
+ </el-tab-pane>
|
|
212
|
+ <el-tab-pane label="停车概览页面配置" name="停车概览页面配置">
|
|
213
|
+ <el-form class="form-wrapper" :inline="true" :model="formInline4" style="margin-bottom: 20px;">
|
|
214
|
+ <el-row>
|
|
215
|
+ <el-col :span="8">
|
|
216
|
+ <el-form-item label="暂未改:">
|
|
217
|
+ <el-input v-model="formInline4.tollCollector" placeholder="请输入"></el-input>
|
|
218
|
+ </el-form-item>
|
|
219
|
+ </el-col>
|
|
220
|
+ <el-col :span="8">
|
|
221
|
+ <el-form-item label="车牌号:">
|
|
222
|
+ <el-input v-model="formInline4.plateNo" placeholder="请输入"></el-input>
|
|
223
|
+ </el-form-item>
|
|
224
|
+ </el-col>
|
|
225
|
+ <el-col :span="8">
|
|
226
|
+ <el-form-item>
|
|
227
|
+ <el-button type="primary" class="query-btn" @click="onSubmit4">查询</el-button>
|
|
228
|
+ </el-form-item>
|
|
229
|
+ <el-form-item>
|
|
230
|
+ <el-button type="success" @click="handleAdd4">添加</el-button>
|
|
231
|
+ </el-form-item>
|
|
232
|
+ </el-col>
|
|
233
|
+ </el-row>
|
|
234
|
+ </el-form>
|
|
235
|
+ <el-table :data="tableData4">
|
|
236
|
+ <el-table-column v-for="(item, index) in columns4" :key="index" :label="item.label" :prop="item.key">
|
|
237
|
+ </el-table-column>
|
|
238
|
+ <el-table-column
|
|
239
|
+ label="操作"
|
|
240
|
+ width="200">
|
|
241
|
+ <template slot-scope="scope" style="display: inline-block">
|
|
242
|
+ <el-button type="primary" @click="handleEdit4(scope.row)" slot="reference">修改</el-button>
|
|
243
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteRow4(scope.row)">
|
|
244
|
+ <el-button type="danger" slot="reference">删除</el-button>
|
|
245
|
+ </el-popconfirm>
|
|
246
|
+ </template>
|
|
247
|
+ </el-table-column>
|
|
248
|
+ </el-table>
|
|
249
|
+ <div class="table-pagination">
|
|
250
|
+ <el-pagination layout="prev, pager, next" :total="total4" @current-change="handlePageChange4"
|
|
251
|
+ :current-page.sync="pageNum4" :page-size.sync="pageSize4">
|
|
252
|
+ </el-pagination>
|
|
253
|
+ </div>
|
|
254
|
+
|
|
255
|
+ <el-dialog
|
|
256
|
+ :title="title4"
|
|
257
|
+ :visible.sync="dialogVisible4"
|
|
258
|
+ width="45%"
|
|
259
|
+ custom-class="audit-dialog">
|
|
260
|
+ <div class="form-div">
|
|
261
|
+ <el-form label-position="left" label-width="100px" :model="formLabelAlign4">
|
|
262
|
+ <el-form-item label="收费员">
|
|
263
|
+ <el-input v-model="formLabelAlign4.tollCollector"></el-input>
|
|
264
|
+ </el-form-item>
|
|
265
|
+ <el-form-item label="车牌号">
|
|
266
|
+ <el-input v-model="formLabelAlign4.plateNo"></el-input>
|
|
267
|
+ </el-form-item>
|
|
268
|
+ <el-form-item label="放行时间">
|
|
269
|
+ <el-date-picker
|
|
270
|
+ v-model="formLabelAlign4.releaseTime"
|
|
271
|
+ type="date"
|
|
272
|
+ placeholder="选择日期">
|
|
273
|
+ </el-date-picker>
|
|
274
|
+ </el-form-item>
|
|
275
|
+ <el-form-item label="放行原因">
|
|
276
|
+ <el-input v-model="formLabelAlign4.releaseReason"></el-input>
|
|
277
|
+ </el-form-item>
|
|
278
|
+ </el-form>
|
|
279
|
+ </div>
|
|
280
|
+ <span slot="footer" class="dialog-footer">
|
|
281
|
+ <el-button @click="dialogVisible4 = false">取 消</el-button>
|
|
282
|
+ <el-button type="primary" @click="handleConfirm4">确 定</el-button>
|
|
283
|
+ </span>
|
|
284
|
+ </el-dialog>
|
|
285
|
+ </el-tab-pane>
|
|
286
|
+ </el-tabs>
|
|
287
|
+ </div>
|
|
288
|
+</template>
|
|
289
|
+<script>
|
|
290
|
+import api from "@/api/audit.js";
|
|
291
|
+import dictionary from "@/util/dictionary";
|
|
292
|
+
|
|
293
|
+export default {
|
|
294
|
+ components: {},
|
|
295
|
+ data() {
|
|
296
|
+ return {
|
|
297
|
+ activeName: '业务参数配置',
|
|
298
|
+ columns1: [
|
|
299
|
+ {
|
|
300
|
+ label: '所在区域',
|
|
301
|
+ key: 'localArea'
|
|
302
|
+ },
|
|
303
|
+ {
|
|
304
|
+ label: '业务类型',
|
|
305
|
+ key: 'businessType'
|
|
306
|
+ },
|
|
307
|
+ {
|
|
308
|
+ label: '内容',
|
|
309
|
+ key: 'content'
|
|
310
|
+ },
|
|
311
|
+ {
|
|
312
|
+ label: '参数配置',
|
|
313
|
+ key: 'parameterConfiguration'
|
|
314
|
+ },
|
|
315
|
+ ],
|
|
316
|
+ tableData1: [{localArea: 'sasa'}],
|
|
317
|
+ total1: 0,
|
|
318
|
+ pageSize1: 10,
|
|
319
|
+ pageNum1: 1,
|
|
320
|
+ formInline1: {
|
|
321
|
+ localArea: '',
|
|
322
|
+ businessType:'',
|
|
323
|
+ },
|
|
324
|
+ title: '',
|
|
325
|
+ dialogVisible: false,
|
|
326
|
+ formLabelAlign: {
|
|
327
|
+ id: '',
|
|
328
|
+ localArea: '',
|
|
329
|
+ businessType:'',
|
|
330
|
+ content: '',
|
|
331
|
+ parameterConfiguration: '',
|
|
332
|
+ },
|
|
333
|
+ columns2: [
|
|
334
|
+ {
|
|
335
|
+ label: '所在区域',
|
|
336
|
+ key: 'localArea'
|
|
337
|
+ },
|
|
338
|
+ {
|
|
339
|
+ label: '节假日名称',
|
|
340
|
+ key: 'holidayName'
|
|
341
|
+ },
|
|
342
|
+ {
|
|
343
|
+ label: '基础停车费(元/小时)',
|
|
344
|
+ key: 'basicFee'
|
|
345
|
+ },
|
|
346
|
+ {
|
|
347
|
+ label: '超时费(元/小时)',
|
|
348
|
+ key: 'overtimeFee'
|
|
349
|
+ },
|
|
350
|
+ ],
|
|
351
|
+ tableData2: [{localArea: 'sasa1'}],
|
|
352
|
+ total2: 0,
|
|
353
|
+ pageSize2: 10,
|
|
354
|
+ pageNum2: 1,
|
|
355
|
+ formInline2: {
|
|
356
|
+ localArea: '',
|
|
357
|
+ holidayName:'',
|
|
358
|
+ },
|
|
359
|
+ title2: '',
|
|
360
|
+ dialogVisible2: false,
|
|
361
|
+ formLabelAlign2: {
|
|
362
|
+ id: '',
|
|
363
|
+ localArea: '',
|
|
364
|
+ holidayName:'',
|
|
365
|
+ basicFee: '',
|
|
366
|
+ overtimeFee: '',
|
|
367
|
+ },
|
|
368
|
+ columns3: [
|
|
369
|
+ {
|
|
370
|
+ label: '所在区域',
|
|
371
|
+ key: 'localArea'
|
|
372
|
+ },
|
|
373
|
+ {
|
|
374
|
+ label: '商圈名称',
|
|
375
|
+ key: 'businessDistrictName'
|
|
376
|
+ },
|
|
377
|
+ {
|
|
378
|
+ label: '基础停车费(元/小时)',
|
|
379
|
+ key: 'basicFee'
|
|
380
|
+ },
|
|
381
|
+ {
|
|
382
|
+ label: '超时费(元/小时)',
|
|
383
|
+ key: 'overtimeFee'
|
|
384
|
+ },
|
|
385
|
+ ],
|
|
386
|
+ tableData3: [{carParkingName: 'sasa111'}],
|
|
387
|
+ total3: 0,
|
|
388
|
+ pageSize3: 10,
|
|
389
|
+ pageNum3: 1,
|
|
390
|
+ formInline3: {
|
|
391
|
+ localArea: '',
|
|
392
|
+ businessDistrictName: ''
|
|
393
|
+ },
|
|
394
|
+ title3: '',
|
|
395
|
+ dialogVisible3: false,
|
|
396
|
+ formLabelAlign3: {
|
|
397
|
+ id: '',
|
|
398
|
+ localArea: '',
|
|
399
|
+ businessDistrictName: '',
|
|
400
|
+ basicFee: '',
|
|
401
|
+ overtimeFee: '',
|
|
402
|
+ },
|
|
403
|
+ columns4: [
|
|
404
|
+ {
|
|
405
|
+ label: '收费员',
|
|
406
|
+ key: 'tollCollector'
|
|
407
|
+ },
|
|
408
|
+ {
|
|
409
|
+ label: '车牌号',
|
|
410
|
+ key: 'plateNo'
|
|
411
|
+ },
|
|
412
|
+ {
|
|
413
|
+ label: '放行时间',
|
|
414
|
+ key: 'releaseTime'
|
|
415
|
+ },
|
|
416
|
+ {
|
|
417
|
+ label: '放行原因',
|
|
418
|
+ key: 'releaseReason'
|
|
419
|
+ },
|
|
420
|
+ ],
|
|
421
|
+ tableData4: [{carParkingName: 'sasa1111'}],
|
|
422
|
+ total4: 0,
|
|
423
|
+ pageSize4: 10,
|
|
424
|
+ pageNum4: 1,
|
|
425
|
+ formInline4: {
|
|
426
|
+ tollCollector: '',
|
|
427
|
+ plateNo: '',
|
|
428
|
+ },
|
|
429
|
+ title4: '',
|
|
430
|
+ dialogVisible4: false,
|
|
431
|
+ formLabelAlign4: {
|
|
432
|
+ id: '',
|
|
433
|
+ tollCollector: '',
|
|
434
|
+ plateNo: '',
|
|
435
|
+ releaseTime: '',
|
|
436
|
+ releaseReason: '',
|
|
437
|
+ },
|
|
438
|
+ }
|
|
439
|
+ },
|
|
440
|
+ mounted() {
|
|
441
|
+ // this.getTableData1()
|
|
442
|
+ // this.getTableData2()
|
|
443
|
+ // this.getTableData3()
|
|
444
|
+ // this.getTableData4()
|
|
445
|
+ },
|
|
446
|
+ watch: {},
|
|
447
|
+ methods: {
|
|
448
|
+ onSubmit1() {
|
|
449
|
+ this.pageNum1 = 1
|
|
450
|
+ this.getTableData1()
|
|
451
|
+ },
|
|
452
|
+ handleAdd() {
|
|
453
|
+ this.title = '添加'
|
|
454
|
+ this.formLabelAlign.localArea = ''
|
|
455
|
+ this.formLabelAlign.businessType = ''
|
|
456
|
+ this.formLabelAlign.content = ''
|
|
457
|
+ this.formLabelAlign.parameterConfiguration = ''
|
|
458
|
+ this.dialogVisible = true
|
|
459
|
+ },
|
|
460
|
+ handleEdit(row) {
|
|
461
|
+ this.title = '修改'
|
|
462
|
+ this.formLabelAlign = {...row}
|
|
463
|
+ this.dialogVisible = true
|
|
464
|
+ },
|
|
465
|
+ deleteRow(record) {
|
|
466
|
+ api.deleteWhiteIp({id: record.id}).then(res => {
|
|
467
|
+ if (res.code === 200) {
|
|
468
|
+ this.$message({type: 'success', message: '删除成功!'})
|
|
469
|
+ this.getTableData1()
|
|
470
|
+ }
|
|
471
|
+ })
|
|
472
|
+ },
|
|
473
|
+ handleConfirm() {
|
|
474
|
+ if (this.title === '修改') {
|
|
475
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr, id: this.formLabelAlign.id}).then(res => {
|
|
476
|
+ if (res.code === 200) {
|
|
477
|
+ this.dialogVisible = false
|
|
478
|
+ this.$message({
|
|
479
|
+ message: '修改成功!',
|
|
480
|
+ type: 'success'
|
|
481
|
+ })
|
|
482
|
+ this.getTableData1()
|
|
483
|
+ }
|
|
484
|
+ })
|
|
485
|
+ } else {
|
|
486
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
|
|
487
|
+ if (res.code === 200) {
|
|
488
|
+ this.dialogVisible = false
|
|
489
|
+ this.$message({
|
|
490
|
+ message: '添加成功!',
|
|
491
|
+ type: 'success'
|
|
492
|
+ })
|
|
493
|
+ this.getTableData1()
|
|
494
|
+ }
|
|
495
|
+ })
|
|
496
|
+ }
|
|
497
|
+ },
|
|
498
|
+ onSubmit2() {
|
|
499
|
+ this.pageNum2 = 1
|
|
500
|
+ this.getTableData2()
|
|
501
|
+ },
|
|
502
|
+ handleAdd2() {
|
|
503
|
+ this.title2 = '添加'
|
|
504
|
+ this.formLabelAlign2.localArea= ''
|
|
505
|
+ this.formLabelAlign2.holidayName= ''
|
|
506
|
+ this.formLabelAlign2.basicFee= ''
|
|
507
|
+ this.formLabelAlign2.overtimeFee = ''
|
|
508
|
+ this.dialogVisible2 = true
|
|
509
|
+ },
|
|
510
|
+
|
|
511
|
+ handleEdit2(row) {
|
|
512
|
+ this.title2 = '修改'
|
|
513
|
+ this.formLabelAlign2 = {...row}
|
|
514
|
+ this.dialogVisible2 = true
|
|
515
|
+ },
|
|
516
|
+ deleteRow2(record) {
|
|
517
|
+ api.deleteWhiteIp({id: record.id}).then(res => {
|
|
518
|
+ if (res.code === 200) {
|
|
519
|
+ this.$message({type: 'success', message: '删除成功!'})
|
|
520
|
+ this.getTableData2()
|
|
521
|
+ }
|
|
522
|
+ })
|
|
523
|
+ },
|
|
524
|
+ handleConfirm2() {
|
|
525
|
+ if (this.title2 === '修改') {
|
|
526
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign2.ipAddr, id: this.formLabelAlign2.id}).then(res => {
|
|
527
|
+ if (res.code === 200) {
|
|
528
|
+ this.dialogVisible2 = false
|
|
529
|
+ this.$message({
|
|
530
|
+ message: '修改成功!',
|
|
531
|
+ type: 'success'
|
|
532
|
+ })
|
|
533
|
+ this.getTableData2()
|
|
534
|
+ }
|
|
535
|
+ })
|
|
536
|
+ } else {
|
|
537
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign2.ipAddr}).then(res => {
|
|
538
|
+ if (res.code === 200) {
|
|
539
|
+ this.dialogVisible2 = false
|
|
540
|
+ this.$message({
|
|
541
|
+ message: '添加成功!',
|
|
542
|
+ type: 'success'
|
|
543
|
+ })
|
|
544
|
+ this.getTableData2()
|
|
545
|
+ }
|
|
546
|
+ })
|
|
547
|
+ }
|
|
548
|
+ },
|
|
549
|
+ onSubmit3() {
|
|
550
|
+ this.pageNum3 = 1
|
|
551
|
+ this.getTableData3()
|
|
552
|
+ },
|
|
553
|
+ handleAdd3() {
|
|
554
|
+ this.title3 = '添加'
|
|
555
|
+ this.formLabelAlign3.localArea = ''
|
|
556
|
+ this.formLabelAlign3.businessDistrictName = ''
|
|
557
|
+ this.formLabelAlign3.basicFee = ''
|
|
558
|
+ this.formLabelAlign3.overtimeFee = ''
|
|
559
|
+ this.dialogVisible3 = true
|
|
560
|
+ },
|
|
561
|
+
|
|
562
|
+ handleEdit3(row) {
|
|
563
|
+ this.title3 = '修改'
|
|
564
|
+ this.formLabelAlign3 = {...row}
|
|
565
|
+ this.dialogVisible3 = true
|
|
566
|
+ },
|
|
567
|
+ deleteRow3(record) {
|
|
568
|
+ api.deleteWhiteIp({id: record.id}).then(res => {
|
|
569
|
+ if (res.code === 200) {
|
|
570
|
+ this.$message({type: 'success', message: '删除成功!'})
|
|
571
|
+ this.getTableData3()
|
|
572
|
+ }
|
|
573
|
+ })
|
|
574
|
+ },
|
|
575
|
+ handleConfirm3() {
|
|
576
|
+ if (this.title3 === '修改') {
|
|
577
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign3.ipAddr, id: this.formLabelAlign3.id}).then(res => {
|
|
578
|
+ if (res.code === 200) {
|
|
579
|
+ this.dialogVisible3 = false
|
|
580
|
+ this.$message({
|
|
581
|
+ message: '修改成功!',
|
|
582
|
+ type: 'success'
|
|
583
|
+ })
|
|
584
|
+ this.getTableData3()
|
|
585
|
+ }
|
|
586
|
+ })
|
|
587
|
+ } else {
|
|
588
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign3.ipAddr}).then(res => {
|
|
589
|
+ if (res.code === 200) {
|
|
590
|
+ this.dialogVisible3 = false
|
|
591
|
+ this.$message({
|
|
592
|
+ message: '添加成功!',
|
|
593
|
+ type: 'success'
|
|
594
|
+ })
|
|
595
|
+ this.getTableData3()
|
|
596
|
+ }
|
|
597
|
+ })
|
|
598
|
+ }
|
|
599
|
+ },
|
|
600
|
+ onSubmit4() {
|
|
601
|
+ this.pageNum4 = 1
|
|
602
|
+ this.getTableData4()
|
|
603
|
+ },
|
|
604
|
+ handleAdd4() {
|
|
605
|
+ this.title4 = '添加'
|
|
606
|
+ this.formLabelAlign4.tollCollector= ''
|
|
607
|
+ this.formLabelAlign4.plateNo= ''
|
|
608
|
+ this.formLabelAlign4.releaseTime= ''
|
|
609
|
+ this.formLabelAlign4.releaseReason = ''
|
|
610
|
+ this.dialogVisible4 = true
|
|
611
|
+ },
|
|
612
|
+
|
|
613
|
+ handleEdit4(row) {
|
|
614
|
+ this.title4 = '修改'
|
|
615
|
+ this.formLabelAlign4 = {...row}
|
|
616
|
+ this.dialogVisible4 = true
|
|
617
|
+ },
|
|
618
|
+ deleteRow4(record) {
|
|
619
|
+ api.deleteWhiteIp({id: record.id}).then(res => {
|
|
620
|
+ if (res.code === 200) {
|
|
621
|
+ this.$message({type: 'success', message: '删除成功!'})
|
|
622
|
+ this.getTableData4()
|
|
623
|
+ }
|
|
624
|
+ })
|
|
625
|
+ },
|
|
626
|
+ handleConfirm4() {
|
|
627
|
+ if (this.title4 === '修改') {
|
|
628
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign4.ipAddr, id: this.formLabelAlign4.id}).then(res => {
|
|
629
|
+ if (res.code === 200) {
|
|
630
|
+ this.dialogVisible4 = false
|
|
631
|
+ this.$message({
|
|
632
|
+ message: '修改成功!',
|
|
633
|
+ type: 'success'
|
|
634
|
+ })
|
|
635
|
+ this.getTableData4()
|
|
636
|
+ }
|
|
637
|
+ })
|
|
638
|
+ } else {
|
|
639
|
+ api.addWhiteIp({ipAddr: this.formLabelAlign4.ipAddr}).then(res => {
|
|
640
|
+ if (res.code === 200) {
|
|
641
|
+ this.dialogVisible4 = false
|
|
642
|
+ this.$message({
|
|
643
|
+ message: '添加成功!',
|
|
644
|
+ type: 'success'
|
|
645
|
+ })
|
|
646
|
+ this.getTableData4()
|
|
647
|
+ }
|
|
648
|
+ })
|
|
649
|
+ }
|
|
650
|
+ },
|
|
651
|
+ handlePageChange1() {
|
|
652
|
+ this.getTableData1()
|
|
653
|
+ },
|
|
654
|
+ getTableData1() {
|
|
655
|
+ const {pageNum1, pageSize1} = this
|
|
656
|
+ api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
|
|
657
|
+ this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
|
|
658
|
+ this.total1 = res.data.total
|
|
659
|
+ })
|
|
660
|
+ },
|
|
661
|
+ handlePageChange2() {
|
|
662
|
+ this.getTableData2()
|
|
663
|
+ },
|
|
664
|
+ getTableData2() {
|
|
665
|
+ const {pageNum2, pageSize2} = this
|
|
666
|
+ api.gjListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
|
|
667
|
+ this.tableData2 = res.data.records || []
|
|
668
|
+ this.total2 = res.data.total
|
|
669
|
+ })
|
|
670
|
+ },
|
|
671
|
+ handlePageChange3() {
|
|
672
|
+ this.getTableData3()
|
|
673
|
+ },
|
|
674
|
+ getTableData3() {
|
|
675
|
+ const {pageNum3, pageSize3} = this
|
|
676
|
+ api.tcjlListByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
|
|
677
|
+ this.tableData3 = res.data.records || []
|
|
678
|
+ this.total3 = res.data.total
|
|
679
|
+ })
|
|
680
|
+ },
|
|
681
|
+ handlePageChange4() {
|
|
682
|
+ this.getTableData4()
|
|
683
|
+ },
|
|
684
|
+ getTableData4() {
|
|
685
|
+ const {pageNum4, pageSize4} = this
|
|
686
|
+ api.tcjlListByPage({current: pageNum4, size: pageSize4, ...this.formInline4}).then(res => {
|
|
687
|
+ this.tableData4 = res.data.records || []
|
|
688
|
+ this.total4 = res.data.total
|
|
689
|
+ })
|
|
690
|
+ },
|
|
691
|
+ }
|
|
692
|
+}
|
|
693
|
+</script>
|
|
694
|
+<style lang="scss" scoped>
|
|
695
|
+.body-wrapper {
|
|
696
|
+ padding: 20px;
|
|
697
|
+
|
|
698
|
+ .button-block {
|
|
699
|
+ text-align: right;
|
|
700
|
+ margin-bottom: 20px;
|
|
701
|
+ }
|
|
702
|
+
|
|
703
|
+ .table-pagination {
|
|
704
|
+ text-align: right;
|
|
705
|
+ }
|
|
706
|
+
|
|
707
|
+ .search-card {
|
|
708
|
+ margin-bottom: 20px;
|
|
709
|
+ text-align: center;
|
|
710
|
+
|
|
711
|
+ .input-wrapper {
|
|
712
|
+ width: 36%;
|
|
713
|
+ }
|
|
714
|
+ }
|
|
715
|
+
|
|
716
|
+ .audit-dialog {
|
|
717
|
+ .mg-bt {
|
|
718
|
+ margin-bottom: 24px;
|
|
719
|
+ }
|
|
720
|
+
|
|
721
|
+ .label {
|
|
722
|
+ text-align: right;
|
|
723
|
+ }
|
|
724
|
+
|
|
725
|
+ .form-div {
|
|
726
|
+ /deep/ .el-input__inner {
|
|
727
|
+ height: 35px;
|
|
728
|
+ width: 90%;
|
|
729
|
+ border: 1px solid #a6a5a5;
|
|
730
|
+ }
|
|
731
|
+ }
|
|
732
|
+ }
|
|
733
|
+}
|
|
734
|
+</style>
|