shiyj
2019-09-02 b784175e978b0fcfca8ca8bed7953ae4eacf49e8
java110-code-generator/src/main/resources/web/add/add.js
@@ -1,8 +1,13 @@
(function(vc){
    vc.extends({
        propTypes: {
               callBackListener:vc.propTypes.string, //父组件名称
               callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            add@@TemplateCode@@Info:{
                @@templateKey@@:'',
                @@templateCodeColumns@@
            }
        },
@@ -33,6 +38,12 @@
                }
                vc.component.add@@TemplateCode@@Info.communityId = vc.getCurrentCommunity().communityId;
                //不提交数据将数据 回调给侦听处理
                if(vc.notNull($props.callBackListener)){
                    vc.emit($props.callBackListener,$props.callBackFunction,vc.component.add@@TemplateCode@@Info);
                    $('#add@@TemplateCode@@Model').modal('hide');
                    return ;
                }
                vc.http.post(
                    'add@@TemplateCode@@',