修复非表格插件情况下重置出现异常

pull/126/head
RuoYi 2019-09-02 12:05:44 +08:00
parent 1bd8dd00d1
commit e4984b85f2
1 changed files with 3 additions and 1 deletions

View File

@ -481,7 +481,9 @@
reset: function(formId) {
var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId;
$("#" + currentId)[0].reset();
$.btTable.bootstrapTable('refresh');
if ($.table._option.type == table_type.bootstrapTable) {
$.btTable.bootstrapTable('refresh');
}
},
// 获取选中复选框项
selectCheckeds: function(name) {