Commit e2a12f36 authored by 前端-许冠华's avatar 前端-许冠华

Merge branch 'v2-220618' into 'v2-220618'

fix: 修改表格reload方法修改成reloadCurrent See merge request linkseeks-design/pro-platform!1031
parents 30b2b723 9e7556e4
......@@ -23,7 +23,7 @@ const PortalSystem = () => {
id: record.id,
}).then(res => {
setConfirmLoading(false)
tableRef.current.reload()
tableRef.current.reloadCurrent()
})
}
......@@ -31,7 +31,7 @@ const PortalSystem = () => {
setConfirmLoading(true)
await postMemberStoreDelete({ id: record.id }).then(res => {
setConfirmLoading(false)
tableRef.current.reload()
tableRef.current.reloadCurrent()
})
}
......
......@@ -25,7 +25,7 @@ const WaitSubmitAuditOffer = () => {
const fetchSubmitBatch = async () => {
const res = await postTransactionNotarizeEnquiryQuotedPriceSubmitAll({ ids: rowkeys });
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -24,7 +24,7 @@ const WaitSubmitOffer = () => {
const fetchSubmitBatch = async () => {
const res = await postTransactionNotarizeEnquiryQuotedPriceAffirmAll({ ids: rowkeys });
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -29,7 +29,7 @@ const WaitAddOffer = () => {
res = await postTransactionProductQuotationtAll({ ids: rowkeys });
}
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......@@ -46,7 +46,7 @@ const WaitAddOffer = () => {
res = await postTransactionProductQuotationDeleteAll({ ids: rowkeys });
}
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -26,7 +26,7 @@ const WaitSubmitOffer = () => {
res = await postTransactionProductQuotationtToSubmitAll({ ids: rowkeys });
}
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -34,7 +34,7 @@ const WaitAddInquiry = () => {
setLoading(false)
return
}
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
setLoading(false)
}
......@@ -51,7 +51,7 @@ const WaitAddInquiry = () => {
res = await postTransactionInquiryListDeleteAll({ ids: rowkeys });
}
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -26,7 +26,7 @@ const WaitSubmitInquiry = () => {
res = await postTransactionInquirySubmitAll({ ids: rowkeys });
}
if (res.code === 1000) {
reload.current.reload();
reload.current.reloadCurrent();
setRowKeys([])
}
}
......
......@@ -25,7 +25,7 @@ const FreightTemplate = () => {
let _status = status == 0 ? 1 : 0
postLogisticsFreightTemplateEnable({ id: id, status: _status }).then(res => {
if (res.code === 1000) {
reload.current.reload()
reload.current.reloareloadCurrentd()
}
}).catch(error => {
console.warn(error)
......@@ -34,7 +34,7 @@ const FreightTemplate = () => {
const handleDelete = (id: number) => {
postLogisticsFreightTemplateDelete({ id: id }).then(res => {
if (res.code === 1000) {
reload.current.reload()
reload.current.reloadCurrent()
}
}).catch(error => {
console.warn(error)
......
......@@ -31,12 +31,12 @@ const LogisticsCompanyManage = () => {
const handleChangeStatus = async (id: any, status: any) => {
let _status = status == 1 ? 0 : 1
await postLogisticsCompanyEnable({ id: id, status: _status })
reload.current.reload()
reload.current.reloadCurrent()
}
const handleDelete = (id: any) => {
postLogisticsCompanyDelete({ id: id }).then(res => {
if (res.code === 1000) {
reload.current.reload()
reload.current.reloadCurrent()
}
}).catch(error => {
console.warn(error)
......
......@@ -14,7 +14,7 @@ const ReceivingAddress = () => {
const handleDelete = (id: any) => {
postLogisticsReceiverAddressDelete({ id: id }).then(res => {
if (res.code === 1000) {
reload.current.reload()
reload.current.reloadCurrent()
}
}).catch(error => {
console.warn(error)
......
......@@ -15,7 +15,7 @@ const ShipmentsAddress = () => {
const handleDelete = (id: any) => {
postLogisticsShipperAddressDelete({ id: id }).then(res => {
if (res.code === 1000) {
reload.current.reload()
reload.current.reloadCurrent()
}
}).catch(error => {
console.warn(error)
......
......@@ -19,7 +19,7 @@ const LogisticsBillQuery = () => {
const handleDelete = (id: number) => {
postLogisticsOrderWaitSubmitDelete({ id: id }).then(res => {
reload.current.reload()
reload.current.reloadCurrent()
}).catch(error => {
console.warn(error)
})
......@@ -27,7 +27,7 @@ const LogisticsBillQuery = () => {
const handleSubmit = (id: number) => {
postLogisticsOrderWaitSubmitSubmit({ id: id }).then(res => {
reload.current.reload()
reload.current.reloadCurrent()
}).catch(error => {
console.warn(error)
})
......
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