@@ -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||'添加失败'); | |||
} | |||
@@ -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||'添加失败'); | |||
} | |||
@@ -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 <PageContainer header={{ | |||
@@ -342,7 +342,7 @@ const Material = () => { | |||
</div> | |||
<Select style={{ width: 300 }} value={selectedPage} onChange={(value) => { | |||
setSelectedPage(value); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}}> | |||
{ | |||
miniPageList.map(item => { | |||
@@ -208,7 +208,7 @@ const Material = () => { | |||
if (response.statusCode === 200) { | |||
message.success('更新成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('更新失败') | |||
} | |||
@@ -217,7 +217,7 @@ const Material = () => { | |||
if (response.statusCode === 200) { | |||
message.success('添加成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('添加失败') | |||
} | |||
@@ -263,7 +263,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 || '删除失败'); | |||
@@ -304,7 +304,7 @@ const Material = () => { | |||
useEffect(() => { | |||
if (!selectedStore) return; | |||
onFetchMiniPageList(); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}, [selectedStore]); | |||
return <PageContainer> | |||
@@ -69,7 +69,7 @@ const pageManage = () => { | |||
if (response.statusCode === 200) { | |||
message.success('修改成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -78,7 +78,7 @@ const pageManage = () => { | |||
if (response.statusCode === 200) { | |||
message.success('添加成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -93,7 +93,7 @@ const pageManage = () => { | |||
const response = await appletAPI.MiniPageDelete(record.id); | |||
if (response.statusCode === 200) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -117,7 +117,7 @@ const pageManage = () => { | |||
}, []); | |||
useEffect(() => { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}, [selectedStore]); | |||
return <PageContainer> | |||
@@ -78,7 +78,7 @@ const pageManage = () => { | |||
if (response.statusCode === 200) { | |||
message.success('修改成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -87,7 +87,7 @@ const pageManage = () => { | |||
if (response.statusCode === 200) { | |||
message.success('添加成功'); | |||
setIsModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -102,7 +102,7 @@ const pageManage = () => { | |||
const response = await appletAPI.MiniPageDelete(record.id); | |||
if (response.statusCode === 200) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors); | |||
} | |||
@@ -126,7 +126,7 @@ const pageManage = () => { | |||
}, []); | |||
useEffect(() => { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}, [selectedStore]); | |||
return <PageContainer header={{ | |||
@@ -221,7 +221,7 @@ const companyManage = () => { | |||
api.removeCompany([record.id]).then((r) => { | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}); | |||
}} | |||
onCancel={() => { }} | |||
@@ -345,7 +345,7 @@ const companyManage = () => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current?.reload(); | |||
@@ -371,7 +371,7 @@ const companyManage = () => { | |||
handleUpdateMenuModalVisible(false); | |||
setStepFormValues({}); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -228,7 +228,7 @@ const ProductManage = () => { | |||
api.removeProduct([record.id]).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(e.error); | |||
} | |||
@@ -335,11 +335,11 @@ const ProductManage = () => { | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -253,7 +253,7 @@ const Advanced = (props) => { | |||
if(r.succeeded){ | |||
message.success('修改成功'); | |||
setUpdateBomVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setBomId('') | |||
}else{ | |||
message.error(r.errors); | |||
@@ -268,7 +268,7 @@ const Advanced = (props) => { | |||
if(r.succeeded){ | |||
message.success('修改成功'); | |||
setBomBatchingVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setBomId('') | |||
}else{ | |||
message.error(r.errors); | |||
@@ -343,12 +343,12 @@ const Advanced = (props) => { | |||
DelGoodsBom(record.id); | |||
hide(); | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} catch (error) { | |||
hide(); | |||
message.error('删除失败,请重试'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return false; | |||
} | |||
}} | |||
@@ -564,7 +564,7 @@ const Advanced = (props) => { | |||
if (success) { | |||
handleGoodsBomModalVisible(false); | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleGoodsBomModalVisible(false); | |||
@@ -585,7 +585,7 @@ const Advanced = (props) => { | |||
}else{ | |||
message.error("添加失败") | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}) | |||
}} | |||
goodsid={props.location.query.values?.id} | |||
@@ -53,7 +53,7 @@ const goodsattribute = (props) => { | |||
await deletegoodsattribute(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -72,7 +72,7 @@ const handleAdd = async (fields) => { | |||
await addgoodsattribute(JSON.stringify(fields)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -102,7 +102,7 @@ const handleUpdate = async (fields) => { | |||
}).then((r) => { | |||
if (r.succeeded) { | |||
message.success('修改成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -192,7 +192,7 @@ const handleUpdate = async (fields) => { | |||
await deletegoodsattribute([record.id]).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -305,7 +305,7 @@ const handleUpdate = async (fields) => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -330,7 +330,7 @@ const handleUpdate = async (fields) => { | |||
if(r.data){ | |||
message.success('保存成功'); | |||
handleMattrodalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error("保存失败"); | |||
} | |||
@@ -51,7 +51,7 @@ const goodsattribute = (props) => { | |||
await deletegoodsattribute(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -70,7 +70,7 @@ const handleAdd = async (fields) => { | |||
await addgoodsattribute(JSON.stringify(fields)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -95,7 +95,7 @@ const handleUpdate = async (fields) => { | |||
await addgoodsattribute(fields).then((r) => { | |||
if (r.succeeded) { | |||
message.success('修改成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -185,7 +185,7 @@ const handleUpdate = async (fields) => { | |||
await deletegoodsattribute([record.id]).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -297,7 +297,7 @@ const handleUpdate = async (fields) => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -310,7 +310,7 @@ const handleUpdate = async (fields) => { | |||
deletegoodsattributevalue(id).then((r)=>{ | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -43,7 +43,7 @@ const CreateForm = (props) => { | |||
// await deletegoodsattribute([record.id]).then((r) => { | |||
// if (r.succeeded) { | |||
// message.success('删除成功'); | |||
// actionRef.current.reload(); | |||
// actionRef.current.reloadAndRest(); | |||
// } else { | |||
// message.error(r.errors); | |||
// } | |||
@@ -111,7 +111,7 @@ const handleAdd = async (fields) => { | |||
await DeleteGoodsTypes(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
intDicData() | |||
} else { | |||
message.error(r.errors); | |||
@@ -198,7 +198,7 @@ const handleAdd = async (fields) => { | |||
await DeleteGoodsType(record.id).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -323,7 +323,7 @@ const handleAdd = async (fields) => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -259,7 +259,7 @@ const GoodsManage = () => { | |||
removeGoods(record.id).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -465,10 +465,10 @@ const GoodsManage = () => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -202,7 +202,7 @@ const GoodsTypeManage = () => { | |||
await DelDeviceInfo([record.id]).then((r) => { | |||
if(r.data){ | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('删除失败'); | |||
} | |||
@@ -218,7 +218,7 @@ const GoodsTypeManage = () => { | |||
// onClick={() => { | |||
// CopyDevice({ id: record.id }).then((r) => { | |||
// if (r.data) { | |||
// actionRef.current.reload(); | |||
// actionRef.current.reloadAndRest(); | |||
// } | |||
// }); | |||
// }} | |||
@@ -277,7 +277,7 @@ const handleAdd = async (fields) => { | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors) | |||
return false; | |||
@@ -291,7 +291,7 @@ const handleUpdate = async (fields) => { | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors) | |||
return false; | |||
@@ -111,7 +111,7 @@ const GoodsTypeManage = () => { | |||
setIsAddGoodsTemplate(false); | |||
if (info.file.status === 'done') { | |||
setIsModalOpen(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success(`${info.file.name} 文件上传成功.`); | |||
} else if (info.file.status === 'error') { | |||
message.error(`${info.file.name} 文件上载失败.`); | |||
@@ -172,7 +172,7 @@ const GoodsTypeManage = () => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -320,7 +320,7 @@ const GoodsTypeManage = () => { | |||
handleModalVisible(false); | |||
setCurrentRow(undefined); | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -68,7 +68,7 @@ const GoodsTypeManage = () => { | |||
DelProduct([record.id]).then((r) => { | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}); | |||
}} | |||
onCancel={() => { }} | |||
@@ -87,7 +87,7 @@ const GoodsTypeManage = () => { | |||
message.destroy(key); | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error(r.errors); | |||
@@ -110,7 +110,7 @@ const GoodsTypeManage = () => { | |||
message.destroy(key); | |||
if (r.succeeded) { | |||
message.success('修改成功',); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error(r.errors); | |||
@@ -135,7 +135,7 @@ const GoodsTypeManage = () => { | |||
await DelProduct(ids).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error(r.errors); | |||
@@ -229,7 +229,7 @@ const GoodsTypeManage = () => { | |||
handleModalVisible(false); | |||
setCurrentRow(undefined); | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -149,7 +149,7 @@ const ActionForm = (props) => { | |||
deletetechnologyaction(ids).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -220,7 +220,7 @@ const ActionForm = (props) => { | |||
if (success) { | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -407,7 +407,7 @@ const handleAdd = async (fields) => { | |||
LoadfunData(params) | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} else { | |||
message.error(r.errors); | |||
@@ -458,7 +458,7 @@ const handleRemove = async (ids) => { | |||
LoadfunData(params) | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} else { | |||
message.error(r.errors); | |||
@@ -69,7 +69,7 @@ const Manage = () => { | |||
if (re.data) { | |||
message.success('修改成功'); | |||
setIsModalOpen(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('修改失败'); | |||
} | |||
@@ -92,7 +92,7 @@ const Manage = () => { | |||
if (re.data) { | |||
message.success('删除成功'); | |||
setIsModalOpen(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('删除成功'); | |||
} | |||
@@ -159,7 +159,7 @@ const Manage = () => { | |||
if (re.data) { | |||
message.success('修改成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('修改失败'); | |||
} | |||
@@ -169,7 +169,7 @@ const Manage = () => { | |||
if (re.data) { | |||
setIsModalOpen(false); | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(re.errors || '添加失败'); | |||
} | |||
@@ -164,7 +164,7 @@ const TableList = () => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
initfranchiseeType(); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -197,7 +197,7 @@ const TableList = () => { | |||
// console.log(r) | |||
// if(r.succeeded){ | |||
// setauthcode(r.data) | |||
// actionRef.current.reload(); | |||
// actionRef.current.reloadAndRest(); | |||
// message.success('生成成功'); | |||
// }else{ | |||
// message.error('生成失败'); | |||
@@ -342,7 +342,7 @@ const TableList = () => { | |||
gettree().then((r) => { | |||
setTreeData(r.data); | |||
}); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -117,7 +117,7 @@ const roleManager = () => { | |||
await removeRole([record.id]).then(r => { | |||
if(r.succeeded){ | |||
message.success("删除成功"); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error(r.data); | |||
} | |||
@@ -157,7 +157,7 @@ const roleManager = () => { | |||
// handleRemove(record); | |||
// // removeRole([record.id]).then(r => { | |||
// // message.success(r); | |||
// // actionRef.current.reload(); | |||
// // actionRef.current.reloadAndRest(); | |||
// // }) | |||
// }} | |||
> | |||
@@ -317,7 +317,7 @@ const roleManager = () => { | |||
if (success) { | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -341,7 +341,7 @@ const roleManager = () => { | |||
handleUpdateMenuModalVisible(false); | |||
setStepFormValues({}); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -368,7 +368,7 @@ const roleManager = () => { | |||
handleUpdateOrgModalVisible(false); | |||
setStepFormValues({}); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -107,7 +107,7 @@ const userManager = () => { | |||
await api.RemoveUser(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('删除失败,请重试'); | |||
} | |||
@@ -305,10 +305,10 @@ const userManager = () => { | |||
setStepFormValues({}); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -367,7 +367,7 @@ const userManager = () => { | |||
handleUpdateOrgModalVisible(false); | |||
setStepFormValues({}); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -42,7 +42,7 @@ const goodspush = () => { | |||
await DevicePushRecodeDelete(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -117,7 +117,7 @@ const goodspush = () => { | |||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||
if(r.data){ | |||
message.success('操作成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('操作失败'); | |||
} | |||
@@ -136,7 +136,7 @@ const goodspush = () => { | |||
await DeleteGoodsType(record.id).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -154,7 +154,7 @@ const HandleOk= async(values)=>{ | |||
if(res.data){ | |||
message.success('操作成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error(res.errors); | |||
} | |||
@@ -42,7 +42,7 @@ const goodspush = () => { | |||
await DevicePushRecodeDelete(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -117,7 +117,7 @@ const goodspush = () => { | |||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||
if(r.data){ | |||
message.success('操作成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('操作失败'); | |||
} | |||
@@ -136,7 +136,7 @@ const goodspush = () => { | |||
await DeleteGoodsType(record.id).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -154,7 +154,7 @@ const HandleOk= async(values)=>{ | |||
if(res.data){ | |||
message.success('操作成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('操作失败'); | |||
} | |||
@@ -42,7 +42,7 @@ const goodspush = () => { | |||
await DevicePushRecodeDelete(selectedRows.map((row) => row.id)).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -117,7 +117,7 @@ const goodspush = () => { | |||
DevicePushRecodeUpdate(record.id).then((r)=>{ | |||
if(r.data){ | |||
message.success('操作成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('操作失败'); | |||
} | |||
@@ -136,7 +136,7 @@ const goodspush = () => { | |||
await DeleteGoodsType(record.id).then((r) => { | |||
if (r.succeeded) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(r.errors); | |||
} | |||
@@ -154,7 +154,7 @@ const HandleOk= async(values)=>{ | |||
if(res.data){ | |||
message.success('操作成功'); | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error('操作失败'); | |||
} | |||
@@ -81,7 +81,7 @@ const PrinterInfo = () => { | |||
await SetPrinterHost(val.storeId, item.id).then((re) => { | |||
if (re.data) { | |||
setCurrentRow({}); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('设置成功'); | |||
} else { | |||
message.success('设置失败'); | |||
@@ -98,7 +98,7 @@ const PrinterInfo = () => { | |||
await DelPrinter([item.id]).then((re) => { | |||
if (re.data) { | |||
setCurrentRow({}); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('删除成功'); | |||
} else { | |||
message.success('删除失败'); | |||
@@ -111,7 +111,7 @@ const PrinterInfo = () => { | |||
</Popconfirm>, | |||
<a key="delete" | |||
onClick={async () => { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
if (item.state == "edit") { | |||
formRef.current.submit(); | |||
} | |||
@@ -310,7 +310,7 @@ const PrinterInfo = () => { | |||
values.storeId = currentTabRow.storeId; | |||
var result = await AddPrinter(values); | |||
if (result.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setModalVisit(false) | |||
message.success('添加成功'); | |||
} else { | |||
@@ -89,7 +89,7 @@ const PrinterInfo = () => { | |||
<a key="run" onClick={async () => { | |||
await SetPrinterHost(key, item.id).then((re) => { | |||
if (re.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('设置成功'); | |||
} else { | |||
message.success('设置失败'); | |||
@@ -105,7 +105,7 @@ const PrinterInfo = () => { | |||
onConfirm={async () => { | |||
await DelPrinter([item.id]).then((re) => { | |||
if (re.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('删除成功'); | |||
} else { | |||
message.success('删除失败'); | |||
@@ -118,7 +118,7 @@ const PrinterInfo = () => { | |||
<a key="delete" | |||
onClick={async () => { | |||
console.log('sssssss', currentPrinter); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
console.log('formRef', formRef.current.getFieldValue()); | |||
// formRef?.current.setFieldsValue(currentPrinter); | |||
@@ -138,7 +138,7 @@ const PrinterInfo = () => { | |||
console.log('接口', values, currentPrinter); | |||
var result = await UpdatePrinter(values); | |||
if (result.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('编辑成功'); | |||
} else { | |||
message.success('编辑失败'); | |||
@@ -283,7 +283,7 @@ const PrinterInfo = () => { | |||
values.storeId = currentStoreid; | |||
var result = await AddPrinter(values); | |||
if (result.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setModalVisit(false) | |||
message.success('添加成功'); | |||
} else { | |||
@@ -96,7 +96,7 @@ const app = () => { | |||
var res = await api.Del(record.id); | |||
if (res.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(response.errors ||'删除失败'); | |||
} | |||
@@ -132,7 +132,7 @@ const app = () => { | |||
var res = await api.Update(form.getFieldsValue()); | |||
if (res.data) { | |||
message.success('修改成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setIsModalOpen(false); | |||
form.resetFields(); | |||
} else { | |||
@@ -143,7 +143,7 @@ const app = () => { | |||
var res = await api.Add(form.getFieldsValue()); | |||
if (res.data) { | |||
message.success('新增成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setIsModalOpen(false); | |||
form.resetFields(); | |||
} else { | |||
@@ -28,7 +28,7 @@ const handleAdd = async (fields) => { | |||
message.success('添加成功'); | |||
handleModalVisible(false); | |||
setCurrentRow(undefined); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error('添加失败'); | |||
@@ -51,7 +51,7 @@ const handleRemove = async (ids) => { | |||
await DelAsync(ids).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error('删除失败'); | |||
@@ -101,7 +101,7 @@ const handleRemove = async (ids) => { | |||
// record.status = record.status == 0 ? 1 : 0; | |||
// UpdateAsync(record).then((r) => { | |||
// if (r.data) { | |||
// actionRef.current.reload(); | |||
// actionRef.current.reloadAndRest(); | |||
// } | |||
// }); | |||
// }} | |||
@@ -210,7 +210,7 @@ const handleRemove = async (ids) => { | |||
value.GoodsId = props.location.query.values.goodsId; | |||
value.StoreId = props.location.query.storeId; | |||
success = handleAdd(value); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -50,7 +50,7 @@ const PlanManage = () => { | |||
addAdvertisement(JSON.stringify(fields)); | |||
message.success('添加成功'); | |||
//刷新数据 | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} catch (error) { | |||
message.error('添加失败请重试!'); | |||
@@ -68,7 +68,7 @@ const PlanManage = () => { | |||
updateAdvertisement(JSON.stringify(fields)).then((r) => { | |||
if (r.data) { | |||
message.success('修改成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('修改失败请重试!'); | |||
} | |||
@@ -95,7 +95,7 @@ const PlanManage = () => { | |||
} | |||
}); | |||
//刷新数据 | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} catch (error) { | |||
message.error('删除失败,请重试'); | |||
@@ -231,7 +231,7 @@ const PlanManage = () => { | |||
record.status = record.status == 0 ? 1 : 0; | |||
updateAdvertisementStatus({id:record.id,status:record.status}).then((r) => { | |||
if (r.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}); | |||
}} | |||
@@ -368,7 +368,7 @@ const PlanManage = () => { | |||
if (success) { | |||
handleModalVisible(false); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
}} | |||
@@ -142,11 +142,11 @@ const storeDesktopNumber = () => { | |||
DeleteDesktopNumber([record.id]).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error('删除失败'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return false; | |||
} | |||
}); | |||
@@ -220,7 +220,7 @@ const storeDesktopNumber = () => { | |||
if (success.data) { | |||
handleModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}} | |||
onCancel={() => { | |||
@@ -237,7 +237,7 @@ const storeDesktopNumber = () => { | |||
} | |||
if (success) { | |||
editModalVisible(false); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}} | |||
onCancel={() => { | |||
@@ -39,7 +39,7 @@ const MenuGoods = (props) => { | |||
console.log(response) | |||
if (response.statusCode === 200) { | |||
message.success("修改成功!"); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(JSON.stringify(response.errors) || '修改失败'); | |||
} | |||
@@ -127,7 +127,7 @@ const MenuGoods = (props) => { | |||
const response = await stopgoods(goodss); | |||
if (response.statusCode === 200 && response.data) { | |||
message.success('操作成功!') | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error(JSON.stringify(response.errors) || '操作失败'); | |||
} | |||
@@ -149,7 +149,7 @@ const MenuGoods = (props) => { | |||
record.status = record.status == 0 ? 1 : 0; | |||
const response = await UpdateStoreGoodsStatusAsync(record); | |||
if (response.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('操作成功!'); | |||
} else { | |||
message.error(JSON.stringify(response.errors) || '操作失败'); | |||
@@ -242,7 +242,7 @@ const MenuGoods = (props) => { | |||
goods={currGoods} | |||
onCancel={() => setShowGoodsModal(false)} | |||
onOk={() => { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setShowGoodsModal(false); | |||
}} | |||
> | |||
@@ -259,7 +259,7 @@ const MenuGoods = (props) => { | |||
isDevice={itemselect} | |||
onCancel={() => setDeviceModal(false)} | |||
onOk={() => { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
setDeviceModal(false); | |||
}} | |||
> | |||
@@ -194,7 +194,7 @@ const storeGoodsInfo = (props) => { | |||
var goodss = [{ goodsId: record.foodId, storeId: storeId, StopSales: stopSales }]; | |||
stopgoods(goodss).then((r) => { | |||
if (r.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}); | |||
}} | |||
@@ -208,7 +208,7 @@ const storeGoodsInfo = (props) => { | |||
record.status = record.status == 0 ? 1 : 0; | |||
UpdateStoreGoodsStatusAsync(record).then((r) => { | |||
if (r.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}); | |||
}} | |||
@@ -222,7 +222,7 @@ const storeGoodsInfo = (props) => { | |||
record.isDevice = record.isDevice == 0 ? 1 : 0; | |||
UpdateStoreGoodsStatusAsync(record).then((r) => { | |||
if (r.data) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}); | |||
}} | |||
@@ -275,7 +275,7 @@ const storeGoodsInfo = (props) => { | |||
cancelText="否" | |||
onConfirm={() => { | |||
StoreGoodsAllUpdate({ StoreId: item.id, UpdateType: 0 }) | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { }} | |||
> | |||
@@ -289,7 +289,7 @@ const storeGoodsInfo = (props) => { | |||
cancelText="否" | |||
onConfirm={() => { | |||
StoreGoodsAllUpdate({ StoreId: item.id, UpdateType: 1 }) | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { }} | |||
> | |||
@@ -303,7 +303,7 @@ const storeGoodsInfo = (props) => { | |||
cancelText="否" | |||
onConfirm={() => { | |||
StoreGoodsAllUpdate({ StoreId: item.id, UpdateType: 2 }) | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { }} | |||
> | |||
@@ -358,7 +358,7 @@ const storeGoodsInfo = (props) => { | |||
if (success) { | |||
handleModalVisible(false); | |||
setCurrentRow(undefined); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}} | |||
onCancel={() => { | |||
@@ -111,7 +111,7 @@ const storeGoodsInfo = (props) => { | |||
onConfirm={ () => { | |||
DelShopFoodMenu(record.id).then((re) => { | |||
if(re.statusCode==200){ | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
message.success('删除成功'); | |||
}else{ | |||
message.error(re.errors || '删除失败'); | |||
@@ -136,7 +136,7 @@ const storeGoodsInfo = (props) => { | |||
useEffect(() => { | |||
if (currStore && actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}, [currStore]); | |||
@@ -48,7 +48,7 @@ const GoodsTypeManage = () => { | |||
message.destroy(key); | |||
if (r.data) { | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error(r.errors||'添加失败'); | |||
@@ -71,7 +71,7 @@ const GoodsTypeManage = () => { | |||
message.destroy(key); | |||
if (r.data) { | |||
message.success('修改成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error(r.errors||'修改失败'); | |||
@@ -92,7 +92,7 @@ const GoodsTypeManage = () => { | |||
await Delstorestaff(ids).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
return true; | |||
} else { | |||
message.error('删除失败'); | |||
@@ -294,7 +294,7 @@ const GoodsTypeManage = () => { | |||
if (success) { | |||
handleModalVisible(false); | |||
setCurrentRow(undefined); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
}} | |||
onCancel={() => { | |||
@@ -187,7 +187,7 @@ const DictDataManage = (props) => { | |||
api.removeDictData([record.id]).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('删除失败,请重试'); | |||
} | |||
@@ -292,10 +292,10 @@ const DictDataManage = (props) => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -162,7 +162,7 @@ const DictTypeManage = () => { | |||
api.removeDictType([record.id]).then((r) => { | |||
if (r.data) { | |||
message.success('删除成功,即将刷新'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} else { | |||
message.error('删除失败,请重试'); | |||
} | |||
@@ -273,10 +273,10 @@ const DictTypeManage = () => { | |||
setCurrentRow(undefined); | |||
if (actionRef.current) { | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
} | |||
} | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}} | |||
onCancel={() => { | |||
handleModalVisible(false); | |||
@@ -32,7 +32,7 @@ const menuManager = () => { | |||
await api.add({ ...fields }).then((r) => { | |||
if (r.succeeded) { | |||
message.success('添加成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
handleModalVisible(false); | |||
}else{ | |||
message.error(r.errors); | |||
@@ -50,7 +50,7 @@ const handleUpdate = async (fields) => { | |||
api.update(fields).then((r) => { | |||
if (r.succeeded) { | |||
message.success('更新成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
handleModalVisible(false); | |||
}else{ | |||
message.error(r.errors); | |||
@@ -85,7 +85,7 @@ const handleUpdate = async (fields) => { | |||
// <a | |||
// onClick={() => { | |||
// api.remove([record.id]).then((r) => { | |||
// actionRef.current.reload(); | |||
// actionRef.current.reloadAndRest(); | |||
// }); | |||
// }} | |||
// > | |||
@@ -101,7 +101,7 @@ const handleUpdate = async (fields) => { | |||
api.remove([record.id]).then((r) => { | |||
if (r.succeeded) { | |||
message.success('操作成功'); | |||
actionRef.current.reload(); | |||
actionRef.current.reloadAndRest(); | |||
}else{ | |||
message.error(r.errors); | |||
} | |||