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
| /**
| 权限组
| **/
| (function(vc){
|
| vc.extends({
| propTypes: {
| callBackComponent:vc.propTypes.string
| },
| data:{
| ownerInfo:{
| ownerId:"",
| name:"",
| age:"",
| sex:"",
| userName:"",
| remark:"",
| link:"",
| }
| },
| _initMethod:function(){
| //根据请求参数查询 查询 业主信息
| vc.component.loadOwnerData();
| },
| _initEvent:function(){
| vc.on('sellRoomSelectOwner','chooseOwner',function(_owner){
| vc.component.ownerInfo = _owner;
| vc.emit($props.callBackComponent,'notify',_owner);
| });
|
| },
| methods:{
|
| openSearchOwnerModel(){
| vc.emit('searchOwner','openSearchOwnerModel',{});
| },
| loadOwnerData:function(){
| vc.component.ownerInfo.ownerId = vc.getParam("ownerId");
| vc.component.ownerInfo.name = vc.getParam("name");
| vc.component.ownerInfo.age = vc.getParam("age");
| vc.component.ownerInfo.sex = vc.getParam("sex");
| vc.component.ownerInfo.userName = vc.getParam("userName");
| vc.component.ownerInfo.link = vc.getParam("link");
|
| if(vc.component.ownerInfo.ownerId != ''){
| vc.emit($props.callBackComponent,'notify',vc.component.ownerInfo);
| }
| }
| }
| });
|
| })(window.vc);
|
|