From 489277cb08b89646738a78fbb921fe18aac01b41 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 30 Aug 2020 15:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=BD=A6=E8=BE=86=E6=94=B6?= =?UTF-8?q?=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../carCreateFee.html} | 37 +++++++---------- .../carCreateFee.js} | 41 +++++++++---------- 2 files changed, 35 insertions(+), 43 deletions(-) rename public/pages/property/{parkingSpaceCreateFee/parkingSpaceCreateFee.html => carCreateFee/carCreateFee.html} (78%) rename public/pages/property/{parkingSpaceCreateFee/parkingSpaceCreateFee.js => carCreateFee/carCreateFee.js} (55%) diff --git a/public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.html b/public/pages/property/carCreateFee/carCreateFee.html similarity index 78% rename from public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.html rename to public/pages/property/carCreateFee/carCreateFee.html index 627ad15a3..1cb8c584f 100644 --- a/public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.html +++ b/public/pages/property/carCreateFee/carCreateFee.html @@ -6,7 +6,7 @@
查询条件
- +
@@ -16,7 +16,7 @@
+ v-model="carCreateFeeInfo.conditions.num">
@@ -24,14 +24,14 @@
+ v-model="carCreateFeeInfo.conditions.carNum">
+ v-model="carCreateFeeInfo.conditions.psId">
@@ -67,47 +67,40 @@ 车牌号 停车场 车位 - 业主名称 联系方式 车位状态 - 车位ID 操作 - + - {{parkingSpace.carNum}} + {{car.carNum}} - {{parkingSpace.areaNum}}号 + {{car.areaNum}}号 - {{parkingSpace.num}}号 - - - + {{car.num}}号 + - {{parkingSpace.ownerName}} + {{car.ownerName}} - {{parkingSpace.link}} + {{car.link}} - {{parkingSpace.stateName}} - - - {{parkingSpace.psId}} + {{car.stateName}} -
-
-
diff --git a/public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.js b/public/pages/property/carCreateFee/carCreateFee.js similarity index 55% rename from public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.js rename to public/pages/property/carCreateFee/carCreateFee.js index 5d513a455..c9c1a23a9 100644 --- a/public/pages/property/parkingSpaceCreateFee/parkingSpaceCreateFee.js +++ b/public/pages/property/carCreateFee/carCreateFee.js @@ -7,8 +7,8 @@ vc.extends({ data:{ parkingSpaceUnits:[], - parkingSpaceCreateFeeInfo:{ - parkingSpaces:[], + carCreateFeeInfo:{ + cars:[], total:0, records:1, floorId:'', @@ -24,39 +24,38 @@ } }, _initMethod:function(){ - vc.component.listParkingSpace(DEFAULT_PAGE,DEFAULT_ROW); + vc.component.listCars(DEFAULT_PAGE,DEFAULT_ROW); }, _initEvent:function(){ vc.on('pagination','page_event',function(_currentPage){ - vc.component.listParkingSpace(_currentPage,DEFAULT_ROW); + vc.component.listCars(_currentPage,DEFAULT_ROW); }); }, methods:{ - listParkingSpace:function(_page,_row){ + listCars:function(_page,_row){ - vc.component.parkingSpaceCreateFeeInfo.conditions.page=_page; - vc.component.parkingSpaceCreateFeeInfo.conditions.row=_row; - vc.component.parkingSpaceCreateFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId; + vc.component.carCreateFeeInfo.conditions.page=_page; + vc.component.carCreateFeeInfo.conditions.row=_row; + vc.component.carCreateFeeInfo.conditions.communityId = vc.getCurrentCommunity().communityId; var param = { - params:vc.component.parkingSpaceCreateFeeInfo.conditions + params:vc.component.carCreateFeeInfo.conditions }; //发送get请求 - vc.http.get('parkingSpaceCreateFee', - 'listParkingSpace', + vc.http.apiGet('owner.queryOwnerCars', param, function(json,res){ - var listParkingSpaceData =JSON.parse(json); + var listCarData =JSON.parse(json); - vc.component.parkingSpaceCreateFeeInfo.total = listParkingSpaceData.total; - vc.component.parkingSpaceCreateFeeInfo.records = listParkingSpaceData.records; - vc.component.parkingSpaceCreateFeeInfo.parkingSpaces = listParkingSpaceData.parkingSpaces; + vc.component.carCreateFeeInfo.total = listCarData.total; + vc.component.carCreateFeeInfo.records = listCarData.records; + vc.component.carCreateFeeInfo.cars = listCarData.data; vc.emit('pagination','init',{ - total:vc.component.parkingSpaceCreateFeeInfo.records, - dataCount: vc.component.parkingSpaceCreateFeeInfo.total, + total:vc.component.carCreateFeeInfo.records, + dataCount: vc.component.carCreateFeeInfo.total, currentPage:_page }); },function(errInfo,error){ @@ -74,14 +73,14 @@ vc.jumpToPage("/admin.html#/pages/property/listParkingSpaceFee?"+vc.objToGetParam(_parkingSpace)); }, _queryParkingSpaceMethod:function(){ - vc.component.listParkingSpace(DEFAULT_PAGE,DEFAULT_ROW); + vc.component.listCars(DEFAULT_PAGE,DEFAULT_ROW); }, _moreCondition:function(){ - if(vc.component.parkingSpaceCreateFeeInfo.moreCondition){ - vc.component.parkingSpaceCreateFeeInfo.moreCondition = false; + if(vc.component.carCreateFeeInfo.moreCondition){ + vc.component.carCreateFeeInfo.moreCondition = false; }else{ - vc.component.parkingSpaceCreateFeeInfo.moreCondition = true; + vc.component.carCreateFeeInfo.moreCondition = true; } }