gongchunyi
2 天以前 0693ee8e172c56c334c71b0903a2792b0461252f
fix: 备件分页报错
已修改1个文件
16 ■■■■■ 文件已修改
src/views/equipmentManagement/spareParts/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/spareParts/index.vue
@@ -30,7 +30,7 @@
                        :page="pagination"
                        :isShowPagination="true"
                        :row-class-name="rowClassName"
                        @pagination="handleSizeChange"
                        @pagination="handlePagination"
                    >
                        <template #status="{ row }">
                            <el-tag type="success" size="small">{{ row.status }}</el-tag>
@@ -392,16 +392,10 @@
  fetchListData();
}
// 分页大小改变
const handleSizeChange = (size) => {
  pagination.size = size;
  pagination.current = 1;
  fetchListData();
}
// 当前页改变
const handleCurrentChange = (current) => {
  pagination.current = current;
// 分页改变
const handlePagination = ({ page, limit }) => {
  pagination.current = page;
  pagination.size = limit;
  fetchListData();
}