Update admin.js

This commit is contained in:
邹景立 2022-05-05 21:08:23 +08:00
parent 9ecbefac2c
commit dc31aa5c64

View File

@ -716,12 +716,12 @@ $(function () {
if (curp > maxp && maxp > 1) $table.trigger('reload', {page: {curr: maxp}});
return res;
};
// 搜索表单关联
// 关联搜索表单
var sform, search = params.search || table.dataset.targetSearch;
if (search) (sform = $body.find(search)).map(function () {
$(this).attr('data-table-id', table.id);
});
// 绑定选择项关联
// 关联绑定选择项
var checked = params.checked || table.dataset.targetChecked;
if (checked) $body.find(checked).map(function () {
$(this).attr('data-table-id', table.id);