优化主子表单删方法

This commit is contained in:
RuoYi
2022-04-17 10:18:19 +08:00
parent 977ceb562e
commit 53bb1da7a1
4 changed files with 7 additions and 5 deletions

View File

@ -465,9 +465,8 @@ var sub = {
}
$("#" + table.options.id).bootstrapTable('remove', { field: subColumn, values: ids });
},
delRowByIndex: function(defindex, index) {
delRowByIndex: function(value) {
sub.editRow();
var value = $.common.isNotEmpty(index) ? index : defindex;
$("#" + table.options.id).bootstrapTable('remove', { field: "index", values: [value] });
sub.editRow();
},