* [ticket#1336,done,4h] fix bug.

This commit is contained in:
wangxuepeng
2024-08-16 11:05:13 +08:00
committed by 田淑杰
parent 57de8a724f
commit f9cbf3ea39
+6 -3
View File
@@ -4,12 +4,15 @@ $(document).off('click', '.batch-btn').on('click', '.batch-btn', function()
const checkedList = dtable.$.getChecks();
if(!checkedList.length) return;
const url = $(this).data('url');
const form = new FormData();
const formData = dtable.$.getFormData();
const url = $(this).data('url');
const form = new FormData();
checkedList.forEach((id) =>
{
form.append('cases[]', id);
form.append('versions[' + id + ']', $("[name='version\[" + id + "\]']").val());
let key = 'version[' + id + ']';
form.append(key, formData[key]);
});
if($(this).hasClass('ajax-btn'))