| | |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('edit@@TemplateCode@@','open@@TemplateCode@@Model',function(_params){ |
| | | vc.on('edit@@TemplateCode@@','openEdit@@TemplateCode@@Modal',function(_params){ |
| | | vc.component.refreshEdit@@TemplateCode@@Info(); |
| | | $('#edit@@TemplateCode@@Model').modal('show'); |
| | | vc.component.edit@@TemplateCode@@Info = _params; |
| | | vc.copyObject(_params, vc.component.edit@@TemplateCode@@Info ); |
| | | vc.component.edit@@TemplateCode@@Info.communityId = vc.getCurrentCommunity().communityId; |
| | | }); |
| | | }, |
| | |
| | | return vc.validate.validate({ |
| | | edit@@TemplateCode@@Info:vc.component.edit@@TemplateCode@@Info |
| | | },{ |
| | | @@addTemplateCodeValidate@@ |
| | | @@editTemplateCodeValidate@@ |
| | | }); |
| | | }, |
| | | edit@@TemplateCode@@:function(){ |