wuxw
2019-07-11 b3f85b60ba9e39572e686009d36b5e5d7e81e910
WebService/src/main/resources/components/list-parking-space/listParkingSpace.js
@@ -6,7 +6,8 @@
            listParkingSpaceInfo:{
                parkingSpaces:[],
                total:0,
                records:1
                records:1,
                num:''
            }
        },
        _initMethod:function(){
@@ -15,6 +16,7 @@
        _initEvent:function(){
            vc.on('listParkingSpace','listParkingSpaceData',function(){
                vc.component._listParkingSpaceData(DEFAULT_PAGE,DEFAULT_ROWS);
                vc.component.listParkingSpaceInfo.num = '';
            });
            vc.on('pagination','page_event',function(_currentPage){
                vc.component._listParkingSpaceData(_currentPage,DEFAULT_ROWS);
@@ -26,7 +28,8 @@
                    params:{
                        page:_page,
                        row:_row,
                        communityId:vc.getCurrentCommunity().communityId
                        communityId:vc.getCurrentCommunity().communityId,
                        num:vc.component.listParkingSpaceInfo.num
                    }
                }
@@ -59,6 +62,20 @@
            },
            _openEditParkingSpaceModel:function(_parkingSpace){
                vc.emit('editParkingSpace','openEditParkingSpaceModal',_parkingSpace);
            },
            _viewParkingSpaceState:function(state){
                if(state == 'F'){
                    return "空闲";
                }else if(state == 'S'){
                    return "已售卖";
                }else if(state == 'H'){
                    return "已出租";
                }else{
                    return "未知";
                }
            },
            queryParkingSpaceMethod:function(){
                vc.component._listParkingSpaceData(DEFAULT_PAGE,DEFAULT_ROWS);
            }
        }
    })