wuxw
2020-10-04 bdced1d6c6798882e540023dfa80b00db12a0a20
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
/**
    @@templateName@@ 组件
**/
(function(vc){
 
    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            view@@TemplateCode@@Info:{
                index:0,
                flowComponent:'view@@TemplateCode@@Info',
                @@templateCodeColumns@@
            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            vc.component._load@@TemplateCode@@InfoData();
        },
        _initEvent:function(){
            vc.on('view@@TemplateCode@@Info','choose@@TemplateCode@@',function(_app){
                vc.copyObject(_app, vc.component.view@@TemplateCode@@Info);
                vc.emit($props.callBackListener,$props.callBackFunction,vc.component.view@@TemplateCode@@Info);
            });
 
            vc.on('view@@TemplateCode@@Info', 'onIndex', function(_index){
                vc.component.view@@TemplateCode@@Info.index = _index;
            });
 
        },
        methods:{
 
            _openSelect@@TemplateCode@@InfoModel(){
                vc.emit('choose@@TemplateCode@@','openChoose@@TemplateCode@@Model',{});
            },
            _openAdd@@TemplateCode@@InfoModel(){
                vc.emit('add@@TemplateCode@@','openAdd@@TemplateCode@@Modal',{});
            },
            _load@@TemplateCode@@InfoData:function(){
 
            }
        }
    });
 
})(window.vc);