Commit 6bf0b67b authored by cellee's avatar cellee

设施多端返回问题

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 60fdc631
...@@ -236,9 +236,9 @@ export default { ...@@ -236,9 +236,9 @@ export default {
} else if (resp.error_code == '0002') { } else if (resp.error_code == '0002') {
// 多端操作提示清空并返回 // 多端操作提示清空并返回
message.error(resp.error_msg ? `${resp.error_msg}` : 'This record has been processed!'); message.error(resp.error_msg ? `${resp.error_msg}` : 'This record has been processed!');
let Data, let Data = null;
Data2, let Data2 = null;
Data3 = null; let Data3 = null;
yield put({ type: 'returnPage', Data }); yield put({ type: 'returnPage', Data });
yield put({ type: 'returnPage2', Data2 }); yield put({ type: 'returnPage2', Data2 });
yield put({ type: 'returnPage3', Data3 }); yield put({ type: 'returnPage3', Data3 });
......
...@@ -433,11 +433,11 @@ const FacilityBookings = (props: any) => { ...@@ -433,11 +433,11 @@ const FacilityBookings = (props: any) => {
search={false} search={false}
/> />
{search ? ( {Data2 ? (
<div className="pages"> <div className="pages">
<Pagination <Pagination
current={Data2.total.currentPage} current={Data2.total.currentPage ? Data2.total.currentPage : 0}
total={Data2.total.totalRow} total={Data2.total.totalRow ? Data2.total.totalRow : 0}
// pageSizeOptions={[]} // pageSizeOptions={[]}
showSizeChanger={false} showSizeChanger={false}
// pageSize={village.page.curPageSize} // pageSize={village.page.curPageSize}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment