[update 高级检索-条款] 分页器bug修改
This commit is contained in:
@@ -213,7 +213,7 @@
|
|||||||
:columns="clauseColumns"
|
:columns="clauseColumns"
|
||||||
:dataSource="clauseDataSource"
|
:dataSource="clauseDataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
@change="handleClauseTableChange">
|
||||||
|
|
||||||
<template v-slot:toDetail="{text, record}">
|
<template v-slot:toDetail="{text, record}">
|
||||||
<a-tooltip overlay-class-name="tooltip-style">
|
<a-tooltip overlay-class-name="tooltip-style">
|
||||||
@@ -670,10 +670,29 @@ export default {
|
|||||||
modalLoading.destroy()
|
modalLoading.destroy()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 重置分页器
|
||||||
|
resetPage () {
|
||||||
|
this.ipagination = {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
// 条款中点击标准,替换列表数据
|
// 条款中点击标准,替换列表数据
|
||||||
handleClickStandar (standard) {
|
handleClickStandar (standard) {
|
||||||
|
this.loading = true
|
||||||
this.currStandardId = standard.standardId
|
this.currStandardId = standard.standardId
|
||||||
this.clauseDataSource = standard.clauseList
|
this.clauseDataSource = standard.clauseList
|
||||||
|
this.resetPage()
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 点击一般检索
|
// 点击一般检索
|
||||||
clickGeneralSearch () {
|
clickGeneralSearch () {
|
||||||
@@ -834,17 +853,7 @@ export default {
|
|||||||
this.currStandardType = value
|
this.currStandardType = value
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.dataSource = []
|
this.dataSource = []
|
||||||
this.ipagination = {
|
this.resetPage()
|
||||||
current: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
|
||||||
showTotal: (total, range) => {
|
|
||||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
|
||||||
},
|
|
||||||
showQuickJumper: true,
|
|
||||||
showSizeChanger: true,
|
|
||||||
total: 0
|
|
||||||
}
|
|
||||||
if (this.currStandardType !== '4') {
|
if (this.currStandardType !== '4') {
|
||||||
if (value === StandardSource.ENTERPRISE.value) {
|
if (value === StandardSource.ENTERPRISE.value) {
|
||||||
this.queryParam.standard_state = this.defaultEnStandardStatus
|
this.queryParam.standard_state = this.defaultEnStandardStatus
|
||||||
@@ -981,6 +990,15 @@ export default {
|
|||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
|
// 条款的分页器
|
||||||
|
handleClauseTableChange (pagination, filters, sorter) {
|
||||||
|
// 分页、排序、筛选变化时触发
|
||||||
|
if (Object.keys(sorter).length > 0) {
|
||||||
|
this.isorter.column = sorter.order ? sorter.field : 'createTime'
|
||||||
|
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
||||||
|
}
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 查询
|
// 查询
|
||||||
searchQuery () {
|
searchQuery () {
|
||||||
const flag = Object.values(this.queryParam).some(v => !!v || v === 0)
|
const flag = Object.values(this.queryParam).some(v => !!v || v === 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user