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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
| /**
| 权限组
| **/
| (function(vc){
|
| vc.extends({
| data:{
| showOwnerParkingSpaceInfo:{
| ownerId:'',
| parkingSpaces:[]
| }
| },
| _initMethod:function(){
|
| },
| _initEvent:function(){
| vc.on('showOwnerParkingSpace','notify',function(_owner){
| vc.component.showOwnerParkingSpaceInfo.ownerId = _owner.ownerId;
|
| //查询 根据业主查询房屋信息
| vc.component.loadParkingSpaces();
| });
|
| },
| methods:{
|
| loadParkingSpaces:function(){
| var param = {
| params:{
| communityId:vc.getCurrentCommunity().communityId,
| ownerId:vc.component.showOwnerParkingSpaceInfo.ownerId
| }
| };
|
| //发送get请求
| vc.http.get('showOwnerParkingSpace',
| 'list',
| param,
| function(json){
| var _parkingSpaceInfo = JSON.parse(json);
| vc.component.showOwnerParkingSpaceInfo.parkingSpaces = _parkingSpaceInfo.parkingSpaces;
| },function(){
| console.log('请求失败处理');
| }
| );
| },
|
| ownerExitParkingSpaceModel:function(_psId){
| vc.emit('ownerExitParkingSpace','openExitParkingSpaceModel',{
| ownerId:vc.component.showOwnerParkingSpaceInfo.ownerId,
| psId:_psId
| });
| },
|
| showState:function(_state){
| if(_state == '2001'){
| return "房屋已售";
| }else if(_state == '2002'){
| return "房屋未售";
| }else if(_state == '2003'){
| return "已交定金";
| }
| else if(_state == '2004'){
| return "已出租";
| }else{
| return "未知";
| }
| }
| }
| });
|
| })(window.vc);
|
|