From 1ba068ebdcedf468b4440da17b341080b89dd9b3 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Fri, 23 Feb 2024 18:03:05 +0800 Subject: [PATCH 1/2] z --- src/pages/device/productmanage/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/device/productmanage/index.jsx b/src/pages/device/productmanage/index.jsx index f127be2..3b1dbdd 100644 --- a/src/pages/device/productmanage/index.jsx +++ b/src/pages/device/productmanage/index.jsx @@ -532,7 +532,7 @@ const handleRemove = async (ids) => { id="table1" actionRef={actiontopisRef} rowKey="id" - pagination={{ defaultPageSize: 10,total:total }} + pagination={{ defaultPageSize: 10 }} search={{labelWidth: 120}} columns={topicscolumns} toolBarRender={() => [ @@ -549,7 +549,7 @@ const handleRemove = async (ids) => { ]} //数据绑定 - dataSource={dataSource} + // dataSource={dataSource} request={async (params) => { var data = []; var total = 0; @@ -581,11 +581,11 @@ const handleRemove = async (ids) => { actionRef={actiontopismrRef} rowKey="id" search={false} - pagination={{ defaultPageSize: 10,total:total }} + pagination={{ defaultPageSize: 10}} columns={topicsmrcolumns} toolBarRender={false} //数据绑定 - dataSource={dataSource} + // dataSource={dataSource} request={async (params) => { var data = []; var total = 0; From 25796021ef67d00bc82125ff2a7762aad3b7948f Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Fri, 23 Feb 2024 18:09:53 +0800 Subject: [PATCH 2/2] z --- src/pages/device/productmanage/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/device/productmanage/index.jsx b/src/pages/device/productmanage/index.jsx index 3b1dbdd..8304a54 100644 --- a/src/pages/device/productmanage/index.jsx +++ b/src/pages/device/productmanage/index.jsx @@ -308,8 +308,9 @@ const bomtechnology = (props) => { await deleteproducttopics([record.id]).then((r) => { message.success('删除成功,即将刷新'); - var params={productId:props.location.query.values.productId,current:1,pageSize:10} - LoadtopisData(params) + actiontopisRef.current.reload(); + // var params={productId:props.location.query.values.productId,current:1,pageSize:10} + // LoadtopisData(params) }); }} onCancel={() => { }}