wangxiaoming пре 7 година
родитељ
комит
b32b74958b

+ 11 - 6
watero-rst-web/src/main/webapp/WEB-INF/views/pts/produce/update_produce.ftl

@@ -200,7 +200,6 @@
      * 获取id
      */
     function getDelId(node,delIdName){
-        debugger;
         var delId = $(node).find("[name='"+ delIdName +"']").val();
         if(delId == null || delId == "" || typeof(delId)=="undefined" || delId == undefined ){
             delId = 0;
@@ -258,15 +257,19 @@
      * @param node
      */
     function delProcess(node) {
-        debugger;
         var processNumber = $(node).parents(".onrTheProcess").find(".processList").length;
         if(parseInt(processNumber) < 2){
             layer.msg('至少要有一个节点!',{icon: 5,time:3000});
         }else{
             var processId = $(node).parents(".processList").find("[name='processId']").val();
-            delProcessIds += processId+",";
+            if(processId != null && processId != "" && typeof(processId)!="undefined"){
+                delProcessIds += processId+",";
+            }
             $(node).parents(".processList").find("[name='nodeId']").each(function(){
-                delNodeIds += $(this).val()+",";
+                var nodeId = $(this).val();
+                if(nodeId != null && nodeId != "" && typeof(nodeId)!="undefined"){
+                    delNodeIds += nodeId +",";
+                }
             });
 
             $(node).parents(".processList").remove();
@@ -283,7 +286,9 @@
             layer.msg('至少要有一个节点操作!',{icon: 5,time:3000});
         }else{
             var nodeId = $(node).parents(".nodeList").find("[name='nodeId']").val();
-            delNodeIds += nodeId  + ",";
+            if(nodeId != null && nodeId != "" && typeof(nodeId)!="undefined"){
+                delNodeIds += nodeId +",";
+            }
             $(node).parents(".nodeList").remove();
         }
     }
@@ -305,7 +310,7 @@
 //        $("#sortable>li").each(function(){
 //            console.log($(this).attr("id"));
 //        });
-    });
+//    });
 </script>
 </body>
 </html>

watero-rst-web/src/main/webapp/common/images/jiqi-1.png → watero-rst-web/src/main/webapp/common/images/pts/jiqi-1.png