owl-cli 6.185.0 → 6.187.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,6 +92,7 @@ function getExportConfig(spec, key) {
|
|
|
92
92
|
function getRows(modelService, spec) {
|
|
93
93
|
|
|
94
94
|
var meta = spec['#meta'];
|
|
95
|
+
var maxRows = Number(meta.maxRows) || 10000;
|
|
95
96
|
var isPublic = meta && meta.isPublic;
|
|
96
97
|
var tableId = 'owl_' + spec._t;
|
|
97
98
|
var ctx = JSON.parse(env);
|
|
@@ -124,18 +125,26 @@ function getRows(modelService, spec) {
|
|
|
124
125
|
|
|
125
126
|
delete searchArgs.recycleBin;
|
|
126
127
|
|
|
127
|
-
var pageSize =
|
|
128
|
+
var pageSize = Number(maxRows);
|
|
128
129
|
var from = 0;
|
|
129
130
|
var sort = {
|
|
130
131
|
owl_modifyTime: {order: "desc"}
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
var sr = modelService.search(mfilters, searchArgs, keyword, from, pageSize, sort);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
if(sr.state==='ok'){
|
|
136
|
+
return {
|
|
137
|
+
rows: sr.list,
|
|
138
|
+
total: sr.list.length
|
|
139
|
+
}
|
|
138
140
|
}
|
|
141
|
+
else{
|
|
142
|
+
return {
|
|
143
|
+
rows: [],
|
|
144
|
+
total: 0
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
139
148
|
}
|
|
140
149
|
else if(exportRange=== "checkedOnly") {
|
|
141
150
|
var ids = params.ids;
|