发布从测试版本2.3.4
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -29,6 +29,7 @@ function gridForm(table, options) {
|
||||
|
||||
grid.tableTitle = options.title;
|
||||
grid.tableKey = options.table;
|
||||
grid.tableSaveDataNotEmpty = options.saveDataNotEmpty;
|
||||
|
||||
grid.defaultColDef.sortable = false;
|
||||
grid.defaultColDef.filter = false;
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (rows.length == 0) {
|
||||
toastrError(t.tableTitle + '不能为空。');
|
||||
if (rows.length == 0 && t.tableSaveDataNotEmpty === true) {
|
||||
toastrError(t.tableTitle + ' 不能为空。');
|
||||
return false;
|
||||
} else {
|
||||
gets[t.tableKey] = {rows: rows, deleteds: store.deleted};
|
||||
|
||||
Reference in New Issue
Block a user