参数项收集清单列表增加分页
This commit is contained in:
@@ -46,6 +46,18 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</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"
|
<a-modal v-model="areaVisible" :title="$t('modifyprojectInterfacePerson')" width='620px' :footer="null"
|
||||||
@cancel="cancleImports">
|
@cancel="cancleImports">
|
||||||
@@ -206,7 +218,8 @@
|
|||||||
selectedRowrowValue: [],
|
selectedRowrowValue: [],
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 100,
|
||||||
|
pageSizeOptions: ['100', '300', '500', '1000'],
|
||||||
total: 0,
|
total: 0,
|
||||||
searchParmes: {},
|
searchParmes: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -252,6 +265,15 @@
|
|||||||
return 'rowClassRed'
|
return 'rowClassRed'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
pageOnChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getTableList()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.getTableList()
|
||||||
|
},
|
||||||
// 查看配置详细信息
|
// 查看配置详细信息
|
||||||
onClickSee(val) {
|
onClickSee(val) {
|
||||||
let _this = this
|
let _this = this
|
||||||
@@ -451,7 +473,7 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
let tt = []
|
let tt = []
|
||||||
if (this.currentPersonRole !== 'dre') {
|
if (this.currentPersonRole !== 'dre') {
|
||||||
res.result.forEach((Obj) => {
|
res.result.records.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
@@ -465,7 +487,7 @@
|
|||||||
tt.push(Obj)
|
tt.push(Obj)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
res.result.forEach((Obj) => {
|
res.result.records.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
@@ -504,6 +526,8 @@
|
|||||||
url = 'params/collectManifestHistory/list'
|
url = 'params/collectManifestHistory/list'
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize,
|
||||||
userTypes: this.currentPersonRole || currentPersonRole,
|
userTypes: this.currentPersonRole || currentPersonRole,
|
||||||
paramsManifestId: paramsManifestid,
|
paramsManifestId: paramsManifestid,
|
||||||
...this.formInline
|
...this.formInline
|
||||||
@@ -530,7 +554,7 @@
|
|||||||
// })
|
// })
|
||||||
let tt = []
|
let tt = []
|
||||||
if (this.currentPersonRole !== 'dre') {
|
if (this.currentPersonRole !== 'dre') {
|
||||||
res.result.forEach((Obj) => {
|
res.result.records.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
@@ -544,7 +568,7 @@
|
|||||||
tt.push(Obj)
|
tt.push(Obj)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
res.result.forEach((Obj) => {
|
res.result.records.forEach((Obj) => {
|
||||||
Object.keys(Obj).forEach((item) => {
|
Object.keys(Obj).forEach((item) => {
|
||||||
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
Obj[item].list.forEach((itemLi) => {
|
Obj[item].list.forEach((itemLi) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user