Pre Merge pull request !193 from 青衫/master

This commit is contained in:
青衫 2020-07-30 10:41:47 +08:00 committed by Gitee
commit 80fe418304
1 changed files with 2 additions and 1 deletions

View File

@ -622,6 +622,7 @@ var table = {
table.set(tableId); table.set(tableId);
var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId; var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId;
$("#" + currentId)[0].reset(); $("#" + currentId)[0].reset();
$("#" + currentId).find('select').val('').trigger('change');
if (table.options.type == table_type.bootstrapTable) { if (table.options.type == table_type.bootstrapTable) {
if($.common.isEmpty(tableId)){ if($.common.isEmpty(tableId)){
$("#" + table.options.id).bootstrapTable('refresh'); $("#" + table.options.id).bootstrapTable('refresh');