|  | @ -84,7 +84,6 @@
 | 
												
													
														
															|  |             if(!type || type==''){
 |  |             if(!type || type==''){
 | 
												
													
														
															|  |                 type = "route";
 |  |                 type = "route";
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |             liger.get("type"+index).selectValue(type);
 |  |             liger.get("type"+index).selectValue(type);
 | 
												
													
														
															|  |             if("class"==fileType){
 |  |             if("class"==fileType){
 | 
												
													
														
															|  |                 me.flowClassData[me.$mun]= {
 |  |                 me.flowClassData[me.$mun]= {
 | 
												
											
												
													
														
															|  | @ -119,13 +118,13 @@
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                 var index =newMaxFormIndex();
 |  |                 var index =newMaxFormIndex();
 | 
												
													
														
															|  | 
 |  |                 debugger
 | 
												
													
														
															|  |                 for (var i = index; i > 0; i--) {
 |  |                 for (var i = index; i > 0; i--) {
 | 
												
													
														
															|  |                     me.bindFlowClass(i);
 |  |                     me.bindFlowClass(i);
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                 var data = $("#div_info_form").ligerAutoForm("getData");
 |  |                 var data = $("#div_info_form").ligerAutoForm("getData");
 | 
												
													
														
															|  |                 delete data.file;
 |  |                 delete data.file;
 | 
												
													
														
															|  |                 debugger
 |  | 
 | 
												
													
														
															|  |                 var dataList;
 |  |                 var dataList;
 | 
												
													
														
															|  |                 if("java"==fileType){
 |  |                 if("java"==fileType){
 | 
												
													
														
															|  |                     data.flowTempArray = me.flowClassData;
 |  |                     data.flowTempArray = me.flowClassData;
 | 
												
											
												
													
														
															|  | @ -174,7 +173,8 @@
 | 
												
													
														
															|  |             $(".m-form-group").on("click","#btnAddClass",function () {
 |  |             $(".m-form-group").on("click","#btnAddClass",function () {
 | 
												
													
														
															|  |                 var index =newMaxFormIndex();
 |  |                 var index =newMaxFormIndex();
 | 
												
													
														
															|  |                     index++
 |  |                     index++
 | 
												
													
														
															|  |                 var html = '<div class="flows"  dataIndex="'+index+'" id="paramGroup'+index+'">';
 |  | 
 | 
												
													
														
															|  | 
 |  |                 var html = '<div class="flows"  dataIndex="'+index+'" id="paramGroup'+index+'">' +
 | 
												
													
														
															|  | 
 |  |                         '<form id="form'+index+'" action="${contextRoot}/flow/upload" method="post" enctype="multipart/form-data">';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                 html += '<div class="m-form-group" dataIndex="'+index+'"  ><label>类别 : </label><div class="m-form-control ">'  +
 |  |                 html += '<div class="m-form-group" dataIndex="'+index+'"  ><label>类别 : </label><div class="m-form-control ">'  +
 | 
												
													
														
															|  |                         '<div class="l-text"><input type="text" id="type'+index+'" class="l-text-field required" name="type"></div>'+
 |  |                         '<div class="l-text"><input type="text" id="type'+index+'" class="l-text-field required" name="type"></div>'+
 | 
												
											
												
													
														
															|  | @ -188,14 +188,13 @@
 | 
												
													
														
															|  |                         '<input type="text" id="className'+index+'"  class="l-textbox"/></div></div>';
 |  |                         '<input type="text" id="className'+index+'"  class="l-textbox"/></div></div>';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                 html += ' <div class="m-form-group"><label>源代码'+index+' : </label><div class="m-form-control">' +
 |  | 
 | 
												
													
														
															|  |                         '<form id="form'+index+'" action="${contextRoot}/flow/upload" method="post" enctype="multipart/form-data">';
 |  | 
 | 
												
													
														
															|  | 
 |  |                 html += ' <div class="m-form-group"><label>源代码'+index+' : </label><div class="m-form-control">';
 | 
												
													
														
															|  |                 html += ' <input name="isUpdate" type="text" id="isUpdate'+index+'"   class="isUpdate" hidden="hidden"/>';
 |  |                 html += ' <input name="isUpdate" type="text" id="isUpdate'+index+'"   class="isUpdate" hidden="hidden"/>';
 | 
												
													
														
															|  |                 html += ' <input type="text"  id="classPath'+index+'" name="classPath" class="l-textbox btnGrayUp" style="width: 144px;"  placeholder="点击选择源代码文件" readonly="readonly" data-id="">'+
 |  |                 html += ' <input type="text"  id="classPath'+index+'" name="classPath" class="l-textbox btnGrayUp" style="width: 144px;"  placeholder="点击选择源代码文件" readonly="readonly" data-id="">'+
 | 
												
													
														
															|  |                         ' <div style="float: right;">'+
 |  |                         ' <div style="float: right;">'+
 | 
												
													
														
															|  |                         ' <div  class="l-button l-button-no btnGrayDo'+index+'" data-id="'+index+'">'+
 |  |                         ' <div  class="l-button l-button-no btnGrayDo'+index+'" data-id="'+index+'">'+
 | 
												
													
														
															|  |                         ' <span style="background-color: rgb(240, 240, 240);">导入</span> </div>'+
 |  |                         ' <span style="background-color: rgb(240, 240, 240);">导入</span> </div>'+
 | 
												
													
														
															|  |                         '<label class="say'+index+'" style="display: inline-block;width: 70px;"></label>'+
 |  | 
 | 
												
													
														
															|  | 
 |  |                         '<label id="say'+index+'"  class="say'+index+'" style="display: inline-block;width: 70px;"></label>'+
 | 
												
													
														
															|  |                         '</div><input type="file" name="file" style="display: none" id="file'+index+'" /></form>'+
 |  |                         '</div><input type="file" name="file" style="display: none" id="file'+index+'" /></form>'+
 | 
												
													
														
															|  |                         '</div></div>';
 |  |                         '</div></div>';
 | 
												
													
														
															|  |                 html += '<div class="m-form-group"><div class="m-form-control"><a class="m-btn-cancle" href="javascrip:void()" style="display:block;" onclick="$(\'#paramGroup'+index+'\').remove()"></a></div></div>';
 |  |                 html += '<div class="m-form-group"><div class="m-form-control"><a class="m-btn-cancle" href="javascrip:void()" style="display:block;" onclick="$(\'#paramGroup'+index+'\').remove()"></a></div></div>';
 | 
												
											
												
													
														
															|  | @ -313,31 +312,32 @@
 | 
												
													
														
															|  |             var index = 1;
 |  |             var index = 1;
 | 
												
													
														
															|  |             var flowStr = '${flowClass}';
 |  |             var flowStr = '${flowClass}';
 | 
												
													
														
															|  |             if (flowStr != "") {
 |  |             if (flowStr != "") {
 | 
												
													
														
															|  | 
 |  |                 flowStr = flowStr.replace(/\\/g,"\\\\");
 | 
												
													
														
															|  |                 var flowJson = $.parseJSON(flowStr);
 |  |                 var flowJson = $.parseJSON(flowStr);
 | 
												
													
														
															|  |                 $.each(flowJson, function(i, data){
 |  |                 $.each(flowJson, function(i, data){
 | 
												
													
														
															|  |                     var html = '<div class="flows"  dataIndex="'+index+'" id="paramGroup'+index+'">';
 |  | 
 | 
												
													
														
															|  | 
 |  |                     var html = '<div class="flows"  dataIndex="'+index+'" id="paramGroup'+index+'">'+
 | 
												
													
														
															|  | 
 |  |                             '<form id="form'+index+'" action="${contextRoot}/flow/upload" method="post" enctype="multipart/form-data">';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                     html += '<div class="m-form-group" dataIndex="'+index+'"  ><label>类别 :</label><div class="m-form-control "> '  +
 |  |                     html += '<div class="m-form-group" dataIndex="'+index+'"  ><label>类别 :</label><div class="m-form-control "> '  +
 | 
												
													
														
															|  |                             '<div class="l-text"><input type="text" id="type'+index+'" value="'+data.type+'" class="l-text-field required" name="type"></div>'+
 |  |                             '<div class="l-text"><input type="text" id="type'+index+'" value="'+data.type+'" class="l-text-field required" name="type"></div>'+
 | 
												
													
														
															|  |                             '</div></div>';
 |  |                             '</div></div>';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                     html += '<div class="m-form-group" style="border:1px solid #e1e1e1"><label>包名'+index+' : </label><div class="m-form-control"  controlType="textbox" id="packName'+index+'_div" style="margin-left:0px;">'  +
 |  |                     html += '<div class="m-form-group" style="border:1px solid #e1e1e1"><label>包名'+index+' : </label><div class="m-form-control"  controlType="textbox" id="packName'+index+'_div" style="margin-left:0px;">'  +
 | 
												
													
														
															|  |                             '<input type="text" id="packageName'+index+'" value="'+data.packageName+'" class="l-textbox"/></div></div>';
 |  | 
 | 
												
													
														
															|  | 
 |  |                             '<input type="text" name="packageName" id="packageName'+index+'" value="'+data.packageName+'" class="l-textbox"/></div></div>';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                     html += '<div class="m-form-group"   dataIndex="'+index+'" id="paramGroup'+index+'"><label>'+
 |  |                     html += '<div class="m-form-group"   dataIndex="'+index+'" id="paramGroup'+index+'"><label>'+
 | 
												
													
														
															|  |                             '类名'+index+' : </label><div class="m-form-control"  controlType="textbox" id="className'+index+'_div" style="margin-left:0px;">'  +
 |  |                             '类名'+index+' : </label><div class="m-form-control"  controlType="textbox" id="className'+index+'_div" style="margin-left:0px;">'  +
 | 
												
													
														
															|  |                             '<input type="text" id="className'+index+'" value="'+data.className+'"  class="l-textbox"/></div></div>';
 |  | 
 | 
												
													
														
															|  | 
 |  |                             '<input type="text" name="className" id="className'+index+'" value="'+data.className+'"  class="l-textbox"/></div></div>';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                     html += ' <div class="m-form-group"><label>源代码'+index+' : </label><div class="m-form-control">' +
 |  | 
 | 
												
													
														
															|  |                             '<form id="form'+index+'" action="${contextRoot}/flow/upload" method="post" enctype="multipart/form-data">';
 |  | 
 | 
												
													
														
															|  | 
 |  |                     html += ' <div class="m-form-group"><label>源代码'+index+' : </label><div class="m-form-control">' ;
 | 
												
													
														
															|  |                     html += ' <input type="text" name="isUpdate" id="isUpdate'+index+'" class="isUpdate" hidden="hidden"/>';
 |  |                     html += ' <input type="text" name="isUpdate" id="isUpdate'+index+'" class="isUpdate" hidden="hidden"/>';
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                     html += ' <input type="text"  id="classPath'+index+'" value="'+data.classPath+'"   name="classPath" class="l-textbox btnGrayUp" style="width: 144px;"  placeholder="点击选择源代码文件" readonly="readonly" data-id="">'+
 |  |                     html += ' <input type="text"  id="classPath'+index+'" value="'+data.classPath+'"   name="classPath" class="l-textbox btnGrayUp" style="width: 144px;"  placeholder="点击选择源代码文件" readonly="readonly" data-id="">'+
 | 
												
													
														
															|  |                             ' <div style="float: right;">'+
 |  |                             ' <div style="float: right;">'+
 | 
												
													
														
															|  |                             ' <div  class="l-button l-button-no btnGrayDo'+index+'" data-id="'+index+'">'+
 |  |                             ' <div  class="l-button l-button-no btnGrayDo'+index+'" data-id="'+index+'">'+
 | 
												
													
														
															|  |                             ' <span style="background-color: rgb(240, 240, 240);">导入</span> </div>'+
 |  |                             ' <span style="background-color: rgb(240, 240, 240);">导入</span> </div>'+
 | 
												
													
														
															|  |                             '<label class="say'+index+'" style="display: inline-block;width: 70px;"></label>'+
 |  | 
 | 
												
													
														
															|  | 
 |  |                             '<label  id="say'+index+'"  class="say'+index+'" style="display: inline-block;width: 70px;"></label>'+
 | 
												
													
														
															|  |                             '</div><input type="file" name="file" style="display: none" id="file'+index+'" /></form>'+
 |  |                             '</div><input type="file" name="file" style="display: none" id="file'+index+'" /></form>'+
 | 
												
													
														
															|  |                             '</div></div>';
 |  |                             '</div></div>';
 | 
												
													
														
															|  |                     html += ' <input name="id" value="'+data.id+'" id="classId'+index+'" hidden="hidden"/>';
 |  |                     html += ' <input name="id" value="'+data.id+'" id="classId'+index+'" hidden="hidden"/>';
 | 
												
											
												
													
														
															|  | @ -381,7 +381,7 @@
 | 
												
													
														
															|  |             var formObj=$(formId);//要提交的表单
 |  |             var formObj=$(formId);//要提交的表单
 | 
												
													
														
															|  |             var Obj=$(".btnGrayDo"+index);
 |  |             var Obj=$(".btnGrayDo"+index);
 | 
												
													
														
															|  |             var upObj=formObj.closest("input").find(".btnGrayUp");//浏览的按钮
 |  |             var upObj=formObj.closest("input").find(".btnGrayUp");//浏览的按钮
 | 
												
													
														
															|  |             var formsay=formObj.find(".say"+index);//提示文字
 |  | 
 | 
												
													
														
															|  | 
 |  |             var formsay=$("#say"+index);//提示文字
 | 
												
													
														
															|  |             if(formObj.closest("div").find("input[type=text]").val().length!=0){//判断是否选择了文件
 |  |             if(formObj.closest("div").find("input[type=text]").val().length!=0){//判断是否选择了文件
 | 
												
													
														
															|  |                 formsay.attr("class","say true").html("上传中");
 |  |                 formsay.attr("class","say true").html("上传中");
 | 
												
													
														
															|  |                 formObj.ajaxForm({
 |  |                 formObj.ajaxForm({
 | 
												
											
												
													
														
															|  | @ -389,9 +389,9 @@
 | 
												
													
														
															|  |                     success:  function processJson(data){
 |  |                     success:  function processJson(data){
 | 
												
													
														
															|  |                         if(data.successFlg){
 |  |                         if(data.successFlg){
 | 
												
													
														
															|  |                             formsay.attr("class","say true").html("上传成功");
 |  |                             formsay.attr("class","say true").html("上传成功");
 | 
												
													
														
															|  |                             formObj.find("input[type=text]").attr("data-id","/upload/"+data.message)//设置已上传的文件的ID
 |  | 
 | 
												
													
														
															|  |                             var inputVal=formObj.closest("div").find("input[type=text]");
 |  | 
 | 
												
													
														
															|  |                             inputVal.val("/upload/"+data.message);
 |  | 
 | 
												
													
														
															|  | 
 |  |                             formObj.find("input[type=text]").filter(".btnGrayUp").attr("data-id",data.message)//设置已上传的文件的ID
 | 
												
													
														
															|  | 
 |  |                             var inputVal=formObj.closest("div").find("input[type=text]").filter(".btnGrayUp");
 | 
												
													
														
															|  | 
 |  |                             inputVal.val(data.message);
 | 
												
													
														
															|  |                             formObj.closest("div").find("span").html("重新导入<i></i>");
 |  |                             formObj.closest("div").find("span").html("重新导入<i></i>");
 | 
												
													
														
															|  |                             var isUpdate=formObj.find(".isUpdate");//是否有上传过
 |  |                             var isUpdate=formObj.find(".isUpdate");//是否有上传过
 | 
												
													
														
															|  |                             isUpdate.val("1");//上传过
 |  |                             isUpdate.val("1");//上传过
 |