17 lines
542 B
JavaScript
17 lines
542 B
JavaScript
$(document).off('click','.batch-btn').on('click', '.batch-btn', function()
|
|
{
|
|
const dtable = zui.DTable.query($(this).target);
|
|
const checkedList = dtable.$.getChecks();
|
|
if(!checkedList.length) return;
|
|
|
|
const form = new FormData();
|
|
checkedList.forEach((id) => form.append('taskIdList[]', id));
|
|
|
|
$.ajaxSubmit({url: $(this).data('url'), data: form});
|
|
});
|
|
|
|
window.changeExecution = function(e)
|
|
{
|
|
loadPage($.createLink('execution', 'importTask', 'executionID=' + executionID + '&fromExecution=' + $(e.target).val()));
|
|
}
|