diff --git a/src/pages/applet/appidmanager/appid/index.jsx b/src/pages/applet/appidmanager/appid/index.jsx index 7bf1e52..45c91fb 100644 --- a/src/pages/applet/appidmanager/appid/index.jsx +++ b/src/pages/applet/appidmanager/appid/index.jsx @@ -47,7 +47,7 @@ const PayTemplate = () => { del(input).then((re) => { if (re.data) { message.success('删除成功'); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error('删除失败'); } @@ -116,7 +116,7 @@ const PayTemplate = () => { if (re.data) { message.success('修改成功'); setDrawerVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(re.errors||'修改失败'); } @@ -126,7 +126,7 @@ const PayTemplate = () => { if (re.data) { message.success('添加成功'); setDrawerVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(re.errors||'添加失败'); } diff --git a/src/pages/applet/appidmanager/payment/index.jsx b/src/pages/applet/appidmanager/payment/index.jsx index 88c7bfe..f6774d8 100644 --- a/src/pages/applet/appidmanager/payment/index.jsx +++ b/src/pages/applet/appidmanager/payment/index.jsx @@ -82,7 +82,7 @@ const PayTemplate = () => { deletepaytemplate(input).then((re) => { if (re.data) { message.success('删除成功'); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(re.errors||'删除失败'); } @@ -167,7 +167,7 @@ const PayTemplate = () => { if (re.data) { message.success('修改成功'); setDrawerVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(re.errors||'修改失败'); } @@ -177,7 +177,7 @@ const PayTemplate = () => { if (re.data) { message.success('添加成功'); setDrawerVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(re.errors||'添加失败'); } diff --git a/src/pages/applet/basicconfiguration/index.jsx b/src/pages/applet/basicconfiguration/index.jsx index 2a75413..ca4cf38 100644 --- a/src/pages/applet/basicconfiguration/index.jsx +++ b/src/pages/applet/basicconfiguration/index.jsx @@ -210,7 +210,7 @@ const Material = () => { if (response.statusCode === 200) { message.success('更新成功'); setIsModalVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(response.errors||'更新失败') } @@ -219,7 +219,7 @@ const Material = () => { if (response.statusCode === 200) { message.success('添加成功'); setIsModalVisible(false); - actionRef.current.reload(); + actionRef.current.reloadAndRest(); } else { message.error(response.errors||'添加失败') } @@ -265,7 +265,7 @@ const Material = () => { const onDeleteMaterial = async (record) => { const response = await appletAPI.DeleteMiniMaterial(record.id); if (response.statusCode === 200) { - actionRef.current.reload(); + actionRef.current.reloadAndRest(); message.success('删除成功'); } else { message.error(response.errors || '删除失败'); @@ -308,11 +308,11 @@ const Material = () => { if (!selectedStore) return; onFetchMiniPageList(); if(!selectedPage) return; - actionRef.current.reload(); + actionRef.current.reloadAndRest(); }, [selectedStore]); useEffect(() => { - actionRef.current.reload(); + actionRef.current.reloadAndRest(); }, [selectedPage]); return { + - - - - {/* + + + 选择设备: + - - - - {/* + + + 选择设备: +