Ver código fonte

vc.copyObject 方法用错误了

吴学文 6 anos atrás
pai
commit
745af110af

+ 1 - 1
WebService/src/main/resources/components/edit-service/editService.js

@@ -25,7 +25,7 @@ provideAppId:'8000418002',
              vc.on('editService','openEditServiceModal',function(_params){
              vc.on('editService','openEditServiceModal',function(_params){
                 vc.component.refreshEditServiceInfo();
                 vc.component.refreshEditServiceInfo();
                 $('#editServiceModel').modal('show');
                 $('#editServiceModel').modal('show');
-                vc.copyObject(vc.component.editServiceInfo,_params);
+                vc.copyObject(_params, vc.component.editServiceInfo);
                 vc.component.editServiceInfo.communityId = vc.getCurrentCommunity().communityId;
                 vc.component.editServiceInfo.communityId = vc.getCurrentCommunity().communityId;
             });
             });
         },
         },

+ 1 - 1
java110-code-generator/src/main/resources/web/edit/edit.js

@@ -13,7 +13,7 @@
              vc.on('edit@@TemplateCode@@','openEdit@@TemplateCode@@Modal',function(_params){
              vc.on('edit@@TemplateCode@@','openEdit@@TemplateCode@@Modal',function(_params){
                 vc.component.refreshEdit@@TemplateCode@@Info();
                 vc.component.refreshEdit@@TemplateCode@@Info();
                 $('#edit@@TemplateCode@@Model').modal('show');
                 $('#edit@@TemplateCode@@Model').modal('show');
-                vc.copyObject(vc.component.edit@@TemplateCode@@Info, _params);
+                vc.copyObject(_params, vc.component.edit@@TemplateCode@@Info );
                 vc.component.edit@@TemplateCode@@Info.communityId = vc.getCurrentCommunity().communityId;
                 vc.component.edit@@TemplateCode@@Info.communityId = vc.getCurrentCommunity().communityId;
             });
             });
         },
         },