From a18d565dc66f64caf079fcd230879235a9ac9deb Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Thu, 11 Aug 2022 23:06:55 +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 --- public/components/common/addNotice/addNotice.js | 5 ++--- public/components/common/addNoticeView/addNoticeView.js | 5 ++--- .../common/addResourceQuantity/addResourceQuantity.js | 5 ++--- .../components/common/addResourceStore/addResourceStore.js | 5 ++--- public/components/common/deleteAuditUser/deleteAuditUser.js | 5 ++--- public/components/common/deleteComplaint/deleteComplaint.js | 5 ++--- public/components/common/deleteItemOut/deleteItemOut.js | 5 ++--- public/components/common/deleteNotice/deleteNotice.js | 5 ++--- .../common/deleteOrgCommunity/deleteOrgCommunity.js | 5 ++--- .../common/deletePurchaseApply/deletePurchaseApply.js | 5 ++--- .../common/deleteResourceStore/deleteResourceStore.js | 5 ++--- public/components/common/editComplaint/editComplaint.js | 5 ++--- .../common/editItemNumberStore/editItemNumberStore.js | 5 ++--- public/components/common/editNoticeView/editNoticeView.js | 5 ++--- .../common/editPurchaseApply/editPurchaseApply.js | 5 ++--- .../common/editResourceStore/editItemNumberStore.js | 5 ++--- .../common/editResourceStore/editResourceStore.js | 5 ++--- .../common/editResourceStoreType/editResourceStoreType.js | 5 ++--- public/components/common/itemOut/itemOut.js | 5 ++--- .../property/deleteParkingSpace/deleteParkingSpace.js | 5 ++--- .../property/editParkingSpace/editParkingSpace.js | 6 +++--- 21 files changed, 43 insertions(+), 63 deletions(-) diff --git a/public/components/common/addNotice/addNotice.js b/public/components/common/addNotice/addNotice.js index aa4e91182..a50722c60 100755 --- a/public/components/common/addNotice/addNotice.js +++ b/public/components/common/addNotice/addNotice.js @@ -85,9 +85,8 @@ vc.component.addNoticeInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'addNotice', - 'save', + vc.http.apiPost( + '/notice.saveNotice', JSON.stringify(vc.component.addNoticeInfo), { emulateJSON: true diff --git a/public/components/common/addNoticeView/addNoticeView.js b/public/components/common/addNoticeView/addNoticeView.js index 3ecdd1226..4ddb02c5e 100755 --- a/public/components/common/addNoticeView/addNoticeView.js +++ b/public/components/common/addNoticeView/addNoticeView.js @@ -121,9 +121,8 @@ return; } vc.component.addNoticeViewInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'addNoticeView', - 'save', + vc.http.apiPost( + '/notice.saveNotice', JSON.stringify(vc.component.addNoticeViewInfo), { emulateJSON: true diff --git a/public/components/common/addResourceQuantity/addResourceQuantity.js b/public/components/common/addResourceQuantity/addResourceQuantity.js index b8f8d749e..0bcba3777 100755 --- a/public/components/common/addResourceQuantity/addResourceQuantity.js +++ b/public/components/common/addResourceQuantity/addResourceQuantity.js @@ -48,9 +48,8 @@ return ; } vc.component.addResourceEnterQuantityInfo.stock = vc.component.addResourceEnterQuantityInfo.stock + vc.component.addResourceEnterQuantityInfo.enterQuantity - vc.http.post( - 'editResourceStore', - 'update', + vc.http.apiPost( + '/resourceStore.updateResourceStore', JSON.stringify(vc.component.addResourceEnterQuantityInfo), { emulateJSON:true diff --git a/public/components/common/addResourceStore/addResourceStore.js b/public/components/common/addResourceStore/addResourceStore.js index c2bebced6..21828189b 100755 --- a/public/components/common/addResourceStore/addResourceStore.js +++ b/public/components/common/addResourceStore/addResourceStore.js @@ -189,9 +189,8 @@ $('#addResourceStoreModel').modal('hide'); return; } - vc.http.post( - 'addResourceStore', - 'save', + vc.http.apiPost( + '/resourceStore.saveResourceStore', JSON.stringify(vc.component.addResourceStoreInfo), { emulateJSON: true }, diff --git a/public/components/common/deleteAuditUser/deleteAuditUser.js b/public/components/common/deleteAuditUser/deleteAuditUser.js index c716167dc..e6dc5635f 100755 --- a/public/components/common/deleteAuditUser/deleteAuditUser.js +++ b/public/components/common/deleteAuditUser/deleteAuditUser.js @@ -18,9 +18,8 @@ methods: { deleteAuditUser: function () { vc.component.deleteAuditUserInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteAuditUser', - 'delete', + vc.http.apiPost( + '/auditUser.deleteAuditUser', JSON.stringify(vc.component.deleteAuditUserInfo), { emulateJSON: true diff --git a/public/components/common/deleteComplaint/deleteComplaint.js b/public/components/common/deleteComplaint/deleteComplaint.js index 746e5c1ad..ede743694 100755 --- a/public/components/common/deleteComplaint/deleteComplaint.js +++ b/public/components/common/deleteComplaint/deleteComplaint.js @@ -14,9 +14,8 @@ methods: { deleteComplaint: function () { vc.component.deleteComplaintInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteComplaint', - 'delete', + vc.http.apiPost( + '/complaint.deleteComplaint', JSON.stringify(vc.component.deleteComplaintInfo), { emulateJSON: true diff --git a/public/components/common/deleteItemOut/deleteItemOut.js b/public/components/common/deleteItemOut/deleteItemOut.js index 0b84d2306..6e27410ee 100644 --- a/public/components/common/deleteItemOut/deleteItemOut.js +++ b/public/components/common/deleteItemOut/deleteItemOut.js @@ -14,9 +14,8 @@ methods: { deleteItemOut: function () { vc.component.deleteItemOutInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deletePurchaseApply', - 'delete', + vc.http.apiPost( + '/purchaseApply.deletePurchaseApply', JSON.stringify(vc.component.deleteItemOutInfo), { emulateJSON: true diff --git a/public/components/common/deleteNotice/deleteNotice.js b/public/components/common/deleteNotice/deleteNotice.js index 155bb521b..95ea07196 100755 --- a/public/components/common/deleteNotice/deleteNotice.js +++ b/public/components/common/deleteNotice/deleteNotice.js @@ -14,9 +14,8 @@ methods: { deleteNotice: function () { vc.component.deleteNoticeInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteNotice', - 'delete', + vc.http.apiPost( + '/notice.deleteNotice', JSON.stringify(vc.component.deleteNoticeInfo), { emulateJSON: true diff --git a/public/components/common/deleteOrgCommunity/deleteOrgCommunity.js b/public/components/common/deleteOrgCommunity/deleteOrgCommunity.js index 31ac1726c..316168546 100755 --- a/public/components/common/deleteOrgCommunity/deleteOrgCommunity.js +++ b/public/components/common/deleteOrgCommunity/deleteOrgCommunity.js @@ -20,9 +20,8 @@ methods:{ deleteOrgCommunity:function(){ vc.component.deleteOrgCommunityInfo.communityId=vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteOrgCommunity', - 'delete', + vc.http.apiPost( + '/org.deleteOrgCommunity', JSON.stringify(vc.component.deleteOrgCommunityInfo), { emulateJSON:true diff --git a/public/components/common/deletePurchaseApply/deletePurchaseApply.js b/public/components/common/deletePurchaseApply/deletePurchaseApply.js index ee97c02c8..d37e9cd69 100755 --- a/public/components/common/deletePurchaseApply/deletePurchaseApply.js +++ b/public/components/common/deletePurchaseApply/deletePurchaseApply.js @@ -14,9 +14,8 @@ methods: { deletePurchaseApply: function () { vc.component.deletePurchaseApplyInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deletePurchaseApply', - 'delete', + vc.http.apiPost( + '/purchaseApply.deletePurchaseApply', JSON.stringify(vc.component.deletePurchaseApplyInfo), { emulateJSON: true diff --git a/public/components/common/deleteResourceStore/deleteResourceStore.js b/public/components/common/deleteResourceStore/deleteResourceStore.js index 476ce2ce3..a9e1f070c 100755 --- a/public/components/common/deleteResourceStore/deleteResourceStore.js +++ b/public/components/common/deleteResourceStore/deleteResourceStore.js @@ -14,9 +14,8 @@ methods: { deleteResourceStore: function () { vc.component.deleteResourceStoreInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteResourceStore', - 'delete', + vc.http.apiPost( + '/resourceStore.deleteResourceStore', JSON.stringify(vc.component.deleteResourceStoreInfo), { emulateJSON: true }, diff --git a/public/components/common/editComplaint/editComplaint.js b/public/components/common/editComplaint/editComplaint.js index 8e66086c2..7987aa89a 100755 --- a/public/components/common/editComplaint/editComplaint.js +++ b/public/components/common/editComplaint/editComplaint.js @@ -79,9 +79,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editComplaint', - 'update', + vc.http.apiPost( + '/complaint.updateComplaint', JSON.stringify(vc.component.editComplaintInfo), { emulateJSON: true }, diff --git a/public/components/common/editItemNumberStore/editItemNumberStore.js b/public/components/common/editItemNumberStore/editItemNumberStore.js index 63feb6184..3ca550a08 100755 --- a/public/components/common/editItemNumberStore/editItemNumberStore.js +++ b/public/components/common/editItemNumberStore/editItemNumberStore.js @@ -86,9 +86,8 @@ console.log("JS加载开始"); return; } console.log("开始向后台发送请求!"); - vc.http.post( - 'editResourceStore', - 'update', + vc.http.apiPost( + '/resourceStore.updateResourceStore', JSON.stringify(vc.component.editResourceStoreInfo), { emulateJSON: true diff --git a/public/components/common/editNoticeView/editNoticeView.js b/public/components/common/editNoticeView/editNoticeView.js index 8c7b15026..ccd471f41 100755 --- a/public/components/common/editNoticeView/editNoticeView.js +++ b/public/components/common/editNoticeView/editNoticeView.js @@ -106,9 +106,8 @@ return; } vc.component.editNoticeViewInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'editNotice', - 'update', + vc.http.apiPost( + '/notice.updateNotice', JSON.stringify(vc.component.editNoticeViewInfo), { emulateJSON: true diff --git a/public/components/common/editPurchaseApply/editPurchaseApply.js b/public/components/common/editPurchaseApply/editPurchaseApply.js index 5826c4db8..a912b93e3 100755 --- a/public/components/common/editPurchaseApply/editPurchaseApply.js +++ b/public/components/common/editPurchaseApply/editPurchaseApply.js @@ -51,9 +51,8 @@ state:'', return ; } - vc.http.post( - 'editPurchaseApply', - 'update', + vc.http.apiPost( + '/purchaseApply.updatePurchaseApply', JSON.stringify(vc.component.editPurchaseApplyInfo), { emulateJSON:true diff --git a/public/components/common/editResourceStore/editItemNumberStore.js b/public/components/common/editResourceStore/editItemNumberStore.js index 28b69fe36..1eaeee25d 100755 --- a/public/components/common/editResourceStore/editItemNumberStore.js +++ b/public/components/common/editResourceStore/editItemNumberStore.js @@ -83,9 +83,8 @@ return; } - vc.http.post( - 'editResourceStore', - 'update', + vc.http.apiPost( + '/resourceStore.updateResourceStore', JSON.stringify(vc.component.editResourceStoreInfo), { emulateJSON: true diff --git a/public/components/common/editResourceStore/editResourceStore.js b/public/components/common/editResourceStore/editResourceStore.js index cf40d7a3f..0137eb3e6 100755 --- a/public/components/common/editResourceStore/editResourceStore.js +++ b/public/components/common/editResourceStore/editResourceStore.js @@ -175,9 +175,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editResourceStore', - 'update', + vc.http.apiPost( + '/resourceStore.updateResourceStore', JSON.stringify(vc.component.editResourceStoreInfo), { emulateJSON: true }, diff --git a/public/components/common/editResourceStoreType/editResourceStoreType.js b/public/components/common/editResourceStoreType/editResourceStoreType.js index ae0498359..f68a22a4f 100644 --- a/public/components/common/editResourceStoreType/editResourceStoreType.js +++ b/public/components/common/editResourceStoreType/editResourceStoreType.js @@ -45,9 +45,8 @@ vc.toast(vc.validate.errInfo); return; } - vc.http.post( - 'editResourceStoreType', - 'update', + vc.http.apiPost( + '/resourceStoreType.updateResourceStoreType', JSON.stringify(vc.component.editResourceStoreTypeInfo), { emulateJSON: true diff --git a/public/components/common/itemOut/itemOut.js b/public/components/common/itemOut/itemOut.js index 212191ede..1b401861a 100755 --- a/public/components/common/itemOut/itemOut.js +++ b/public/components/common/itemOut/itemOut.js @@ -65,9 +65,8 @@ data: vc.component.itemOutInfo.infos } - vc.http.post( - 'itemOutBinding', - 'binding', + vc.http.apiPost( + '/itemOut.itemOut', JSON.stringify(param), { emulateJSON: true }, diff --git a/public/components/property/deleteParkingSpace/deleteParkingSpace.js b/public/components/property/deleteParkingSpace/deleteParkingSpace.js index 8fdd917ef..e1e27556f 100755 --- a/public/components/property/deleteParkingSpace/deleteParkingSpace.js +++ b/public/components/property/deleteParkingSpace/deleteParkingSpace.js @@ -18,9 +18,8 @@ }, deleteParkingSpace: function () { vc.component.deleteParkingSpaceInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'deleteParkingSpace', - 'delete', + vc.http.apiPost( + '/parkingSpace.deleteParkingSpace', JSON.stringify(vc.component.deleteParkingSpaceInfo), { emulateJSON: true diff --git a/public/components/property/editParkingSpace/editParkingSpace.js b/public/components/property/editParkingSpace/editParkingSpace.js index 234e7ce56..336cb43b6 100755 --- a/public/components/property/editParkingSpace/editParkingSpace.js +++ b/public/components/property/editParkingSpace/editParkingSpace.js @@ -86,15 +86,15 @@ return; } vc.component.editParkingSpaceInfo.communityId = vc.getCurrentCommunity().communityId; - vc.http.post( - 'editParkingSpace', - 'changeParkingSpace', + vc.http.apiPost( + '/parkingSpace.editParkingSpace', JSON.stringify(vc.component.editParkingSpaceInfo), { emulateJSON: true }, function (json, res) { //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + if (res.status == 200) { //关闭model $('#editParkingSpaceModel').modal('hide');