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
| (function(vc){
|
| vc.extends({
| propTypes: {
| callBackListener:vc.propTypes.string, //父组件名称
| callBackFunction:vc.propTypes.string //父组件监听方法
| },
| data:{
| @@columnTemplateCode@@ViewInfo:{
| flowComponent:'@@columnTemplateCode@@View',
| @@templateCodeColumns@@
| }
| },
| watch:{
| @@columnTemplateCode@@ViewInfo:{
| deep: true,
| handler:function(){
| vc.component.save@@ColumnTemplateCode@@Info();
| }
| }
| },
| _initMethod:function(){
|
| },
| _initEvent:function(){
|
| vc.on('@@columnTemplateCode@@ViewInfo', 'onIndex', function(_index){
| vc.component.@@columnTemplateCode@@ViewInfo.index = _index;
| });
| },
| methods:{
| @@columnTemplateCode@@Validate(){
| return vc.validate.validate({
| @@columnTemplateCode@@ViewInfo:vc.component.@@columnTemplateCode@@ViewInfo
| },{
| @@addTemplateCodeValidate@@
| });
| },
| save@@ColumnTemplateCode@@Info:function(){
| if(vc.component.@@columnTemplateCode@@Validate()){
| //侦听回传
| vc.emit($props.callBackListener,$props.callBackFunction, vc.component.@@columnTemplateCode@@ViewInfo);
| return ;
| }
| }
| }
| });
|
| })(window.vc);
|
|