|
@@ -66,32 +66,74 @@ var bootstrap = function ($, learun) { |
|
|
/*绑定事件和初始化控件*/ |
|
|
/*绑定事件和初始化控件*/ |
|
|
bind: function () { |
|
|
bind: function () { |
|
|
learun.loading(true, '正在获取数据'); |
|
|
learun.loading(true, '正在获取数据'); |
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_SystemModule/Module/GetCheckTree', function (res) { |
|
|
|
|
|
|
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_SystemModule/Module/GetCheckTreeForModuleList', function (res) { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
treeData = res.data; |
|
|
treeData = res.data; |
|
|
$('#step-1').lrtree({ |
|
|
$('#step-1').lrtree({ |
|
|
data: treeData.moduleList |
|
|
|
|
|
|
|
|
data: treeData.moduleList, |
|
|
|
|
|
isAllExpand:false |
|
|
}); |
|
|
}); |
|
|
|
|
|
if (!!objectId) { |
|
|
|
|
|
setTreeData1(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
|
learun.loading(false); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_SystemModule/Module/GetCheckTreeForButtonList', function (res) { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
treeData = res.data; |
|
|
$('#step-2').lrtree({ |
|
|
$('#step-2').lrtree({ |
|
|
data: treeData.buttonList |
|
|
data: treeData.buttonList |
|
|
}); |
|
|
}); |
|
|
|
|
|
if (!!objectId) { |
|
|
|
|
|
setTreeData2(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
setTimeout(function () { |
|
|
|
|
|
learun.loading(false); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_SystemModule/Module/GetCheckTreeForColumnList', function (res) { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
treeData = res.data; |
|
|
$('#step-3').lrtree({ |
|
|
$('#step-3').lrtree({ |
|
|
data: treeData.columnList |
|
|
data: treeData.columnList |
|
|
}); |
|
|
}); |
|
|
//$('#step-4').lrtree({ |
|
|
|
|
|
// data: treeData.formList |
|
|
|
|
|
//}); |
|
|
|
|
|
if (!!objectId) { |
|
|
if (!!objectId) { |
|
|
setTreeData1(); |
|
|
|
|
|
setTreeData2(); |
|
|
|
|
|
setTreeData3(); |
|
|
setTreeData3(); |
|
|
//setTreeData4(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
setTimeout(function () { |
|
|
setTimeout(function () { |
|
|
learun.loading(false); |
|
|
learun.loading(false); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
//learun.httpAsyncGet(top.$.rootUrl + '/LR_SystemModule/Module/GetCheckTree', function (res) { |
|
|
|
|
|
// if (res.code == 200) { |
|
|
|
|
|
// treeData = res.data; |
|
|
|
|
|
// $('#step-1').lrtree({ |
|
|
|
|
|
// data: treeData.moduleList |
|
|
|
|
|
// }); |
|
|
|
|
|
// $('#step-2').lrtree({ |
|
|
|
|
|
// data: treeData.buttonList |
|
|
|
|
|
// }); |
|
|
|
|
|
// $('#step-3').lrtree({ |
|
|
|
|
|
// data: treeData.columnList |
|
|
|
|
|
// }); |
|
|
|
|
|
// //$('#step-4').lrtree({ |
|
|
|
|
|
// // data: treeData.formList |
|
|
|
|
|
// //}); |
|
|
|
|
|
// if (!!objectId) { |
|
|
|
|
|
// setTreeData1(); |
|
|
|
|
|
// setTreeData2(); |
|
|
|
|
|
// setTreeData3(); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// setTimeout(function () { |
|
|
|
|
|
// learun.loading(false); |
|
|
|
|
|
// }); |
|
|
|
|
|
//}); |
|
|
// 加载导向 |
|
|
// 加载导向 |
|
|
$('#wizard').wizard().on('change', function (e, data) { |
|
|
$('#wizard').wizard().on('change', function (e, data) { |
|
|
var $finish = $("#btn_finish"); |
|
|
var $finish = $("#btn_finish"); |
|
@@ -107,7 +149,7 @@ var bootstrap = function ($, learun) { |
|
|
$('#step-3_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); |
|
|
$('#step-3_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); |
|
|
//$('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); |
|
|
//$('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); |
|
|
}); |
|
|
}); |
|
|
//} else if (data.step == 3) { |
|
|
|
|
|
|
|
|
//} else if (data.step == 3) { |
|
|
} else if (data.step == 2) { |
|
|
} else if (data.step == 2) { |
|
|
|
|
|
|
|
|
$finish.removeAttr('disabled'); |
|
|
$finish.removeAttr('disabled'); |
|
|