Browse Source

优化首页数据展示

LuChongMei 1 day ago
parent
commit
e0d49fd6ef
1 changed files with 4 additions and 3 deletions
  1. 4 3
      jp-ui/src/views/modules/sys/dashboard/analysis/questionInfo.vue

+ 4 - 3
jp-ui/src/views/modules/sys/dashboard/analysis/questionInfo.vue

@@ -21,7 +21,7 @@
         </el-form-item>
         </el-form-item>
       </el-form>
       </el-form>
 
 
-      <div style="height: calc(100% - 80px);">
+      <div style="height: calc(70vh - 80px);">
         <vxe-table border="inner" auto-resize resizable height="auto" :loading="loading" size="small"
         <vxe-table border="inner" auto-resize resizable height="auto" :loading="loading" size="small"
           ref="dzfQuestionTable" show-header-overflow show-overflow highlight-hover-row :menu-config="{}"
           ref="dzfQuestionTable" show-header-overflow show-overflow highlight-hover-row :menu-config="{}"
           :print-config="{}" :data="dataList" :checkbox-config="{}">
           :print-config="{}" :data="dataList" :checkbox-config="{}">
@@ -119,7 +119,7 @@
         tablePage: {
         tablePage: {
           total: 0,
           total: 0,
           currentPage: 1,
           currentPage: 1,
-          pageSize: 10000,
+          pageSize: 10,
           orders: [{
           orders: [{
             column: 'a.create_date',
             column: 'a.create_date',
             asc: false
             asc: false
@@ -134,7 +134,6 @@
           return item.value != 1 && item.value != 4 && item.value != 8
           return item.value != 1 && item.value != 4 && item.value != 8
         })
         })
       }
       }
-
     },
     },
     methods: {
     methods: {
       init(state, date) {
       init(state, date) {
@@ -144,6 +143,7 @@
           state = 0
           state = 0
         }
         }
         date[0] = new Date( date[0]);
         date[0] = new Date( date[0]);
+        this.tablePage.currentPage = 1
         this.searchForm.createTime = date
         this.searchForm.createTime = date
         this.searchForm.state = state
         this.searchForm.state = state
         this.visible = true
         this.visible = true
@@ -166,6 +166,7 @@
           data
           data
         }) => {
         }) => {
           this.dataList = data.records
           this.dataList = data.records
+          this.tablePage.total = data.total
           this.loading = false
           this.loading = false
         })
         })
       },
       },