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
| (function(vc){
| vc.extends({
| propTypes: {
| emitChooseOwner:vc.propTypes.string,
| emitLoadData:vc.propTypes.string
| },
| data:{
| searchOwnerInfo:{
| owners:[],
| _currentOwnerName:'',
| }
| },
| _initMethod:function(){
|
| },
| _initEvent:function(){
| vc.on('searchOwner','openSearchOwnerModel',function(_param){
| console.log("打开业主成员界面")
| $('#searchOwnerModel').modal('show');
| vc.component._refreshSearchOwnerData();
| vc.component._loadAllOwnerInfo(1,10);
| });
| },
| methods:{
| _loadAllOwnerInfo:function(_page,_row,_name){
| var param = {
| params:{
| page:_page,
| row:_row,
| communityId:vc.getCurrentCommunity().communityId,
| name:_name,
| ownerTypeCd:'1001'
| }
| };
|
| //发送get请求
| vc.http.get('searchOwner',
| 'listOwner',
| param,
| function(json){
| var _ownerInfo = JSON.parse(json);
| vc.component.searchOwnerInfo.owners = _ownerInfo.owners;
| },function(){
| console.log('请求失败处理');
| }
| );
| },
| chooseOwner:function(_owner){
| vc.emit($props.emitChooseOwner,'chooseOwner',_owner);
| vc.emit($props.emitLoadData,'listOwnerData',{
| ownerId:_owner.ownerId
| });
| $('#searchOwnerModel').modal('hide');
| },
| searchOwners:function(){
| vc.component._loadAllOwnerInfo(1,10,vc.component.searchOwnerInfo._currentOwnerName);
| },
| _refreshSearchOwnerData:function(){
| vc.component.searchOwnerInfo._currentOwnerName = "";
| }
| }
|
| });
| })(window.vc);
|
|