mirror of https://gitee.com/y_project/RuoYi.git
主子表根据序号删除方法加入表格ID参数
parent
9d02f8f7e7
commit
f1233c85d7
|
@ -465,9 +465,10 @@ var sub = {
|
|||
}
|
||||
$("#" + table.options.id).bootstrapTable('remove', { field: subColumn, values: ids });
|
||||
},
|
||||
delRowByIndex: function(value) {
|
||||
delRowByIndex: function(value, tableId) {
|
||||
var currentId = $.common.isEmpty(tableId) ? table.options.id : tableId;
|
||||
sub.editRow();
|
||||
$("#" + table.options.id).bootstrapTable('remove', { field: "index", values: [value] });
|
||||
$("#" + currentId).bootstrapTable('remove', { field: "index", values: [value] });
|
||||
sub.editRow();
|
||||
},
|
||||
addRow: function(row, tableId) {
|
||||
|
|
Loading…
Reference in New Issue