[update 高级检索-条款] 分页器bug修改
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
:columns="clauseColumns"
|
||||
:dataSource="clauseDataSource"
|
||||
:pagination="ipagination"
|
||||
@change="handleTableChange">
|
||||
@change="handleClauseTableChange">
|
||||
|
||||
<template v-slot:toDetail="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -670,10 +670,29 @@ export default {
|
||||
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) {
|
||||
this.loading = true
|
||||
this.currStandardId = standard.standardId
|
||||
this.clauseDataSource = standard.clauseList
|
||||
this.resetPage()
|
||||
this.$nextTick(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 点击一般检索
|
||||
clickGeneralSearch () {
|
||||
@@ -834,17 +853,7 @@ export default {
|
||||
this.currStandardType = value
|
||||
this.queryParam = {}
|
||||
this.dataSource = []
|
||||
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
|
||||
}
|
||||
this.resetPage()
|
||||
if (this.currStandardType !== '4') {
|
||||
if (value === StandardSource.ENTERPRISE.value) {
|
||||
this.queryParam.standard_state = this.defaultEnStandardStatus
|
||||
@@ -981,6 +990,15 @@ export default {
|
||||
this.ipagination = pagination
|
||||
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 () {
|
||||
const flag = Object.values(this.queryParam).some(v => !!v || v === 0)
|
||||
|
||||
Reference in New Issue
Block a user