瀏覽代碼

优化共多少页显示有问题的

wuxw 6 年之前
父節點
當前提交
ed908f2a64
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      WebService/src/main/resources/components/paginationPackage/pagination.js

+ 3 - 1
WebService/src/main/resources/components/paginationPackage/pagination.js

@@ -14,7 +14,9 @@
         _initEvent: function () {
             vc.component.$on('pagination_info_event', function (_paginationInfo) {
                 vc.component.paginationInfo.total = _paginationInfo.total;
-                vc.component.paginationInfo.dataCount = _paginationInfo.dataCount;
+                if(_paginationInfo.hasOwnProperty("dataCount")){
+                    vc.component.paginationInfo.dataCount = _paginationInfo.dataCount;
+                }
                 vc.component.paginationInfo.currentPage = _paginationInfo.currentPage;
                 vc.component._freshPageList();
             });