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