参数项收集清单列表增加分页
This commit is contained in:
@@ -46,6 +46,18 @@
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
<div class="page">
|
||||
<a-pagination
|
||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||
show-quick-jumper
|
||||
show-size-changer
|
||||
:page-size.sync="pageSize"
|
||||
:total="total"
|
||||
:pageSizeOptions='pageSizeOptions'
|
||||
@change="pageOnChange"
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
<!-- 修改工程接口人--->
|
||||
<a-modal v-model="areaVisible" :title="$t('modifyprojectInterfacePerson')" width='620px' :footer="null"
|
||||
@cancel="cancleImports">
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user