@@ -3,6 +3,11 @@
var page = {
isScroll: true,
init: function ($page, param) {
console.log(param);
//如果是同意,判断是否选择下一审核人
if(param.verify=='agree'){
}
// 添加头部按钮列表
var _html = '\
<div class="lr-form-header-cancel" style="display:block;" >取消</div>\
@@ -41,13 +46,20 @@
});
//加载下一节点审核者
if (param.node.isNext == '1') {
var isNext=param.node.isNext;
if(param.btn.next=='2'){
isNext='1';
}
if (isNext == '1') {
var nodeMap = {};
console.log(11111);
console.log(param)
// 节点信息
$.each(param.nodelist, function (_index, _item) {
nodeMap[_item.id] = _item;
});
// $.each(param.nodelist, function (_index, _item) {
// nodeMap[_item.id] = _item;
// });
var req = {
code:param.schemeCode,
taskId: param.taskId,
processId: param.processId,
nodeId: param.node.id,
@@ -55,12 +67,15 @@
};
learun.httpget(config.webapi + "learun/adms/newwf/auditer", req, function (data) {
if (data) {
console.log(data);
var $des = $page.find('.lr-form-row-multi');
var $item = $page.find('#F_Level').parent();
$.each(data, function (_id, _list) {
if (_list.length > 1) {
$des.before('<div class="lr-form-row"><label>' + nodeMap[_id].name + ' </label><div id="' + _id + '" class="nodeId" ></div></div>');
$des.before('<div class="lr-form-row"><label></label><div id="' + _id + '" class="nodeId" ></div></div>');
$page.find('#' + _id).lrpicker({ data: _list, itext: 'Name', ivalue: 'Id' });
// $des.before('<div class="lr-form-row"><label>' + nodeMap[_id].name + '</label><div id="' + _id + '" class="nodeId" ></div></div>');
// $page.find('#' + _id).lrpicker({ data: _list, itext: 'Name', ivalue: 'Id' });
}
});
}