element-assits 0.0.64 → 0.0.65
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.
- package/lib/index.js +7 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2372,8 +2372,13 @@ const Zx = {
|
|
|
2372
2372
|
},
|
|
2373
2373
|
getList() {
|
|
2374
2374
|
if (!this.pageRequest) {
|
|
2375
|
-
|
|
2376
|
-
|
|
2375
|
+
let r = [];
|
|
2376
|
+
if (this.thePagination.show) {
|
|
2377
|
+
const t = (this.page.current - 1) * this.page.pageSize;
|
|
2378
|
+
r = this.data.slice(t, t + this.page.pageSize);
|
|
2379
|
+
} else
|
|
2380
|
+
r = this.data;
|
|
2381
|
+
return this.tableData = r, this.page.total = this.data.length, this.asyncPageCurrent = this.page.current, Promise.resolve();
|
|
2377
2382
|
}
|
|
2378
2383
|
return this.innerLoading = !0, this.errMsg = void 0, this.pageRequest(this.page, this.theForm.attrs.model).then((r) => {
|
|
2379
2384
|
const { data: t, total: i, current: l } = r || {};
|