|
|
@@ -66,32 +66,74 @@ var bootstrap = function ($, learun) { |
|
|
|
/*绑定事件和初始化控件*/ |
|
|
|
bind: function () { |
|
|
|
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) { |
|
|
|
treeData = res.data; |
|
|
|
$('#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({ |
|
|
|
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({ |
|
|
|
data: treeData.columnList |
|
|
|
}); |
|
|
|
//$('#step-4').lrtree({ |
|
|
|
// data: treeData.formList |
|
|
|
//}); |
|
|
|
if (!!objectId) { |
|
|
|
setTreeData1(); |
|
|
|
setTreeData2(); |
|
|
|
setTreeData3(); |
|
|
|
//setTreeData4(); |
|
|
|
} |
|
|
|
} |
|
|
|
setTimeout(function () { |
|
|
|
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) { |
|
|
|
var $finish = $("#btn_finish"); |
|
|
@@ -107,7 +149,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#step-3_' + 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) { |
|
|
|
|
|
|
|
$finish.removeAttr('disabled'); |
|
|
|