mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
优化巡检路线
This commit is contained in:
parent
6a798106e2
commit
475c3b47b7
@ -33,6 +33,7 @@
|
||||
//关闭model
|
||||
$('#deleteInspectionPointModel').modal('hide');
|
||||
vc.emit('inspectionPointManage','listInspectionPoint',{});
|
||||
|
||||
return ;
|
||||
}
|
||||
vc.toast(json);
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
<div class="modal fade" id="deleteInspectionRoutePointModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">请确认您的操作!</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<tr align="center"><th>确定删除巡检点</th></tr>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" v-on:click="closedeleteInspectionRoutePointModel()">点错了</button>
|
||||
<button type="button" class="btn btn-primary" v-on:click="deleteInspectionRoutePoint()">确认删除</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -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);
|
||||
@ -64,4 +64,6 @@
|
||||
emitListener="inspectionRoutePointManage"
|
||||
emitFunction="listInspectionPoint"
|
||||
></vc:create>
|
||||
|
||||
<vc:create name="deleteInspectionRoutePoint"></vc:create>
|
||||
</div>
|
||||
|
||||
@ -64,7 +64,8 @@
|
||||
vc.emit('chooseInspectionRoutePoint','openchooseInspectionRoutePointModal',$that.inspectionRoutePointManageInfo);
|
||||
},
|
||||
_openDeleteInspectionRoutePointModel:function(_inspectionPoint){
|
||||
vc.emit('deleteInspectionRoutePointRel','openDeleteInspectionPointModal',_inspectionPoint);
|
||||
_inspectionPoint.inspectionRouteId = $that.inspectionRoutePointManageInfo.inspectionRouteId;
|
||||
vc.emit('deleteInspectionRoutePoint','openDeleteInspectionRoutePointModal', _inspectionPoint);
|
||||
},
|
||||
_goBack:function(){
|
||||
vc.emit('inspectionRouteManage','goBack',{});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user