标准预警 国内法规详情

This commit is contained in:
宋伟佳
2021-06-09 13:57:40 +08:00
parent a1bf499605
commit afd7d90ec2
3 changed files with 262 additions and 118 deletions
+14 -4
View File
@@ -7,8 +7,8 @@
<el-pagination
:total="total"
:current-page="page"
:page-sizes="[1, 10, 20, 30, 50]"
:page-size="pageSize"
:page-sizes="[10, 20, 30, 50]"
:page-size="_pageSize"
@current-change="pageChange"
@size-change="pageSizeChange"
layout="total, prev, pager, next, sizes, jumper"
@@ -81,12 +81,22 @@ export default {
isDivider: {
type: Boolean,
default: true
},
pageSize: {
type: Number,
default: 10
},
// 不随全局页码改变
autoSize: {
type: Boolean,
default: false
}
},
computed: {
...mapGetters(['userInfo', 'getTypeFlag']),
pageSize () {
return this.userInfo.configContent === '' || this.userInfo.configContent === undefined || this.userInfo.configContent === null ? 20 : parseInt(this.userInfo.configContent)
_pageSize () {
return this.autoSize ? this.pageSize
: this.userInfo.configContent === '' || this.userInfo.configContent === undefined || this.userInfo.configContent === null ? 20 : parseInt(this.userInfo.configContent)
}
},
mounted () {