diff --git a/src/pages/Customer/List/HistoryOrders.tsx b/src/pages/Customer/List/HistoryOrders.tsx index b3b9058..6f586ae 100644 --- a/src/pages/Customer/List/HistoryOrders.tsx +++ b/src/pages/Customer/List/HistoryOrders.tsx @@ -241,7 +241,7 @@ const HistoryOrders: React.FC = ({ customer, siteId }) => { pagination={{ pageSize: 10, showSizeChanger: true, - showTotal: (total) => `共 ${total} 条`, + showQuickJumper: true, }} scroll={{ x: 800 }} /> diff --git a/src/pages/Customer/List/index.tsx b/src/pages/Customer/List/index.tsx index c163ed4..b5e6fd0 100644 --- a/src/pages/Customer/List/index.tsx +++ b/src/pages/Customer/List/index.tsx @@ -352,8 +352,7 @@ const CustomerList: React.FC = () => { pagination={{ pageSize: 20, showSizeChanger: true, - showTotal: (total, range) => - `第 ${range[0]}-${range[1]} 条/总共 ${total} 条`, + showQuickJumper: true, }} toolBarRender={() => [ - } - width={400} - onFinish={async (values) => { - return await syncProductToSite(values, record, site); - }} - initialValues={{ - sku: - siteProductSku || - (skuTemplate - ? renderSiteSku(skuTemplate, { site, product: record }) - : `${site.skuPrefix || ''}-${record.sku}`), - }} - > - - - ); - } - return ( -
-
-
{siteProduct.sku}
- } - > - } - width={400} - onFinish={async (values) => { - return await syncProductToSite( - values, - record, - site, - siteProduct.externalProductId, - ); - }} - initialValues={{ - sku: siteProduct.sku, - }} - > - -
- 确定要将本地产品数据更新到站点吗? -
-
-
-
Price: {siteProduct.regular_price ?? siteProduct.price}
- {siteProduct.sale_price && ( -
Sale: {siteProduct.sale_price}
- )} -
- Stock: {siteProduct.stock_quantity ?? siteProduct.stockQuantity} -
-
- Status:{' '} - {siteProduct.status === 'publish' ? ( - Published - ) : ( - {siteProduct.status} - )} -
-
- ); - }, - }; - columns.push(siteColumn); - }); - - return columns; - }; - - if (initialLoading) { - return ( - - - - ); - } - - return ( - - - columns={generateColumns()} - actionRef={actionRef} - rowKey="id" - rowSelection={{ - selectedRowKeys, - onChange: (keys, rows) => { - setSelectedRowKeys(keys); - setSelectedRows(rows); - }, - }} - toolBarRender={() => [ -