|  | @ -20,9 +20,24 @@
 | 
	
		
			
				|  |  |         initForm: function () {
 | 
	
		
			
				|  |  |             var me = this;
 | 
	
		
			
				|  |  |            var data;
 | 
	
		
			
				|  |  |             var iconUrl;
 | 
	
		
			
				|  |  |             var modelString = "${model.id}";
 | 
	
		
			
				|  |  |             if(modelString!=undefined && modelString!=null && modelString.length>0)
 | 
	
		
			
				|  |  |             {
 | 
	
		
			
				|  |  |                 debugger
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 var icon = $("#iconUrl").attr("data-id");
 | 
	
		
			
				|  |  |                 if(icon!='' && icon!='undefine'){
 | 
	
		
			
				|  |  |                     if(icon!= "${model.chart}"){
 | 
	
		
			
				|  |  |                         iconUrl =icon;
 | 
	
		
			
				|  |  |                     }else{
 | 
	
		
			
				|  |  |                         iconUrl = "${model.chart}";
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }else{
 | 
	
		
			
				|  |  |                     iconUrl = "${model.chart}";
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 var valid = "${model.valid}";
 | 
	
		
			
				|  |  |                 liger.get("valid").selectValue(valid);
 | 
	
		
			
				|  |  |                data={
 | 
	
	
		
			
				|  | @ -30,7 +45,7 @@
 | 
	
		
			
				|  |  |                     name: "${model.name}",
 | 
	
		
			
				|  |  |                    code: "${model.code}",
 | 
	
		
			
				|  |  |                    path: "${model.path}",
 | 
	
		
			
				|  |  |                    chart:"${model.chart}",
 | 
	
		
			
				|  |  |                    chart:iconUrl,
 | 
	
		
			
				|  |  |                    valid:"${model.valid}",
 | 
	
		
			
				|  |  |                    flowClassList: '${flowClass}',
 | 
	
		
			
				|  |  |                    flowClassArray:'${model.flowClassArray}',
 | 
	
	
		
			
				|  | @ -86,6 +101,7 @@
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 var index =newMaxFormIndex();
 | 
	
		
			
				|  |  |                 if(index==0){index=1;}
 | 
	
		
			
				|  |  |                     for (var i = index; i > 0; i--) {
 | 
	
		
			
				|  |  |                         me.bindFlowClass(i);
 | 
	
		
			
				|  |  |                     }
 | 
	
	
		
			
				|  | @ -131,7 +147,7 @@
 | 
	
		
			
				|  |  |             /* =====================添加新节点========================= */
 | 
	
		
			
				|  |  |             $(".m-form-group").on("click","#btnAddClass",function () {
 | 
	
		
			
				|  |  |                 var index =newMaxFormIndex();
 | 
	
		
			
				|  |  |                 if( index>1){
 | 
	
		
			
				|  |  |                 if(index>0){
 | 
	
		
			
				|  |  |                     index++
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 var html = '<div class="flows"  dataIndex="'+index+'" id="paramGroup'+index+'">';
 | 
	
	
		
			
				|  | @ -198,7 +214,8 @@
 | 
	
		
			
				|  |  |                         success:  function processJson(data){
 | 
	
		
			
				|  |  |                             if(data.successFlg){
 | 
	
		
			
				|  |  |                                 formsay.attr("class","say true").html("上传成功");
 | 
	
		
			
				|  |  |                                 formObj.find("input[type=text]").attr("data-id",data.message)//设置已上传的文件的ID
 | 
	
		
			
				|  |  |                                 formObj.find("input[type=text]").attr("data-id","/upload/"+data.message)//设置已上传的文件的ID
 | 
	
		
			
				|  |  |                                 formObj.find("input[type=text]").val("/upload/"+data.message)//设置已上传的文件的ID
 | 
	
		
			
				|  |  |                                 formObj.closest("div").find("span").html("重新导入<i></i>");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                             }else{
 | 
	
	
		
			
				|  | @ -348,9 +365,9 @@
 | 
	
		
			
				|  |  |                     success:  function processJson(data){
 | 
	
		
			
				|  |  |                         if(data.successFlg){
 | 
	
		
			
				|  |  |                             formsay.attr("class","say true").html("上传成功");
 | 
	
		
			
				|  |  |                             formObj.find("input[type=text]").attr("data-id",data.message)//设置已上传的文件的ID
 | 
	
		
			
				|  |  |                             formObj.find("input[type=text]").attr("data-id","/upload/"+data.message)//设置已上传的文件的ID
 | 
	
		
			
				|  |  |                             var inputVal=formObj.closest("div").find("input[type=text]");
 | 
	
		
			
				|  |  |                             inputVal.val(data.message);
 | 
	
		
			
				|  |  |                             inputVal.val("/upload/"+data.message);
 | 
	
		
			
				|  |  |                             formObj.closest("div").find("span").html("重新导入<i></i>");
 | 
	
		
			
				|  |  |                             var isUpdate=formObj.find(".isUpdate");//是否有上传过
 | 
	
		
			
				|  |  |                             isUpdate.val("1");//上传过
 | 
	
	
		
			
				|  | @ -396,7 +413,7 @@
 | 
	
		
			
				|  |  |         if(size!="" && size>0){
 | 
	
		
			
				|  |  |             index=$("#"+$(".flows")[size-1].id).attr("dataIndex");//获取参数的个数
 | 
	
		
			
				|  |  |         }else{
 | 
	
		
			
				|  |  |             index=1;
 | 
	
		
			
				|  |  |             index=0;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return index;
 | 
	
		
			
				|  |  |     }
 |