浏览代码

代码提交

cxd 7 月之前
父节点
当前提交
915ee5d779
共有 1 个文件被更改,包括 21 次插入12 次删除
  1. 21 12
      ui/src/views/ProductMent/worksCategory/index.vue

+ 21 - 12
ui/src/views/ProductMent/worksCategory/index.vue

@@ -38,18 +38,27 @@
         </el-table-column>
       </el-table>
 
-      <!-- 分页 -->
-      <el-pagination
-        @size-change="handleSizeChange"
-        @current-change="handleCurrentChange"
-        :current-page="pagination.currentPage"
-        :page-sizes="[10, 20, 50, 100]"
-        :page-size="pagination.pageSize"
-        layout="total, sizes, prev, pager, next, jumper"
-        :total="pagination.total"
-        style="margin-top: 20px; text-align: right"
-      >
-      </el-pagination>
+      <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+
+
+<!--      &lt;!&ndash; 分页 &ndash;&gt;-->
+<!--      <el-pagination-->
+<!--        @size-change="handleSizeChange"-->
+<!--        @current-change="handleCurrentChange"-->
+<!--        :current-page="pagination.currentPage"-->
+<!--        :page-sizes="[10, 20, 50, 100]"-->
+<!--        :page-size="pagination.pageSize"-->
+<!--        layout="total, sizes, prev, pager, next, jumper"-->
+<!--        :total="pagination.total"-->
+<!--        style="margin-top: 20px; text-align: right"-->
+<!--      >-->
+<!--      </el-pagination>-->
 
       <!-- 新增/编辑对话框 -->
       <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="500px">