Hwt vor 2 Jahren
Ursprung
Commit
45e461d48c

+ 2 - 2
smart/src/views/onSiteVehicles/index.vue

@@ -132,8 +132,8 @@ export default {
           props: {
             parkId: this.mixins_query.parkId,
             // nodeId: row.nodeId,
-            row: row
-            // callback: resolve
+            row: row,
+            callback: resolve
           },
           showConfirmButton: true,
           showCancelButton: true,

+ 8 - 3
smart/src/views/onSiteVehicles/setpPage/details.vue

@@ -198,8 +198,8 @@ export default {
         this.$message.error('请输入车牌号')
       } else {
         this.$http.post('/sc-community-web/parkingCar/modifyPlateNumber', { oldplateNo: (this.params.row.plateNo == "" ? this.licensePlate : this.params.row.plateNo), plateNo: this.licensePlate, parkId: this.params.parkId }).then(({ data, status, msg }) => {
-          // console.log(data);
           this.$message.success('成功');
+          this.sumber();
         });
       }
 
@@ -209,12 +209,16 @@ export default {
     },
     vehicle () {
       this.flags = !this.flags
-      // console.log(this.vehicleType);
       this.$http.post('/sc-community-web/parkingCar/modifyType', { carStyle: this.vehicleType, parkId: this.params.parkId, plateNo: this.licensePlate }).then(({ data, status, msg }) => {
-        // console.log(data);
         this.$message.success('成功');
+        this.sumber();
       });
     },
+    sumber () {
+      // resolve
+      this.params.callback();
+
+    },
     // OnSiteVehicleDetails () {
     // debugger
     // this.$http.post('/sc-community-web/parkingCar/queryPresenceVehicles', { parkId: this.params.parkId, nodeId: this.params.nodeId }).then(({ data, status, msg }) => {
@@ -223,6 +227,7 @@ export default {
     // },
   },
   created () {
+    debugger
     console.log(this.params.row);
     this.cols[0].label = this.params.row.parkName;
     this.cols[1].label = this.params.row.plateNo;