From ee6dfe4e583362ed1b32098e24969af92514b248 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Tue, 9 Aug 2022 22:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=8C=E6=88=90get?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/addOrgCommunity/addOrgCommunity.js | 3 +-- .../common/chooseActivities/chooseActivities.js | 3 +-- .../components/common/chooseAuditUser/chooseAuditUser.js | 3 +-- .../components/common/chooseComplaint/chooseComplaint.js | 3 +-- .../common/chooseEnterCommunity/chooseEnterCommunity.js | 3 +-- .../common/choosePurchaseApply/choosePurchaseApply.js | 3 +-- public/components/common/listDemoStudy/listDemoStudy.js | 3 +-- .../components/common/storesCommunity/storesCommunity.js | 3 +-- .../dev/chooseBasePrivilege/chooseBasePrivilege.js | 3 +-- .../inspectionTaskDetails/inspectionTaskDetails.js | 9 +++------ public/pages/property/listCarFee/listCarFee.js | 5 ++--- public/pages/property/listOweFee/listOweFee.js | 2 +- public/pages/property/listRoomFee/listRoomFee.js | 3 +-- .../listSonResourceStoreType/listSonResourceStoreType.js | 3 +-- public/pages/property/listStoreManage/listStoreManage.js | 3 +-- .../property/machineRecordManage/machineRecordManage.js | 3 +-- .../machineTranslateManage/machineTranslateManage.js | 5 ++--- .../machineVistorPhotoManage/machineVistorPhotoManage.js | 3 +-- public/pages/property/printOweFee/printOweFee.js | 3 +-- public/pages/property/printPayFees/printPayFees.js | 3 +-- .../property/printPurchaseApply/printPurchaseApply.js | 3 +-- .../remainingParkingSpace/remainingParkingSpace.js | 3 +-- .../repairDispatchManage/repairDispatchManage.js | 3 +-- public/pages/property/reportFeeDetail/reportFeeDetail.js | 2 +- .../pages/property/reportFeeSummary/reportFeeSummary.js | 2 +- .../reportFloorUnitFeeSummary.js | 2 +- public/pages/property/staffFeeManage/staffFeeManage.js | 3 +-- .../tempCarInoutFeeManage/tempCarInoutFeeManage.js | 3 +-- public/pages/property/visitManage/visitManage.js | 3 +-- 29 files changed, 33 insertions(+), 60 deletions(-) diff --git a/public/components/common/addOrgCommunity/addOrgCommunity.js b/public/components/common/addOrgCommunity/addOrgCommunity.js index 249fe327e..dab2127be 100755 --- a/public/components/common/addOrgCommunity/addOrgCommunity.js +++ b/public/components/common/addOrgCommunity/addOrgCommunity.js @@ -51,8 +51,7 @@ }; //发送get请求 - vc.http.get('addOrgCommunity', - 'list', + vc.http.apiGet('/org.listOrgNoCommunitys', param, function(json) { var _communityInfo = JSON.parse(json); diff --git a/public/components/common/chooseActivities/chooseActivities.js b/public/components/common/chooseActivities/chooseActivities.js index f473b6bb1..502c8a0a3 100755 --- a/public/components/common/chooseActivities/chooseActivities.js +++ b/public/components/common/chooseActivities/chooseActivities.js @@ -31,8 +31,7 @@ }; //发送get请求 - vc.http.get('chooseActivities', - 'list', + vc.http.apiGet('/activities.listActivitiess', param, function(json){ var _activitiesInfo = JSON.parse(json); diff --git a/public/components/common/chooseAuditUser/chooseAuditUser.js b/public/components/common/chooseAuditUser/chooseAuditUser.js index a003608be..368276b31 100755 --- a/public/components/common/chooseAuditUser/chooseAuditUser.js +++ b/public/components/common/chooseAuditUser/chooseAuditUser.js @@ -31,8 +31,7 @@ }; //发送get请求 - vc.http.get('chooseAuditUser', - 'list', + vc.http.apiGet('/auditUser.listAuditUsers', param, function (json) { var _auditUserInfo = JSON.parse(json); diff --git a/public/components/common/chooseComplaint/chooseComplaint.js b/public/components/common/chooseComplaint/chooseComplaint.js index 8eb159d21..61383524a 100755 --- a/public/components/common/chooseComplaint/chooseComplaint.js +++ b/public/components/common/chooseComplaint/chooseComplaint.js @@ -31,8 +31,7 @@ }; //发送get请求 - vc.http.get('chooseComplaint', - 'list', + vc.http.apiGet('/complaint.listComplaints', param, function(json){ var _complaintInfo = JSON.parse(json); diff --git a/public/components/common/chooseEnterCommunity/chooseEnterCommunity.js b/public/components/common/chooseEnterCommunity/chooseEnterCommunity.js index 43dd50e96..a07f30da4 100755 --- a/public/components/common/chooseEnterCommunity/chooseEnterCommunity.js +++ b/public/components/common/chooseEnterCommunity/chooseEnterCommunity.js @@ -33,8 +33,7 @@ communityName: $that.navCommunityInfo.searchCommunityName } }; - vc.http.get('nav', - 'getCommunitys', + vc.http.apiGet('/community.listMyEnteredCommunitys', param, function (json, res) { if (res.status == 200) { diff --git a/public/components/common/choosePurchaseApply/choosePurchaseApply.js b/public/components/common/choosePurchaseApply/choosePurchaseApply.js index edd7f0d09..fd584397b 100755 --- a/public/components/common/choosePurchaseApply/choosePurchaseApply.js +++ b/public/components/common/choosePurchaseApply/choosePurchaseApply.js @@ -31,8 +31,7 @@ }; //发送get请求 - vc.http.get('choosePurchaseApply', - 'list', + vc.http.apiGet('/purchaseApply.listPurchaseApplys', param, function(json){ var _purchaseApplyInfo = JSON.parse(json); diff --git a/public/components/common/listDemoStudy/listDemoStudy.js b/public/components/common/listDemoStudy/listDemoStudy.js index b39620844..c5339ab70 100755 --- a/public/components/common/listDemoStudy/listDemoStudy.js +++ b/public/components/common/listDemoStudy/listDemoStudy.js @@ -31,8 +31,7 @@ } //发送get请求 - vc.http.get('listDemoStudy', - 'list', + vc.http.apiGet('/demo.queryDemoConfig', param, function(json,res){ var listData =JSON.parse(json); diff --git a/public/components/common/storesCommunity/storesCommunity.js b/public/components/common/storesCommunity/storesCommunity.js index 91453a357..091c3c0f0 100755 --- a/public/components/common/storesCommunity/storesCommunity.js +++ b/public/components/common/storesCommunity/storesCommunity.js @@ -36,8 +36,7 @@ } //发送get请求 - vc.http.get('storesCommunity', - 'listMyCommunity', + vc.http.apiGet('/community.listCommunitys', param, function(json,res){ var _communityInfo =JSON.parse(json); diff --git a/public/components/dev/chooseBasePrivilege/chooseBasePrivilege.js b/public/components/dev/chooseBasePrivilege/chooseBasePrivilege.js index fc6218860..a5d827e28 100755 --- a/public/components/dev/chooseBasePrivilege/chooseBasePrivilege.js +++ b/public/components/dev/chooseBasePrivilege/chooseBasePrivilege.js @@ -31,8 +31,7 @@ }; //发送get请求 - vc.http.get('chooseBasePrivilege', - 'list', + vc.http.apiGet('/basePrivilege.listBasePrivileges', param, function(json){ var _basePrivilegeInfo = JSON.parse(json); diff --git a/public/pages/property/inspectionTaskDetails/inspectionTaskDetails.js b/public/pages/property/inspectionTaskDetails/inspectionTaskDetails.js index 5abca08e4..b0d572d17 100644 --- a/public/pages/property/inspectionTaskDetails/inspectionTaskDetails.js +++ b/public/pages/property/inspectionTaskDetails/inspectionTaskDetails.js @@ -173,8 +173,7 @@ } }; //发送get请求 - vc.http.get('inspectionPlanManage', - 'list', + vc.http.apiGet('/inspectionPlan.listInspectionPlans', param, function (json, res) { var _inspectionPointManageInfo = JSON.parse(json); @@ -194,8 +193,7 @@ } }; //发送get请求 - vc.http.get('inspectionRouteManage', - 'list', + vc.http.apiGet('/inspectionRoute.listInspectionRoutes', param, function (json, res) { var _inspectionPointManageInfo = JSON.parse(json); @@ -215,8 +213,7 @@ } }; //发送get请求 - vc.http.get('inspectionPointManage', - 'list', + vc.http.apiGet('/inspectionPoint.listInspectionPoints', param, function (json, res) { var _inspectionPointManageInfo = JSON.parse(json); diff --git a/public/pages/property/listCarFee/listCarFee.js b/public/pages/property/listCarFee/listCarFee.js index e30765450..e934c24d5 100755 --- a/public/pages/property/listCarFee/listCarFee.js +++ b/public/pages/property/listCarFee/listCarFee.js @@ -48,11 +48,10 @@ } }; //发送get请求 - vc.http.get('listParkingSpaceFee', - 'list', + vc.http.apiGet('/fee.listFee', param, function (json) { - var _feeConfigInfo = JSON.parse(json); + let _feeConfigInfo = JSON.parse(json); vc.component.listCarFeeInfo.total = _feeConfigInfo.total; vc.component.listCarFeeInfo.records = _feeConfigInfo.records; vc.component.listCarFeeInfo.fees = _feeConfigInfo.fees; diff --git a/public/pages/property/listOweFee/listOweFee.js b/public/pages/property/listOweFee/listOweFee.js index f2d7b3660..1223df58a 100755 --- a/public/pages/property/listOweFee/listOweFee.js +++ b/public/pages/property/listOweFee/listOweFee.js @@ -149,7 +149,7 @@ } }; //发送get请求 - vc.http.get('feeConfigManage', 'list', param, + vc.http.apiGet('/feeConfig.listFeeConfigs', param, function (json, res) { var _feeConfigManageInfo = JSON.parse(json); vc.component.listOweFeeInfo.feeConfigs = _feeConfigManageInfo.feeConfigs; diff --git a/public/pages/property/listRoomFee/listRoomFee.js b/public/pages/property/listRoomFee/listRoomFee.js index 808f89fe1..eb32e220e 100755 --- a/public/pages/property/listRoomFee/listRoomFee.js +++ b/public/pages/property/listRoomFee/listRoomFee.js @@ -173,8 +173,7 @@ } }; //发送get请求 - vc.http.get('roomCreateFee', - 'listRoom', + vc.http.apiGet('/fee.listRoomsWhereFeeSet', param, function(json, res) { let listRoomData = JSON.parse(json); diff --git a/public/pages/property/listSonResourceStoreType/listSonResourceStoreType.js b/public/pages/property/listSonResourceStoreType/listSonResourceStoreType.js index 2364d2665..8bbae6068 100644 --- a/public/pages/property/listSonResourceStoreType/listSonResourceStoreType.js +++ b/public/pages/property/listSonResourceStoreType/listSonResourceStoreType.js @@ -43,8 +43,7 @@ param.params.rsId = param.params.rsId.trim(); param.params.rstName = param.params.rstName.trim(); //发送get请求 - vc.http.get('resourceStoreTypeManage', - 'list', + vc.http.apiGet('/resourceStoreType.listResourceStoreTypes', param, function (json, res) { var _sonResourceStoreTypeInfo = JSON.parse(json); diff --git a/public/pages/property/listStoreManage/listStoreManage.js b/public/pages/property/listStoreManage/listStoreManage.js index e8e1d1575..ff1af15b8 100755 --- a/public/pages/property/listStoreManage/listStoreManage.js +++ b/public/pages/property/listStoreManage/listStoreManage.js @@ -39,8 +39,7 @@ }; //发送get请求 - vc.http.get('listStoreManage', - 'list', + vc.http.apiGet('/store.listStores', param, function (json, res) { var _listStoreManageInfo = JSON.parse(json); diff --git a/public/pages/property/machineRecordManage/machineRecordManage.js b/public/pages/property/machineRecordManage/machineRecordManage.js index d79859c37..9a9f950b6 100755 --- a/public/pages/property/machineRecordManage/machineRecordManage.js +++ b/public/pages/property/machineRecordManage/machineRecordManage.js @@ -46,8 +46,7 @@ }; //发送get请求 - vc.http.get('machineRecordManage', - 'list', + vc.http.apiGet('/machineRecord.listMachineRecords"', param, function (json, res) { var _machineRecordManageInfo = JSON.parse(json); diff --git a/public/pages/property/machineTranslateManage/machineTranslateManage.js b/public/pages/property/machineTranslateManage/machineTranslateManage.js index d7282a237..23d4a68a4 100755 --- a/public/pages/property/machineTranslateManage/machineTranslateManage.js +++ b/public/pages/property/machineTranslateManage/machineTranslateManage.js @@ -38,13 +38,12 @@ vc.component.machineTranslateManageInfo.conditions.page = _page; vc.component.machineTranslateManageInfo.conditions.row = _rows; - var param = { + let param = { params: vc.component.machineTranslateManageInfo.conditions }; //发送get请求 - vc.http.get('machineTranslateManage', - 'list', + vc.http.apiGet('/machineTranslate.listMachineTranslates', param, function (json, res) { var _machineTranslateManageInfo = JSON.parse(json); diff --git a/public/pages/property/machineVistorPhotoManage/machineVistorPhotoManage.js b/public/pages/property/machineVistorPhotoManage/machineVistorPhotoManage.js index fc0235af4..559961a36 100755 --- a/public/pages/property/machineVistorPhotoManage/machineVistorPhotoManage.js +++ b/public/pages/property/machineVistorPhotoManage/machineVistorPhotoManage.js @@ -46,8 +46,7 @@ }; //发送get请求 - vc.http.get('machineVistorPhotoManage', - 'list', + vc.http.apiGet('/machineRecord.listMachineRecords', param, function(json, res) { var _machineVistorPhotoManageInfo = JSON.parse(json); diff --git a/public/pages/property/printOweFee/printOweFee.js b/public/pages/property/printOweFee/printOweFee.js index aa5c8dee5..d199088e2 100755 --- a/public/pages/property/printOweFee/printOweFee.js +++ b/public/pages/property/printOweFee/printOweFee.js @@ -98,8 +98,7 @@ } }; //发送get请求 - vc.http.get('roomCreateFee', - 'listRoom', + vc.http.apiGet('/fee.listRoomsWhereFeeSet', param, function (json, res) { var listRoomData = JSON.parse(json); diff --git a/public/pages/property/printPayFees/printPayFees.js b/public/pages/property/printPayFees/printPayFees.js index 00f1e572a..516cbd524 100755 --- a/public/pages/property/printPayFees/printPayFees.js +++ b/public/pages/property/printPayFees/printPayFees.js @@ -151,8 +151,7 @@ }; //发送get请求 - vc.http.get('listStoreManage', - 'getStoreInfo', + vc.http.apiGet('/store.listStores', param, function (json, res) { var _listStoreManageInfo = JSON.parse(json); diff --git a/public/pages/property/printPurchaseApply/printPurchaseApply.js b/public/pages/property/printPurchaseApply/printPurchaseApply.js index 2e3685034..0c08226af 100755 --- a/public/pages/property/printPurchaseApply/printPurchaseApply.js +++ b/public/pages/property/printPurchaseApply/printPurchaseApply.js @@ -29,8 +29,7 @@ }; //发送get请求 - vc.http.get('purchaseApplyManage', - 'list', + vc.http.apiGet('/purchaseApply.listPurchaseApplys', param, function (json, res) { var _purchaseApplyDetailInfo = JSON.parse(json); diff --git a/public/pages/property/remainingParkingSpace/remainingParkingSpace.js b/public/pages/property/remainingParkingSpace/remainingParkingSpace.js index 27bb5d6eb..6d1473cb6 100755 --- a/public/pages/property/remainingParkingSpace/remainingParkingSpace.js +++ b/public/pages/property/remainingParkingSpace/remainingParkingSpace.js @@ -22,8 +22,7 @@ } //发送get请求 - vc.http.get('remainingParkingSpace', - 'list', + vc.http.apiGet('/machineTranslate.machineGetFreeParkingSpace', param, function (json, res) { var listParkingSpaceData = JSON.parse(json).data; diff --git a/public/pages/property/repairDispatchManage/repairDispatchManage.js b/public/pages/property/repairDispatchManage/repairDispatchManage.js index 601305aa3..9f8e58dd1 100755 --- a/public/pages/property/repairDispatchManage/repairDispatchManage.js +++ b/public/pages/property/repairDispatchManage/repairDispatchManage.js @@ -66,8 +66,7 @@ } }; //查询房屋信息 业主信息 - vc.http.get('repairDispatchManage', - 'getRoom', + vc.http.apiGet('/room.queryRooms', param, function(json, res) { if (res.status == 200) { diff --git a/public/pages/property/reportFeeDetail/reportFeeDetail.js b/public/pages/property/reportFeeDetail/reportFeeDetail.js index c5451d2f6..37532e8b8 100755 --- a/public/pages/property/reportFeeDetail/reportFeeDetail.js +++ b/public/pages/property/reportFeeDetail/reportFeeDetail.js @@ -231,7 +231,7 @@ } }; //发送get请求 - vc.http.get('roomCreateFeeAdd', 'list', param, + vc.http.apiGet('/feeConfig.listFeeConfigs', param, function(json, res) { var _feeConfigManageInfo = JSON.parse(json); vc.component.reportFeeDetailInfo.feeConfigDtos = _feeConfigManageInfo.feeConfigs; diff --git a/public/pages/property/reportFeeSummary/reportFeeSummary.js b/public/pages/property/reportFeeSummary/reportFeeSummary.js index 3642babea..4675a847e 100755 --- a/public/pages/property/reportFeeSummary/reportFeeSummary.js +++ b/public/pages/property/reportFeeSummary/reportFeeSummary.js @@ -250,7 +250,7 @@ } }; //发送get请求 - vc.http.get('feeConfigManage', 'list', param, + vc.http.apiGet('/feeConfig.listFeeConfigs', param, function (json, res) { var _feeConfigManageInfo = JSON.parse(json); vc.component.reportFeeSummaryInfo.feeConfigs = _feeConfigManageInfo.feeConfigs; diff --git a/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js index 5a23dc5b5..19f33b5d1 100755 --- a/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js +++ b/public/pages/property/reportFloorUnitFeeSummary/reportFloorUnitFeeSummary.js @@ -249,7 +249,7 @@ } }; //发送get请求 - vc.http.get('feeConfigManage', 'list', param, + vc.http.apiGet('/feeConfig.listFeeConfigs', param, function(json, res) { var _feeConfigManageInfo = JSON.parse(json); vc.component.reportFloorUnitFeeSummaryInfo.feeConfigs = _feeConfigManageInfo.feeConfigs; diff --git a/public/pages/property/staffFeeManage/staffFeeManage.js b/public/pages/property/staffFeeManage/staffFeeManage.js index d725acb5b..c834b3575 100755 --- a/public/pages/property/staffFeeManage/staffFeeManage.js +++ b/public/pages/property/staffFeeManage/staffFeeManage.js @@ -92,8 +92,7 @@ params: vc.component.staffFeeManageInfo.conditions }; //发送get请求 - vc.http.get('staffFeeManage', - 'list', + vc.http.apiGet('/api.getStaffFee', param, function (json, res) { var _staffFeeManageInfo = JSON.parse(json); diff --git a/public/pages/property/tempCarInoutFeeManage/tempCarInoutFeeManage.js b/public/pages/property/tempCarInoutFeeManage/tempCarInoutFeeManage.js index 50e40cdb0..d74827e5d 100755 --- a/public/pages/property/tempCarInoutFeeManage/tempCarInoutFeeManage.js +++ b/public/pages/property/tempCarInoutFeeManage/tempCarInoutFeeManage.js @@ -80,8 +80,7 @@ params: vc.component.tempCarInoutFeeManageInfo.conditions }; //发送get请求 - vc.http.get('tempCarInoutFeeManage', - 'list', + vc.http.apiGet('/api.getTempCarInoutFee', param, function (json, res) { var _tempCarInoutFeeManageInfo = JSON.parse(json); diff --git a/public/pages/property/visitManage/visitManage.js b/public/pages/property/visitManage/visitManage.js index a0c93c385..673a0d247 100755 --- a/public/pages/property/visitManage/visitManage.js +++ b/public/pages/property/visitManage/visitManage.js @@ -91,8 +91,7 @@ param.params.vName = param.params.vName.trim(); param.params.phoneNumber = param.params.phoneNumber.trim(); //发送get请求 - vc.http.get('visitManage', - 'list', + vc.http.apiGet('/visit.listVisits', param, function (json, res) { var _visitManageInfo = JSON.parse(json);