shiyj
2019-07-16 6d8a43de07062234a05716fcbb94273709cab21e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
    权限组
**/
(function(vc){
 
    vc.extends({
        propTypes: {
            callBackComponent:vc.propTypes.string
        },
        data:{
            parkingSpaceInfo:{
                num:'',
                typeCd:'',
                area:'',
                state:'',
                remark:'',
                psId:''
            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            vc.component.loadParkingSpaceData();
        },
        _initEvent:function(){
            vc.on('viewSelectParkingSpace','chooseParkingSpace',function(_parkingSpace){
                vc.component.parkingSpaceInfo = _parkingSpace;
                vc.emit($props.callBackComponent,'notify',_parkingSpace);
            });
 
        },
        methods:{
 
            openSearchParkingSpaceModel(){
                vc.emit('searchParkingSpace','openSearchParkingSpaceModel',{});
            },
            loadParkingSpaceData:function(){
               vc.component.parkingSpaceInfo.psId = vc.getParam("psId");
               vc.component.parkingSpaceInfo.name = vc.getParam("name");
               vc.component.parkingSpaceInfo.age = vc.getParam("age");
               vc.component.parkingSpaceInfo.sex = vc.getParam("sex");
               vc.component.parkingSpaceInfo.userName = vc.getParam("userName");
               vc.component.parkingSpaceInfo.link = vc.getParam("link");
 
               if(vc.component.parkingSpaceInfo.psId != ''){
                  vc.emit($props.callBackComponent,'notify',vc.component.parkingSpaceInfo);
               }
            }
        }
    });
 
})(window.vc);