ソースを参照

数据模板默认显示数量修改

cfort 2 年 前
コミット
a11aeceb0d

+ 1 - 1
src/business/platform/data/templatebuilder/template-main/templates/list.vue

@@ -138,7 +138,7 @@ export default {
 
 
                 this.showPagination = this.template.attrs ? this.template.attrs.need_page === 'Y' : true
                 this.showPagination = this.template.attrs ? this.template.attrs.need_page === 'Y' : true
                 // 分页
                 // 分页
-                this.pagination.limit = this.template.attrs ? parseInt(this.template.attrs.page_size, 10) || 100 : 20
+                this.pagination.limit = this.template.attrs ? parseInt(this.template.attrs.page_size, 10) || 20 : 20
 
 
                 this.indexRow = this.template.attrs ? this.template.attrs.indexRow || false : false
                 this.indexRow = this.template.attrs ? this.template.attrs.indexRow || false : false
             },
             },

+ 1 - 1
src/business/platform/data/templatebuilder/utils/index.js

@@ -31,7 +31,7 @@ const helpers = {
         const attrs = {
         const attrs = {
             'init_query': 'Y',
             'init_query': 'Y',
             'need_page': 'Y',
             'need_page': 'Y',
-            'page_size': 100
+            'page_size': 20
         }
         }
         if (type === 'dialog') {
         if (type === 'dialog') {
             attrs['data_title'] = {
             attrs['data_title'] = {