ソースを参照

优化巡检路线

wuxw 6 年 前
コミット
3d9518231a

+ 3 - 2
WebService/src/main/resources/components/inspectionRoutePackage/inspectionRoute-manage/inspectionRouteManage.js

@@ -76,8 +76,9 @@
             _queryInspectionRouteMethod:function(){
                 vc.component._listInspectionRoutes(DEFAULT_PAGE, DEFAULT_ROWS);
             },
-            _openInspectionPointModel:function(){
-                vc.component.inspectionRouteManageInfo.inspectionPoint == true;
+            _openInspectionPointModel:function(_inspectionRoute){
+                vc.component.inspectionRouteManageInfo.inspectionPoint = true;
+                vc.emit('inspectionRoutePointManage','listInspectionPoint',_inspectionRoute);
             },
             _moreCondition:function(){
                 if(vc.component.inspectionRouteManageInfo.moreCondition){

+ 8 - 2
WebService/src/main/resources/components/inspectionRoutePackage/inspectionRoutePoint-manage/inspectionRoutePointManage.js

@@ -8,17 +8,22 @@
         data:{
             inspectionRoutePointManageInfo:{
                 inspectionRoutes:[],
+                inspectionRouteId:'',
                 total:0,
                 records:1,
                 routeName:'',
             }
         },
         _initMethod:function(){
-            vc.component._listInspectionRoutePoints(DEFAULT_PAGE, DEFAULT_ROWS);
+            //vc.component._listInspectionRoutePoints(DEFAULT_PAGE, DEFAULT_ROWS);
         },
         _initEvent:function(){
             
             vc.on('inspectionRoutePointManage','listInspectionPoint',function(_param){
+                  if(!_param.hasOwnProperty('inspectionRouteId')){
+                        return ;
+                  }
+                  vc.component.inspectionRoutePointManageInfo.inspectionRouteId = _param.inspectionRouteId;
                   vc.component._listInspectionRoutePoints(DEFAULT_PAGE, DEFAULT_ROWS);
             });
              vc.on('pagination','page_event',function(_currentPage){
@@ -32,7 +37,8 @@
                     params:{
                         page:_page,
                         row:_rows,
-                        communityId:vc.getCurrentCommunity().communityId
+                        communityId:vc.getCurrentCommunity().communityId,
+                        inspectionRouteId:vc.component.inspectionRoutePointManageInfo.inspectionRouteId
                     }
                };