|
@@ -6,7 +6,7 @@
|
6
|
6
|
<el-row>
|
7
|
7
|
<el-col :span="8">
|
8
|
8
|
<el-form-item label="车场名称: ">
|
9
|
|
- <el-select clearable v-model="formInline1.carParkName" placeholder="请选择">
|
|
9
|
+ <el-select clearable v-model="formInline1.parkId" placeholder="请选择">
|
10
|
10
|
<el-option
|
11
|
11
|
v-for="(item,index) in carParkingNameOptions"
|
12
|
12
|
:key="index"
|
|
@@ -52,7 +52,7 @@
|
52
|
52
|
<div class="form-div">
|
53
|
53
|
<el-form label-position="left" label-width="100px" :model="formLabelAlign">
|
54
|
54
|
<el-form-item label="车场名称: ">
|
55
|
|
- <el-select clearable v-model="formLabelAlign.carParkName" placeholder="请选择">
|
|
55
|
+ <el-select clearable v-model="formLabelAlign.parkId" placeholder="请选择">
|
56
|
56
|
<el-option
|
57
|
57
|
v-for="(item,index) in carParkingNameOptions"
|
58
|
58
|
:key="index"
|
|
@@ -146,13 +146,17 @@
|
146
|
146
|
<div class="form-div">
|
147
|
147
|
<el-form label-position="left" label-width="110px" :model="formLabelAlign2">
|
148
|
148
|
<el-form-item label="收费员姓名">
|
149
|
|
- <el-input v-model="formLabelAlign2.tollCollectorName"></el-input>
|
|
149
|
+ <el-input v-model="formLabelAlign2.tollmanName"></el-input>
|
150
|
150
|
</el-form-item>
|
151
|
151
|
<el-form-item label="出生日期">
|
152
|
|
- <el-input v-model="formLabelAlign2.birthday"></el-input>
|
|
152
|
+ <el-date-picker
|
|
153
|
+ v-model="formLabelAlign2.birthDay"
|
|
154
|
+ type="datetime"
|
|
155
|
+ placeholder="选择日期时间">
|
|
156
|
+ </el-date-picker>
|
153
|
157
|
</el-form-item>
|
154
|
158
|
<el-form-item label="岗位权限">
|
155
|
|
- <el-input v-model="formLabelAlign2.postAuthority"></el-input>
|
|
159
|
+ <el-input v-model="formLabelAlign2.positionPermission"></el-input>
|
156
|
160
|
</el-form-item>
|
157
|
161
|
</el-form>
|
158
|
162
|
</div>
|
|
@@ -210,7 +214,7 @@ export default {
|
210
|
214
|
key: 'tollmanReceiveId'
|
211
|
215
|
},
|
212
|
216
|
],
|
213
|
|
- tableData1: [{carParkingName: 'sasa'}],
|
|
217
|
+ tableData1: [],
|
214
|
218
|
total1: 0,
|
215
|
219
|
pageSize1: 10,
|
216
|
220
|
pageNum1: 1,
|
|
@@ -245,18 +249,18 @@ export default {
|
245
|
249
|
},
|
246
|
250
|
{
|
247
|
251
|
label: '收费员姓名',
|
248
|
|
- key: 'tollCollectorName'
|
|
252
|
+ key: 'tollmanName'
|
249
|
253
|
},
|
250
|
254
|
{
|
251
|
255
|
label: '出生日期',
|
252
|
|
- key: 'birthday'
|
|
256
|
+ key: 'birthDay'
|
253
|
257
|
},
|
254
|
258
|
{
|
255
|
259
|
label: '岗位权限',
|
256
|
|
- key: 'postAuthority'
|
|
260
|
+ key: 'positionPermission'
|
257
|
261
|
},
|
258
|
262
|
],
|
259
|
|
- tableData2: [{tollCollectorName: 'sasa1'}],
|
|
263
|
+ tableData2: [],
|
260
|
264
|
total2: 0,
|
261
|
265
|
pageSize2: 10,
|
262
|
266
|
pageNum2: 1,
|
|
@@ -267,24 +271,23 @@ export default {
|
267
|
271
|
dialogVisible2: false,
|
268
|
272
|
formLabelAlign2: {
|
269
|
273
|
id: '',
|
270
|
|
- tollCollectorName: '',
|
271
|
|
- birthday: '',
|
272
|
|
- postAuthority: '',
|
|
274
|
+ parkId:'',
|
|
275
|
+ tollmanName: '',
|
|
276
|
+ birthDay: '',
|
|
277
|
+ positionPermission: '',
|
273
|
278
|
},
|
274
|
279
|
}
|
275
|
280
|
},
|
276
|
281
|
mounted() {
|
277
|
282
|
this.getTableData1()
|
278
|
|
- // this.getTableData2()
|
279
|
|
- // this.getTableData3()
|
280
|
|
- // this.getTableData4()
|
|
283
|
+ this.getTableData2()
|
281
|
284
|
this.getCarParkingName()
|
282
|
285
|
this.getPeople()
|
283
|
286
|
},
|
284
|
287
|
watch: {},
|
285
|
288
|
methods: {
|
286
|
289
|
onSubmit1() {
|
287
|
|
- api_l.optPersonnelManagementShiftPage({parkId: this.formLabelAlign.parkId}).then(res => {
|
|
290
|
+ api_l.optPersonnelManagementShiftPage({parkId: this.formInline1.parkId}).then(res => {
|
288
|
291
|
this.tableData1 = res.data.records
|
289
|
292
|
})
|
290
|
293
|
},
|
|
@@ -309,11 +312,8 @@ export default {
|
309
|
312
|
this.dialogVisible = true
|
310
|
313
|
},
|
311
|
314
|
deleteRow(record) {
|
312
|
|
- api_l.optPersonnelManagementShiftDelete({id: record.id}).then(res => {
|
313
|
|
- if (res.code === 200) {
|
314
|
|
- this.$message({type: 'success', message: '删除成功!'})
|
315
|
|
- this.getTableData1()
|
316
|
|
- }
|
|
315
|
+ api_l.optPersonnelManagementShiftDelete([{id: record.id}]).then(res => {
|
|
316
|
+ this.getTableData1()
|
317
|
317
|
})
|
318
|
318
|
},
|
319
|
319
|
//车场
|
|
@@ -330,23 +330,25 @@ export default {
|
330
|
330
|
},
|
331
|
331
|
handleConfirm() {
|
332
|
332
|
if (this.title === '修改') {
|
333
|
|
- api_l.optPersonnelManagementShiftEdit({id:this.formLabelAlign.id,incomeFee: this.formLabelAlign.incomeFee, parkingNum: this.formLabelAlign.parkingNum, excptionEvent: this.formLabelAlign.excptionEvent, deviceStatus: this.formLabelAlign.deviceStatus, vehicleStatus: this.formLabelAlign.vehicleStatus}).then(res => {
|
|
333
|
+ api_l.optPersonnelManagementShiftEdit({id:this.formLabelAlign2.id,incomeFee: this.formLabelAlign2.incomeFee, parkingNum: this.formLabelAlign2.parkingNum, excptionEvent: this.formLabelAlign2.excptionEvent, deviceStatus: this.formLabelAlign2.deviceStatus, vehicleStatus: this.formLabelAlign2.vehicleStatus}).then(res => {
|
334
|
334
|
this.getTableData1()
|
335
|
335
|
this.dialogVisible = false
|
336
|
336
|
})
|
337
|
337
|
}
|
338
|
338
|
},
|
339
|
339
|
onSubmit2() {
|
340
|
|
- api_l.optPersonnelManagementBasicPage({searchKey: this.formLabelAlign.ipAddr}).then(res => {
|
341
|
|
-
|
|
340
|
+ api_l.optPersonnelManagementBasicDetail({tollmanName: this.formInline2.tollCollectorName}).then(res => {
|
|
341
|
+ this.tableData2 = res.data.records
|
342
|
342
|
})
|
343
|
343
|
|
344
|
344
|
},
|
345
|
345
|
handleAdd2() {
|
346
|
346
|
this.title2 = '添加'
|
347
|
|
- this.formLabelAlign2.tollCollectorName = ''
|
348
|
|
- this.formLabelAlign2.birthday = ''
|
349
|
|
- this.formLabelAlign2.postAuthority = ''
|
|
347
|
+ this.formLabelAlign2.id=''
|
|
348
|
+ this.formLabelAlign2.parkId=''
|
|
349
|
+ this.formLabelAlign2.tollmanName=''
|
|
350
|
+ this.formLabelAlign2.birthDay=''
|
|
351
|
+ this.formLabelAlign2.positionPermission=''
|
350
|
352
|
this.dialogVisible2 = true
|
351
|
353
|
},
|
352
|
354
|
|
|
@@ -356,28 +358,36 @@ export default {
|
356
|
358
|
this.dialogVisible2 = true
|
357
|
359
|
},
|
358
|
360
|
deleteRow2(record) {
|
359
|
|
- api.deleteWhiteIp({id: record.id}).then(res => {
|
360
|
|
- if (res.code === 200) {
|
361
|
|
- this.$message({type: 'success', message: '删除成功!'})
|
362
|
|
- this.getTableData2()
|
363
|
|
- }
|
|
361
|
+ api_l.optPersonnelManagementBasicDelete([{id: record.id}]).then(res => {
|
|
362
|
+ this.getTableData2()
|
364
|
363
|
})
|
365
|
364
|
},
|
366
|
365
|
handleConfirm2() {
|
367
|
366
|
if (this.title2 === '修改') {
|
368
|
|
- api_l.optPersonnelManagementShiftEdit({carParkingName: this.formInline1.carParkingName}).then(res => {
|
369
|
|
- this.tableData1 = res.data
|
|
367
|
+ api_l.optPersonnelManagementShiftEdit({id: this.formLabelAlign2.id,parkId: this.formLabelAlign2.parkId,tollmanName: this.formLabelAlign2.tollmanName,birthDay: this.formLabelAlign2.birthDay,positionPermission: this.formLabelAlign2.positionPermission}).then(res => {
|
|
368
|
+ this.dialogVisible2 = false
|
|
369
|
+ this.getTableData2()
|
370
|
370
|
})
|
|
371
|
+ }else if (this.title2 === '添加') {
|
|
372
|
+ api_l.optPersonnelManagementBasicAdd({parkId: this.formLabelAlign2.parkId,tollmanName: this.formLabelAlign2.tollmanName,birthDay: this.formLabelAlign2.birthDay,positionPermission: this.formLabelAlign2.positionPermission}).then(res => {
|
|
373
|
+ this.dialogVisible2 = false
|
|
374
|
+ this.getTableData2()
|
|
375
|
+ })
|
371
|
376
|
}
|
372
|
377
|
},
|
373
|
378
|
handlePageChange1() {
|
374
|
379
|
this.getTableData1()
|
375
|
380
|
},
|
376
|
381
|
getTableData1() {
|
377
|
|
- api_l.optPersonnelManagementShiftPage({}).then(res => {
|
|
382
|
+ api_l.optPerformanceAssessStat1page({}).then(res => {
|
378
|
383
|
this.tableData1 = res.data.records
|
379
|
384
|
})
|
380
|
385
|
},
|
|
386
|
+ getTableData2() {
|
|
387
|
+ api_l.optPersonnelManagementBasicDetail({}).then(res => {
|
|
388
|
+ this.tableData2 = res.data.records
|
|
389
|
+ })
|
|
390
|
+ },
|
381
|
391
|
handlePageChange2() {
|
382
|
392
|
this.getTableData2()
|
383
|
393
|
},
|