浏览代码

服务绑定界面功能开发完成

吴学文 7 年之前
父节点
当前提交
b8d92d652c

+ 4 - 2
WebService/src/main/java/com/java110/web/core/VcCreateProcessor.java

@@ -117,8 +117,10 @@ public class VcCreateProcessor extends AbstractElementTagProcessor {
             return js;
         }
 
-        String[] tmpType = tmpProTypes.contains("\r\n")
-                        ? tmpProTypes.split("\r\n")
+        tmpProTypes = tmpProTypes.contains("\r")? tmpProTypes.replace("\r", "") : tmpProTypes;
+
+        String[] tmpType = tmpProTypes.contains("\n")
+                        ? tmpProTypes.split("\n")
                         : tmpProTypes.split(",");
         StringBuffer propsJs = new StringBuffer("\nvar $props = {};\n");
         for (String type : tmpType) {

+ 3 - 0
WebService/src/main/resources/components/service-binding/serviceBinding.js

@@ -34,6 +34,9 @@
             _prevStep:function(){
                 vc.component.serviceBindingInfo.$step.prevStep();
                 vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex();
+
+                 vc.emit('viewAppInfo', 'onIndex', vc.component.serviceBindingInfo.index);
+                 vc.emit('viewServiceInfo', 'onIndex', vc.component.serviceBindingInfo.index);
             },
             _nextStep:function(){
                 var _currentData = vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index];

+ 1 - 1
WebService/src/main/resources/components/view-service-info/viewServiceInfo.js

@@ -30,7 +30,7 @@
             });
 
              vc.on('viewServiceInfo', 'onIndex', function(_index){
-                vc.component.viewAppInfo.index = _index;
+                vc.component.viewServiceInfo.index = _index;
             });
 
         },