From 91ddf3d8ce84d6cf45be47f52c76637977bc99b7 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Thu, 11 Aug 2022 23:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/deleteApplicationKey/deleteApplicationKey.js | 5 ++--- .../property/deleteCarBlackWhite/deleteCarBlackWhite.js | 5 ++--- .../property/deleteInspectionPlan/deleteInspectionPlan.js | 5 ++--- .../property/deleteInspectionPoint/deleteInspectionPoint.js | 5 ++--- .../property/deleteInspectionRoute/deleteInspectionRoute.js | 5 ++--- public/components/property/deleteMachine/deleteMachine.js | 5 ++--- .../deleteMachineTranslate/deleteMachineTranslate.js | 5 ++--- .../property/deleteOwnerRepair/deleteOwnerRepair.js | 5 ++--- .../property/editActivitiesView/editActivitiesView.js | 5 ++--- public/components/property/editAdvert/editAdvert.js | 5 ++--- .../property/editApplicationKey/editApplicationKey.js | 5 ++--- .../property/editInspectionPlan/editInspectionPlan.js | 5 ++--- .../property/editInspectionPoint/editInspectionPoint.js | 5 ++--- public/components/property/editMachine/editMachine.js | 5 ++--- .../components/property/editOwnerRepair/editOwnerRepair.js | 5 ++--- public/components/property/editVisit/editVisit.js | 5 ++--- 16 files changed, 32 insertions(+), 48 deletions(-) diff --git a/public/components/property/deleteApplicationKey/deleteApplicationKey.js b/public/components/property/deleteApplicationKey/deleteApplicationKey.js index a38d2b107..6a6f6dedc 100755 --- a/public/components/property/deleteApplicationKey/deleteApplicationKey.js +++ b/public/components/property/deleteApplicationKey/deleteApplicationKey.js @@ -20,9 +20,8 @@ methods:{ deleteApplicationKey:function(){ vc.component.deleteApplicationKeyInfo.communityId=vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteApplicationKey', - 'delete', + vc.http.apiPost( + '/applicationKey.deleteApplicationKey', JSON.stringify(vc.component.deleteApplicationKeyInfo), { emulateJSON:true diff --git a/public/components/property/deleteCarBlackWhite/deleteCarBlackWhite.js b/public/components/property/deleteCarBlackWhite/deleteCarBlackWhite.js index 757e033c0..d102d6878 100755 --- a/public/components/property/deleteCarBlackWhite/deleteCarBlackWhite.js +++ b/public/components/property/deleteCarBlackWhite/deleteCarBlackWhite.js @@ -20,9 +20,8 @@ methods:{ deleteCarBlackWhite:function(){ vc.component.deleteCarBlackWhiteInfo.communityId=vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteCarBlackWhite', - 'delete', + vc.http.apiPost( + '/carBlackWhite.deleteCarBlackWhite', JSON.stringify(vc.component.deleteCarBlackWhiteInfo), { emulateJSON:true diff --git a/public/components/property/deleteInspectionPlan/deleteInspectionPlan.js b/public/components/property/deleteInspectionPlan/deleteInspectionPlan.js index b54826719..d8763d3d9 100755 --- a/public/components/property/deleteInspectionPlan/deleteInspectionPlan.js +++ b/public/components/property/deleteInspectionPlan/deleteInspectionPlan.js @@ -14,9 +14,8 @@ methods: { deleteInspectionPlan: function () { vc.component.deleteInspectionPlanInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteInspectionPlan', - 'delete', + vc.http.apiPost( + '/inspectionPlan.deleteInspectionPlan', JSON.stringify(vc.component.deleteInspectionPlanInfo), { emulateJSON: true diff --git a/public/components/property/deleteInspectionPoint/deleteInspectionPoint.js b/public/components/property/deleteInspectionPoint/deleteInspectionPoint.js index d6e830b1e..6b136ab06 100755 --- a/public/components/property/deleteInspectionPoint/deleteInspectionPoint.js +++ b/public/components/property/deleteInspectionPoint/deleteInspectionPoint.js @@ -20,9 +20,8 @@ methods:{ deleteInspectionPoint:function(){ vc.component.deleteInspectionPointInfo.communityId=vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteInspectionPoint', - 'delete', + vc.http.apiPost( + '/inspectionPoint.deleteInspectionPoint', JSON.stringify(vc.component.deleteInspectionPointInfo), { emulateJSON:true diff --git a/public/components/property/deleteInspectionRoute/deleteInspectionRoute.js b/public/components/property/deleteInspectionRoute/deleteInspectionRoute.js index bd55ddc76..63ddd61b3 100755 --- a/public/components/property/deleteInspectionRoute/deleteInspectionRoute.js +++ b/public/components/property/deleteInspectionRoute/deleteInspectionRoute.js @@ -13,9 +13,8 @@ methods: { deleteInspectionRoute: function() { vc.component.deleteInspectionRouteInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteInspectionRoute', - 'delete', + vc.http.apiPost( + '/inspectionRoute.deleteInspectionRoute', JSON.stringify(vc.component.deleteInspectionRouteInfo), { emulateJSON: true }, diff --git a/public/components/property/deleteMachine/deleteMachine.js b/public/components/property/deleteMachine/deleteMachine.js index 9139ff51b..084676496 100755 --- a/public/components/property/deleteMachine/deleteMachine.js +++ b/public/components/property/deleteMachine/deleteMachine.js @@ -20,9 +20,8 @@ methods: { deleteMachine: function() { vc.component.deleteMachineInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteMachine', - 'delete', + vc.http.apiPost( + '/machine.deleteMachine', JSON.stringify(vc.component.deleteMachineInfo), { emulateJSON: true }, diff --git a/public/components/property/deleteMachineTranslate/deleteMachineTranslate.js b/public/components/property/deleteMachineTranslate/deleteMachineTranslate.js index 5cc5c477c..35cb8f42a 100755 --- a/public/components/property/deleteMachineTranslate/deleteMachineTranslate.js +++ b/public/components/property/deleteMachineTranslate/deleteMachineTranslate.js @@ -20,9 +20,8 @@ methods:{ deleteMachineTranslate:function(){ vc.component.deleteMachineTranslateInfo.communityId=vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteMachineTranslate', - 'delete', + vc.http.apiPost( + '/machineTranslate.deleteMachineTranslate', JSON.stringify(vc.component.deleteMachineTranslateInfo), { emulateJSON:true diff --git a/public/components/property/deleteOwnerRepair/deleteOwnerRepair.js b/public/components/property/deleteOwnerRepair/deleteOwnerRepair.js index 10f15897c..9a53724f2 100755 --- a/public/components/property/deleteOwnerRepair/deleteOwnerRepair.js +++ b/public/components/property/deleteOwnerRepair/deleteOwnerRepair.js @@ -18,9 +18,8 @@ methods: { deleteOwnerRepair: function () { vc.component.deleteOwnerRepairInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteOwnerRepair', - 'delete', + vc.http.apiPost( + '/ownerRepair.deleteOwnerRepair', JSON.stringify(vc.component.deleteOwnerRepairInfo), { emulateJSON: true diff --git a/public/components/property/editActivitiesView/editActivitiesView.js b/public/components/property/editActivitiesView/editActivitiesView.js index 5ad12301b..419fb7e0d 100755 --- a/public/components/property/editActivitiesView/editActivitiesView.js +++ b/public/components/property/editActivitiesView/editActivitiesView.js @@ -110,9 +110,8 @@ return; } vc.component.editActivitiesViewInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'editActivitiesView', - 'update', + vc.http.apiPost( + '/activities.updateActivities', JSON.stringify(vc.component.editActivitiesViewInfo), { emulateJSON: true }, diff --git a/public/components/property/editAdvert/editAdvert.js b/public/components/property/editAdvert/editAdvert.js index a0666bb60..4eb067094 100755 --- a/public/components/property/editAdvert/editAdvert.js +++ b/public/components/property/editAdvert/editAdvert.js @@ -192,9 +192,8 @@ } else { vc.component.editAdvertInfo.photos = []; } - vc.http.post( - 'editAdvert', - 'update', + vc.http.apiPost( + '/advert.updateAdvert', JSON.stringify(vc.component.editAdvertInfo), { emulateJSON: true }, diff --git a/public/components/property/editApplicationKey/editApplicationKey.js b/public/components/property/editApplicationKey/editApplicationKey.js index 2aee758ea..76af95676 100755 --- a/public/components/property/editApplicationKey/editApplicationKey.js +++ b/public/components/property/editApplicationKey/editApplicationKey.js @@ -260,9 +260,8 @@ return; } - vc.http.post( - 'editApplicationKey', - 'update', + vc.http.apiPost( + '/applicationKey.updateApplicationKey', JSON.stringify(vc.component.editApplicationKeyInfo), { emulateJSON: true diff --git a/public/components/property/editInspectionPlan/editInspectionPlan.js b/public/components/property/editInspectionPlan/editInspectionPlan.js index af5692b71..4089f84f3 100755 --- a/public/components/property/editInspectionPlan/editInspectionPlan.js +++ b/public/components/property/editInspectionPlan/editInspectionPlan.js @@ -181,9 +181,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editInspectionPlan', - 'update', + vc.http.apiPost( + '/inspectionPlan.updateInspectionPlan', JSON.stringify(vc.component.editInspectionPlanInfo), { emulateJSON: true diff --git a/public/components/property/editInspectionPoint/editInspectionPoint.js b/public/components/property/editInspectionPoint/editInspectionPoint.js index ef3db978c..136297f52 100755 --- a/public/components/property/editInspectionPoint/editInspectionPoint.js +++ b/public/components/property/editInspectionPoint/editInspectionPoint.js @@ -109,9 +109,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editInspectionPoint', - 'update', + vc.http.apiPost( + '/inspectionPoint.updateInspectionPoint', JSON.stringify(vc.component.editInspectionPointInfo), { emulateJSON: true }, diff --git a/public/components/property/editMachine/editMachine.js b/public/components/property/editMachine/editMachine.js index ebdb2d365..892c7a7be 100755 --- a/public/components/property/editMachine/editMachine.js +++ b/public/components/property/editMachine/editMachine.js @@ -228,9 +228,8 @@ return; } - vc.http.post( - 'editMachine', - 'update', + vc.http.apiPost( + '/machine.updateMachine', JSON.stringify(vc.component.editMachineInfo), { emulateJSON: true }, diff --git a/public/components/property/editOwnerRepair/editOwnerRepair.js b/public/components/property/editOwnerRepair/editOwnerRepair.js index 5d33a53d5..a22259664 100755 --- a/public/components/property/editOwnerRepair/editOwnerRepair.js +++ b/public/components/property/editOwnerRepair/editOwnerRepair.js @@ -135,9 +135,8 @@ return; } vc.component.editOwnerRepairInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'editOwnerRepair', - 'update', + vc.http.apiPost( + '/ownerRepair.updateOwnerRepair', JSON.stringify(vc.component.editOwnerRepairInfo), { emulateJSON: true diff --git a/public/components/property/editVisit/editVisit.js b/public/components/property/editVisit/editVisit.js index a52873959..8d5f97253 100755 --- a/public/components/property/editVisit/editVisit.js +++ b/public/components/property/editVisit/editVisit.js @@ -122,9 +122,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editVisit', - 'update', + vc.http.apiPost( + '/visit.updateVisit', JSON.stringify(vc.component.editVisitInfo), { emulateJSON: true