提交 edf3b564 作者: ZhangLingKun

功能:问题修复

上级 f2b88af3
...@@ -124,7 +124,6 @@ const MaterielManageDetail = () => { ...@@ -124,7 +124,6 @@ const MaterielManageDetail = () => {
const { list } = res.result; // 解构 const { list } = res.result; // 解构
setTableDataAll(list || []); setTableDataAll(list || []);
// tableDataAll = list || []; // tableDataAll = list || [];
setSortBtnDisabled(false);
} }
}; };
// 切换排序 // 切换排序
...@@ -162,15 +161,18 @@ const MaterielManageDetail = () => { ...@@ -162,15 +161,18 @@ const MaterielManageDetail = () => {
// 如果是当前页的第一条数据 // 如果是当前页的第一条数据
if (tableIndex === 0 && from === 'up') { if (tableIndex === 0 && from === 'up') {
paginationChange(pagination.current - 1, pagination.pageSize); paginationChange(pagination.current - 1, pagination.pageSize);
await setSortBtnDisabled(false);
return; return;
} }
// 如果是当前页的最后一条数据 // 如果是当前页的最后一条数据
if (tableIndex === tableData.length - 1 && from === 'down') { if (tableIndex === tableData.length - 1 && from === 'down') {
paginationChange(pagination.current + 1, pagination.pageSize); paginationChange(pagination.current + 1, pagination.pageSize);
await setSortBtnDisabled(false);
return; return;
} }
paginationChange(pagination.current, pagination.pageSize); paginationChange(pagination.current, pagination.pageSize);
getAllData().then(); await getAllData();
await setSortBtnDisabled(false);
} }
}; };
// 修改提交数据 // 修改提交数据
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论