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) => {