| 1234567891011 |
- $(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('opportunityIdList[]', id));
- $.ajaxSubmit({url: $(this).data('url'), data: form});
- });
|