From 475c3b47b70bad141c85a90684f24ac9a27d21c8 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 29 Mar 2020 01:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B7=A1=E6=A3=80=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deleteInspectionPoint.js | 1 + .../deleteInspectionRoutePoint.html | 19 +++++++ .../deleteInspectionRoutePoint.js | 52 +++++++++++++++++++ .../inspectionRoutePointManage.html | 2 + .../inspectionRoutePointManage.js | 3 +- 5 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.html create mode 100644 public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.js diff --git a/public/components/deleteInspectionPoint/deleteInspectionPoint.js b/public/components/deleteInspectionPoint/deleteInspectionPoint.js index b672af5b5..309652bb5 100644 --- a/public/components/deleteInspectionPoint/deleteInspectionPoint.js +++ b/public/components/deleteInspectionPoint/deleteInspectionPoint.js @@ -33,6 +33,7 @@ //关闭model $('#deleteInspectionPointModel').modal('hide'); vc.emit('inspectionPointManage','listInspectionPoint',{}); + return ; } vc.toast(json); diff --git a/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.html b/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.html new file mode 100644 index 000000000..2c97b5a18 --- /dev/null +++ b/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.html @@ -0,0 +1,19 @@ +
diff --git a/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.js b/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.js new file mode 100644 index 000000000..52a8c1d5c --- /dev/null +++ b/public/components/deleteInspectionRoutePoint/deleteInspectionRoutePoint.js @@ -0,0 +1,52 @@ +(function(vc,vm){ + + vc.extends({ + data:{ + deleteInspectionRoutePointInfo:{ + + } + }, + _initMethod:function(){ + + }, + _initEvent:function(){ + vc.on('deleteInspectionRoutePoint','openDeleteInspectionRoutePointModal',function(_params){ + + vc.component.deleteInspectionRoutePointInfo = _params; + $('#deleteInspectionRoutePointModel').modal('show'); + + }); + }, + methods:{ + deleteInspectionRoutePoint:function(){ + vc.component.deleteInspectionRoutePointInfo.communityId=vc.getCurrentCommunity().communityId; + vc.http.apiPost( + 'inspectionRoute.deleteInspectionRoutePoint', + JSON.stringify(vc.component.deleteInspectionRoutePointInfo), + { + emulateJSON:true + }, + function(json,res){ + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + if(res.status == 200){ + //关闭model + $('#deleteInspectionRoutePointModel').modal('hide'); + vc.emit('inspectionRoutePointManage','listInspectionPoint',$that.deleteInspectionRoutePointInfo); + + return ; + } + vc.toast(json); + }, + function(errInfo,error){ + console.log('请求失败处理'); + vc.toast(json); + + }); + }, + closedeleteInspectionRoutePointModel:function(){ + $('#deleteInspectionRoutePointModel').modal('hide'); + } + } + }); + +})(window.vc,window.vc.component); diff --git a/public/components/inspectionRoutePointManage/inspectionRoutePointManage.html b/public/components/inspectionRoutePointManage/inspectionRoutePointManage.html index b3ae9a51c..2da9fc75d 100644 --- a/public/components/inspectionRoutePointManage/inspectionRoutePointManage.html +++ b/public/components/inspectionRoutePointManage/inspectionRoutePointManage.html @@ -64,4 +64,6 @@ emitListener="inspectionRoutePointManage" emitFunction="listInspectionPoint" > + +