refactor: LgbTable 删除按钮返回事件统一返回行集合

This commit is contained in:
Argo Zhang 2019-11-02 16:12:37 +08:00
parent b3b71a143f
commit 55cf7a2d0c
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@
url: options.url, data: iDs, method: 'delete', title: options.delTitle, logData: arrselections,
callback: function (result) {
if (result) $(options.bootstrapTable).bootstrapTable('refresh');
handlerCallback.call(that, null, element, { oper: 'del', success: result, data: iDs });
handlerCallback.call(that, null, element, { oper: 'del', success: result, data: arrselections });
}
});
}

View File

@ -167,7 +167,7 @@
url: options.url, data: iDs, method: 'delete', title: options.delTitle, logData: arrselections,
callback: function (result) {
if (result) $(options.bootstrapTable).bootstrapTable('refresh');
handlerCallback.call(that, null, element, { oper: 'del', success: result });
handlerCallback.call(that, null, element, { oper: 'del', success: result, data: arrselections });
}
});
}
@ -240,7 +240,7 @@
url: op.url, data: iDs, method: 'delete', title: '删除数据', logData: data,
callback: function (result) {
if (result) $(op.table).bootstrapTable('refresh');
handlerCallback.call(op.src, null, e, { oper: 'del', success: result });
handlerCallback.call(op.src, null, e, { oper: 'del', success: result, data: data });
}
});
}