Files
EasySoft-ZenTaoPMS/module/execution/js/importtask.ui.js
T
2023-11-09 15:14:39 +08:00

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()));
}