From 2a14a594b92fcd7baa32e0d6a2460a49e021f386 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Fri, 1 Jul 2022 17:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A1=B9=E6=94=B6=E9=9B=86?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tableCollection/index.vue | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index b138f5948..189c10de0 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -46,6 +46,18 @@ +
+ +
@@ -206,7 +218,8 @@ selectedRowrowValue: [], dataSource: [], pageNo: 1, - pageSize: 10, + pageSize: 100, + pageSizeOptions: ['100', '300', '500', '1000'], total: 0, searchParmes: {}, loading: false, @@ -252,6 +265,15 @@ return 'rowClassRed' } }, + pageOnChange(page, pageSize) { + this.pageNo = page + this.getTableList() + }, + SizeChange(page, pageSize) { + this.pageNo = 1 + this.pageSize = pageSize + this.getTableList() + }, // 查看配置详细信息 onClickSee(val) { let _this = this @@ -451,7 +473,7 @@ if (res.success) { let tt = [] if (this.currentPersonRole !== 'dre') { - res.result.forEach((Obj) => { + res.result.records.forEach((Obj) => { Object.keys(Obj).forEach((item) => { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { Obj[item].list.forEach((itemLi) => { @@ -465,7 +487,7 @@ tt.push(Obj) }) } else { - res.result.forEach((Obj) => { + res.result.records.forEach((Obj) => { Object.keys(Obj).forEach((item) => { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { Obj[item].list.forEach((itemLi) => { @@ -504,6 +526,8 @@ url = 'params/collectManifestHistory/list' } let params = { + pageNo: this.pageNo, + pageSize: this.pageSize, userTypes: this.currentPersonRole || currentPersonRole, paramsManifestId: paramsManifestid, ...this.formInline @@ -530,7 +554,7 @@ // }) let tt = [] if (this.currentPersonRole !== 'dre') { - res.result.forEach((Obj) => { + res.result.records.forEach((Obj) => { Object.keys(Obj).forEach((item) => { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { Obj[item].list.forEach((itemLi) => { @@ -544,7 +568,7 @@ tt.push(Obj) }) } else { - res.result.forEach((Obj) => { + res.result.records.forEach((Obj) => { Object.keys(Obj).forEach((item) => { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { Obj[item].list.forEach((itemLi) => {