|
|
@@ -182,9 +182,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
custmerForm.loadForm(nodeInfo.wfForms, true, true); |
|
|
|
|
|
|
|
console.log(nodeInfo); |
|
|
|
|
|
|
|
if (!processId && nodeId) { |
|
|
|
learun.httpAsync('GET', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetChildProcessDetails', { processId: processId, nodeId: nodeId }, function (data) { |
|
|
@@ -212,12 +210,13 @@ var bootstrap = function ($, learun) { |
|
|
|
history = info.TaskLogList; |
|
|
|
currentIds = info.CurrentNodeIds; |
|
|
|
|
|
|
|
// page.loadFlowInfo(); |
|
|
|
// page.loadFlowInfo(); |
|
|
|
page.loadTimeLine(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
custmerForm.loadForm(nodeInfo.wfForms, true, true); |
|
|
|
|
|
|
|
}, |
|
|
|
bind: function () { |
|
|
@@ -238,17 +237,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#print').on('click', function () { |
|
|
|
//打印checkbox 选中效果打印不出来 |
|
|
|
$("input[type='checkbox']:checked").attr('checked', 'checked'); |
|
|
|
var $iframes = $('#form_list_iframes'); |
|
|
|
var iframeId = $iframes.find('.form-list-iframe.active').attr('id'); |
|
|
|
if (iframeId) { |
|
|
|
var $iframe = learun.iframe(iframeId, frames); |
|
|
|
$iframe.$('.lr-form-wrap:visible').jqprint(); |
|
|
|
} |
|
|
|
else { |
|
|
|
//$iframes.find('.form-list-container.active').find('.lr-form-wrap:visible').jqprint(); |
|
|
|
//$('#form_list_iframes').jqprint(); |
|
|
|
$.print('#form_list_iframes'); |
|
|
|
} |
|
|
|
$.print('.lr-layout-panel'); |
|
|
|
}); |
|
|
|
$('#print').show(); |
|
|
|
}, |
|
|
@@ -345,6 +334,7 @@ var bootstrap = function ($, learun) { |
|
|
|
callback: function (departmentMap) { |
|
|
|
learun.clientdata.getAllAsync('user', { |
|
|
|
callback: function (userMap) { |
|
|
|
history.sort(compareFunction("F_CreateDate")); |
|
|
|
for (var i = 0, l = history.length; i < l; i++) { |
|
|
|
var item = history[i]; |
|
|
|
|
|
|
@@ -415,7 +405,7 @@ var bootstrap = function ($, learun) { |
|
|
|
|
|
|
|
nodelist.push(point); |
|
|
|
} |
|
|
|
$('#wf_timeline').lrtimeline(nodelist); |
|
|
|
$('#wf_timeline').lrtimelineEsc(nodelist); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@@ -428,4 +418,22 @@ var bootstrap = function ($, learun) { |
|
|
|
}; |
|
|
|
|
|
|
|
page.init(); |
|
|
|
} |
|
|
|
|
|
|
|
function compareFunction(propertyName) { |
|
|
|
return function (src, tar) { |
|
|
|
//获取比较的值 |
|
|
|
var v1 = src[propertyName]; |
|
|
|
var v2 = tar[propertyName]; |
|
|
|
if (v1 > v2) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (v1 < v2) { |
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
return 0; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |