Files
EasySoft-ZenTaoPMS/module/mr/js/linktask.ui.js
T
2023-08-01 09:39:39 +08:00

23 lines
616 B
JavaScript

window.createSortLink = function(col)
{
var sort = col.name + '_asc';
if(sort == orderBy) sort = col.name + '_desc';
return sortLink.replace('{orderBy}', sort);
}
$(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer .batch-btn', function(e)
{
const dtable = zui.DTable.query(e.target);
const checkedList = dtable.$.getChecks();
if(!checkedList.length) return;
const tabType = $(this).data('type');
const postData = [];
postData[`${tabType}[]`] = checkedList;
$.ajaxSubmit({
url: $(this).data('url'),
data: postData
});
});