Hwt 2 年之前
父節點
當前提交
9df66c7fae

+ 13 - 7
smart/src/views/vehicleInformation/setpPage/details.vue

@@ -1024,12 +1024,17 @@ export default {
               lotCount: this.tableData[i].num,
               lotName: this.tableData[i].positionInformation,
               parkingIds: this.tableData[i].parkingId,
-              carType: '',
+              carType: this.formDate.carTypes == '临时车' ? '0' :
+                this.formDate.carTypes == 'VIP车' ? '1' :
+                  this.formDate.carTypes == '月租车' ? '2' :
+                    this.formDate.carTypes == '充时车' ? '3' :
+                      this.formDate.carTypes == '时租车' ? '4' :
+                        this.formDate.carTypes == '产权车' ? '5' :
+                          this.formDate.carTypes == '计次车' ? '6' :
+                            this.formDate.carTypes == '贵宾车' ? '7' :
+                              this.formDate.carTypes == '员工卡' ? '8' : this.formDate.carTypes,
               ruleId: this.formDate.ruleId,
               sequence: this.formDate.sort,
-
-
-
             })
 
             this.formDate.areaName = this.tableData[i].areaName
@@ -1054,9 +1059,10 @@ export default {
             this.fullCarNoStr = this.parkingSpaceSetting[k].licensePlate + this.parkingSpaceSetting[k].license;
             this.plateNoInfo.push((this.parkingSpaceSetting[k].licensePlate + this.parkingSpaceSetting[k].license));
 
-            for (let j = 0; j < table.length; j++) {
-              table[j].carType = this.formDate.carType;
-            }
+            // for (let j = 0; j < table.length; j++) {
+            //   debugger
+            //   table[j].carType = this.formDate.carType;
+            // }
 
           }
 

+ 7 - 1
smart/src/views/vehicleInformation/setpPage/native.vue

@@ -100,9 +100,15 @@ export default {
 
             this.valued.push(Number(this.checkedData.value));
             this.Informationed.push(this.checkedData.name);
+            // if (this.valued.length > this.num) {
+
+            //   this.valued.splice(0, 1);
+            //   this.Informationed.splice(0, 1);
+
+            //   console.log('7777', this.valued, this.Informationed)
+            // }
           }
         } else {
-          debugger
           for (let i = 0; i < this.valued.length; i++) {
             if (data.value == this.valued[i]) {
               this.valued.splice(i + 1, 1)