|
@ -24,8 +24,6 @@
|
|
|
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}"){
|
|
@ -40,6 +38,8 @@
|
|
|
|
|
|
var valid = "${model.valid}";
|
|
|
liger.get("valid").selectValue(valid);
|
|
|
var fileType = "${model.fileType}";
|
|
|
liger.get("fileType").selectValue(fileType);
|
|
|
data={
|
|
|
id: "${model.id}",
|
|
|
name: "${model.name}",
|
|
@ -47,6 +47,7 @@
|
|
|
path: "${model.path}",
|
|
|
chart:iconUrl,
|
|
|
valid:"${model.valid}",
|
|
|
fileType:"${model.fileType}",
|
|
|
flowClassList: '${flowClass}',
|
|
|
flowClassArray:'${model.flowClassArray}',
|
|
|
createDate:'${model.createDate}'
|
|
@ -55,7 +56,8 @@
|
|
|
me.actionUrl = "${contextRoot}/flow/updateFlow";
|
|
|
}else{
|
|
|
liger.get("valid").selectValue("1");//默认有效
|
|
|
liger.get("type").selectValue("route");//默认route
|
|
|
liger.get("fileType").selectValue("java");//默认java文件类型
|
|
|
// liger.get("type").selectValue("route");//默认route
|
|
|
}
|
|
|
|
|
|
$("#div_info_form").ligerAutoForm({
|
|
@ -101,11 +103,9 @@
|
|
|
}
|
|
|
|
|
|
var index =newMaxFormIndex();
|
|
|
if(index==0){index=1;}
|
|
|
for (var i = index; i > 0; i--) {
|
|
|
me.bindFlowClass(i);
|
|
|
}
|
|
|
|
|
|
for (var i = index; i > 0; i--) {
|
|
|
me.bindFlowClass(i);
|
|
|
}
|
|
|
|
|
|
var data = $("#div_info_form").ligerAutoForm("getData");
|
|
|
delete data.file;
|
|
@ -143,13 +143,14 @@
|
|
|
cancelable:false,
|
|
|
onSuccess:function(data){
|
|
|
}});
|
|
|
|
|
|
$("#fileType").ligerComboBox({data : [{"value":"java文件","code":"java"},{"value":"class文件","code":"class"}],
|
|
|
cancelable:false,
|
|
|
onSuccess:function(data){
|
|
|
}});
|
|
|
/* =====================添加新节点========================= */
|
|
|
$(".m-form-group").on("click","#btnAddClass",function () {
|
|
|
var index =newMaxFormIndex();
|
|
|
if(index>0){
|
|
|
index++
|
|
|
}
|
|
|
var html = '<div class="flows" dataIndex="'+index+'" id="paramGroup'+index+'">';
|
|
|
|
|
|
html += '<div class="m-form-group" dataIndex="'+index+'" ><label>类别 : </label><div class="m-form-control ">' +
|