From a7a028efa980f150900e761a5e5f24ae8f229212 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 19 Jun 2023 16:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E4=B8=AD=E5=8F=B0=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=20=20=E6=96=87=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/workOrder/containers/aboutMe.jsx | 16 ++++++------- .../sections/workOrder/containers/receipt.jsx | 24 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/web/client/src/sections/workOrder/containers/aboutMe.jsx b/web/client/src/sections/workOrder/containers/aboutMe.jsx index 95c5ae9..5b19ca9 100644 --- a/web/client/src/sections/workOrder/containers/aboutMe.jsx +++ b/web/client/src/sections/workOrder/containers/aboutMe.jsx @@ -49,19 +49,19 @@ const Rest = (props) => { } }) setTableData(nextTableData) - setLimits(nextTableData?.length || 0) + // setLimits(nextTableData?.length || 0) setLoading(false) }, error => { Toast.error({ content: '抄送我的工单列表请求失败', duration: 1, }) setLoading(false) }); - // EmisRequest.get(EmisApiTable.processInstancemMyNoticeCount, - // { userId: user?.id, businessType: '运维中台工单', ...obj, limit: "", offset: "" }) - // .then(res => { - // setLimits(res.count || 0) - // }, error => { - // Toast.error({ content: '抄送我的工单数量请求失败', duration: 1, }) - // }); + EmisRequest.get(EmisApiTable.processInstancemMyNoticeCount, + { userId: user?.id, businessType: '运维中台表单', ...obj, limit: "", offset: "" }) + .then(res => { + setLimits(res.count || 0) + }, error => { + Toast.error({ content: '抄送我的工单数量请求失败', duration: 1, }) + }); } let columns = [{ diff --git a/web/client/src/sections/workOrder/containers/receipt.jsx b/web/client/src/sections/workOrder/containers/receipt.jsx index 3aa7d6b..3b9f7fd 100644 --- a/web/client/src/sections/workOrder/containers/receipt.jsx +++ b/web/client/src/sections/workOrder/containers/receipt.jsx @@ -47,24 +47,24 @@ const Rest = (props) => { pomsNeedData } }) - setLimits(nextTableData?.length || 0) + // setLimits(nextTableData?.length || 0) setTableData(nextTableData) setLoading(false) }, error => { Toast.error({ content: '已办工单列表请求失败', duration: 1, }) setLoading(false) }); - // EmisRequest.get(EmisApiTable.processInstancemMyDoneCount, - // { - // userId: user?.id, - // businessType: '运维中台工单', - // ...obj, limit: "", offset: "" - // }) - // .then(res => { - // setLimits(res.count || 0) - // }, error => { - // Toast.error({ content: '已办工单数量请求失败', duration: 1, }) - // }); + EmisRequest.get(EmisApiTable.processInstancemMyDoneCount, + { + userId: user?.id, + businessType: '运维中台表单', + ...obj, limit: "", offset: "" + }) + .then(res => { + setLimits(res.count || 0) + }, error => { + Toast.error({ content: '已办工单数量请求失败', duration: 1, }) + }); } let columns = [{