Hwt 2 rokov pred
rodič
commit
baf3962a63

+ 2 - 2
smart/src/views/parkingSpaceManagement/pageJump/parkingLotSaveEdits.vue

@@ -261,10 +261,10 @@ export default {
     garageAreaListQuery () {
       this.garageAreaList = [];
       let onOption = '';
-      this.$http.post('/sc-community/assets/garage/area/list', { garageId: this.ruleForm.garageId }).then((res) => {
+      this.$http.post('/sc-community-web/parkingCar/findParkInfo', { parkid: this.ruleForm.garageId, areaCode: this.ruleForm.communityId }).then((res) => {
         res.data.map((res) => {
           onOption = {
-            label: res.areaName,
+            label: res.garageName,
             id: res.id
           };
           this.garageAreaList.push(onOption);

+ 2 - 9
smart/src/views/vehicleInformation/setpPage/details.vue

@@ -605,15 +605,11 @@ export default {
           { pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/, message: '请输入正确的电话' }
         ],
         carTypes: [
-          { type: 'date', required: true, message: '请选择车牌类型', trigger: 'change' }
+          { required: true, message: '请选择车牌类型', trigger: 'change' }
         ],
 
       },
-      rule: {
-        parkingArea: [
-          { type: 'date', required: true, message: '请选择车牌类型', trigger: 'change' }
-        ]
-      },
+
 
       room: [],
       nameParkingLot: [],
@@ -853,9 +849,6 @@ export default {
       if (this.params.comm == 'add') {
         // this.url = '/sc-community-web/parkingCar/addVehicleInfor'
         this.url = '/sc-community-web/parkingCar/updateVehicleInfor'
-        for (let i = 0; i < this.tableData.length; i++) {
-          this.tableData[i].areaName = (Array.from(new Set(this.areaNamed))).join(',');
-        }
       } else {
         // this.url = '/sc-community-web/parkingCar/updateVehicleInfor'
         this.url = '/sc-community-web/parkingCar/addVehicleInfor'