From b6324e71edfc0d5c061ee5017a5c8eb2065e6b6b Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 01 九月 2019 23:06:24 +0800
Subject: [PATCH] 服务提供代码开发完成

---
 java110-code-generator/src/main/resources/web/add/add.js |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/java110-code-generator/src/main/resources/web/add/add.js b/java110-code-generator/src/main/resources/web/add/add.js
index f6e0c6e..52867cc 100644
--- a/java110-code-generator/src/main/resources/web/add/add.js
+++ b/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@@',

--
Gitblit v1.8.0