diff --git a/src/views/products/Audit.jsx b/src/views/products/Audit.jsx index cb8a113..a55db7e 100644 --- a/src/views/products/Audit.jsx +++ b/src/views/products/Audit.jsx @@ -126,26 +126,26 @@ const PriceTable = ({ productType, dataSource, refresh }) => { ) : null, }, - { - title: '', - key: 'action2', - width: '6rem', - className: 'bg-white', - onCell: (r, index) => ({ rowSpan: r.rowSpan }), - render: (_, r) => { - const showPublicBtn = null; // r.pendingQuotation ? : null; - const btn2 = r.showPublicBtn ? ( - - ) : null; - return
{btn2}
; - }, - }, + // { + // title: '', + // key: 'action2', + // width: '6rem', + // className: 'bg-white', + // onCell: (r, index) => ({ rowSpan: r.rowSpan }), + // render: (_, r) => { + // const showPublicBtn = null; // r.pendingQuotation ? : null; + // const btn2 = r.showPublicBtn ? ( + // + // ) : null; + // return
{btn2}
; + // }, + // }, ]; return ( { btnText: t('versionHistory'), fetchData: async (params) => { const data = await getPPLogAction(params); - return data; + return { data }; }, }, 'published': { @@ -160,7 +160,7 @@ const useLogMethod = (method) => { fetchData: async (params) => { const { travel_agency_id, product_id, price_id, use_year } = params; const data = await getPPRunningAction({ travel_agency_id, product_id_list: product_id, use_year }); - return data?.[0]?.quotation || []; + return { data: data?.[0]?.quotation || [] }; }, }, }; @@ -198,7 +198,7 @@ const ProductQuotationLogPopover = ({ method, triggerProps = {}, onOpenChange, . const [loading, setLoading] = useState(false); const getData = async () => { setLoading(true); - const data = await fetchData({ travel_agency_id, product_id, price_id, use_year }); + const { data } = await fetchData({ travel_agency_id, product_id, price_id, use_year }); setLogData(data); invokeOpenChange(true); setLoading(false);