duwendi 1 anno fa
parent
commit
6018a04c17
1 ha cambiato i file con 10 aggiunte e 17 eliminazioni
  1. 10 17
      src/pages/index/components/exception_handing.vue

+ 10 - 17
src/pages/index/components/exception_handing.vue

@@ -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"
@@ -57,7 +57,7 @@
57 57
           <div class="form-div">
58 58
             <el-form label-position="left" label-width="100px" :model="formLabelAlign">
59 59
               <el-form-item label="车场名称">
60
-                <el-select v-model="formLabelAlign.carParkName" placeholder="请选择">
60
+                <el-select v-model="formLabelAlign.parkId" placeholder="请选择">
61 61
                   <el-option
62 62
                     v-for="(item,index) in carParkingNameOptions"
63 63
                     :key="index"
@@ -75,7 +75,7 @@
75 75
                 <el-input v-model="formLabelAlign.liftStatus"></el-input>
76 76
               </el-form-item>
77 77
               <el-form-item label="操作人员">
78
-                <el-select v-model="formLabelAlign.tollmanName" placeholder="请选择">
78
+                <el-select v-model="formLabelAlign.tollmanId" placeholder="请选择">
79 79
                   <el-option
80 80
                     v-for="(item,index) in tollmanOptions"
81 81
                     :key="index"
@@ -355,19 +355,17 @@ export default {
355 355
       pageSize1: 10,
356 356
       pageNum1: 1,
357 357
       formInline1: {
358
-        carParkingName: '',
358
+        parkId: '',
359 359
         plateNo: ''
360 360
       },
361 361
       title: '',
362 362
       dialogVisible: false,
363 363
       formLabelAlign: {
364
-        id: '',
365
-        carParkName: '',
364
+        parkId: '',
366 365
         plateNo: '',
367 366
         liftType: '',
368 367
         liftStatus: '',
369
-        tollmanName: '',
370
-        createTime: ''
368
+        tollmanId: '',
371 369
       },
372 370
       columns2: [
373 371
         {
@@ -515,12 +513,7 @@ export default {
515 513
     },
516 514
     handleAdd() {
517 515
       this.title = '添加'
518
-      this.formLabelAlign.carParkName = ''
519
-      this.formLabelAlign.plateNo = ''
520
-      this.formLabelAlign.liftType = ''
521
-      this.formLabelAlign.liftStatus = ''
522
-      this.formLabelAlign.tollmanName = ''
523
-      this.formLabelAlign.createTime = ''
516
+      this.formLabelAlign = {}
524 517
       this.dialogVisible = true
525 518
     },
526 519
     handleEdit(row) {
@@ -538,7 +531,7 @@ export default {
538 531
     },
539 532
     handleConfirm() {
540 533
       if (this.title === '修改') {
541
-        api_z.editExceptionHandingLift({id:this.formLabelAlign.id,parkId: this.formLabelAlign.carParkName,tollmanId:this.formLabelAlign.tollmanName,plateNo:this.formLabelAlign.plateNo,liftType:this.formLabelAlign.liftType,liftStatus:this.formLabelAlign.liftStatus}).then(res => {
534
+        api_z.editExceptionHandingLift({...this.formLabelAlign}).then(res => {
542 535
           if (res.code === 200) {
543 536
             this.dialogVisible = false
544 537
             this.$message({
@@ -549,7 +542,7 @@ export default {
549 542
           }
550 543
         })
551 544
       } else {
552
-        api_z.addExceptionHandingLift({parkId: this.formLabelAlign.carParkName,tollmanId:this.formLabelAlign.tollmanName,plateNo:this.formLabelAlign.plateNo,liftType:this.formLabelAlign.liftType,liftStatus:this.formLabelAlign.liftStatus}).then(res => {
545
+        api_z.addExceptionHandingLift({...this.formLabelAlign}).then(res => {
553 546
           if (res.code === 200) {
554 547
             this.dialogVisible = false
555 548
             this.$message({
@@ -723,7 +716,7 @@ export default {
723 716
     },
724 717
     getTableData1() {
725 718
       const {pageNum1, pageSize1} = this
726
-      api_z.queryExceptionHandingLiftByPage({current: pageNum1, size: pageSize1,parkId:this.formInline1.carParkName,plateNo:this.formInline1.plateNo }).then(res => {
719
+      api_z.queryExceptionHandingLiftByPage({current: pageNum1, size: pageSize1,...this.formInline1 }).then(res => {
727 720
         this.tableData1 = res.data.records || []
728 721
         this.total1 = res.data.total
729 722
       })