当autoSize为true时 不改变其他页面数量

This commit is contained in:
zhoulingpo
2023-12-05 11:24:21 +08:00
parent dea3149524
commit a72523106b
9 changed files with 32 additions and 11 deletions
@@ -131,6 +131,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -185,7 +187,7 @@ export default {
replaceLawsNumForm: { replaceLawsNumForm: {
standNumber: '', // 政策编号 standNumber: '', // 政策编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: '', standType: '',
quoteIdList: '', quoteIdList: '',
@@ -127,6 +127,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -187,7 +189,7 @@ export default {
replaceLawsNumForm: { replaceLawsNumForm: {
numberName: '', // 政策编号 numberName: '', // 政策编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
lawsType: 'FOREIGN', lawsType: 'FOREIGN',
quoteIdList: '', quoteIdList: '',
@@ -123,6 +123,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -183,7 +185,7 @@
// 代替标准号 // 代替标准号
replaceLawsNumForm: { replaceLawsNumForm: {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: 'ALL', standType: 'ALL',
quoteIdList: '', quoteIdList: '',
@@ -126,6 +126,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -192,7 +194,7 @@ export default {
dataSource: '', dataSource: '',
standNumber: '', // 标准编号 standNumber: '', // 标准编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: 'INLAND', standType: 'INLAND',
quoteIdList: '', quoteIdList: '',
@@ -136,6 +136,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size = "replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -200,7 +202,7 @@ export default {
standNumber: '', // 标准编号 standNumber: '', // 标准编号
standName: '', // 标准编号 standName: '', // 标准编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: 'INLAND', standType: 'INLAND',
quoteIdList: '', quoteIdList: '',
@@ -155,6 +155,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -215,7 +217,7 @@ export default {
dataSource: 'BUSINESS', // 数据来源 dataSource: 'BUSINESS', // 数据来源
numberName: '', // 政策编号 numberName: '', // 政策编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
quoteIdList: '', quoteIdList: '',
menuId: '', menuId: '',
@@ -139,6 +139,8 @@
<!--分页--> <!--分页-->
<pagination <pagination
style="position: relative;" style="position: relative;"
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@@ -206,7 +208,7 @@ export default {
replaceLawsNumForm: { replaceLawsNumForm: {
standNumber: '', // 政策编号 standNumber: '', // 政策编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
standType: 'FOREIGN', standType: 'FOREIGN',
quoteIdList: '', quoteIdList: '',
@@ -143,6 +143,8 @@
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading> <loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
<!--分页--> <!--分页-->
<pagination <pagination
:auto-size="true"
:page-size="replaceLawsNumForm.pageSize"
style="position: relative;" style="position: relative;"
:page="replacePage" :page="replacePage"
:total="replaceTotal" :total="replaceTotal"
@@ -202,7 +204,7 @@ export default {
lawsNumber: '', // 政策编号 lawsNumber: '', // 政策编号
numberName: '', // 政策名称 numberName: '', // 政策名称
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: 20,
total: 0, total: 0,
quoteIdList: '', quoteIdList: '',
menuId: '', menuId: '',
+8 -3
View File
@@ -28,9 +28,14 @@ export default {
this.$emit('pageChange', page) this.$emit('pageChange', page)
}, },
pageSizeChange (pageSize) { pageSizeChange (pageSize) {
this.userInfo.configContent = pageSize if(this.autoSize) {
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo)))) this.$emit('pageSizeChange', pageSize)
this.$emit('pageSizeChange', pageSize) }else{
this.userInfo.configContent = pageSize
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
this.$emit('pageSizeChange', pageSize)
}
// if (this.getTypeFlag === 'CloudRepository') { // if (this.getTypeFlag === 'CloudRepository') {
// this.userInfo.configContent = pageSize // this.userInfo.configContent = pageSize