Kaynağa Gözat

修改分页

dbcgit 5 yıl önce
ebeveyn
işleme
58fa60b392

+ 8 - 3
frontend_web/src/views/class/index.vue

@@ -95,7 +95,7 @@
                      :page-sizes="[10, 15, 20]"
                      :page-size="size"
                      layout="total, sizes, prev, pager, next, jumper"
-                     :total="totalsize">
+                     :total="search.page.total">
       </el-pagination>
     </template>
   </d2-container>
@@ -117,7 +117,6 @@ export default {
       dialogvisible: false,
       name: '',
       details: false,
-      totalsize: 0,
       currpage: 1,
       size: 10,
       classificationlist: [],
@@ -133,7 +132,12 @@ export default {
       search: {
         Name: '',
         Year: '',
-        classification: ''
+        classification: '',
+        page: {
+          total: 0,
+          current: 1,
+          size: 10
+        }
       },
       // 列表排序
       Column: {
@@ -188,6 +192,7 @@ export default {
       ClassApi.getAllClass(params)
         .then(res => {
           _this.activities = res.records
+          _this.search.page.total = res.total
         })
     },
     handleSizeChange (val) {

+ 0 - 1
frontend_web/src/views/duty/detail/index.vue

@@ -363,7 +363,6 @@ export default {
       if (column.index >= columnNum) {
         return
       }
-      console.log(column.index, 111111111)
       if (column.index > fixRowHeadNum - 1) {
         for (var i = 0; i < this.list.length; i++) {
           if (this.selectcell.get(this.list[i].Local + '_' + this.list[i].Time + '_' + column.property)) {