From 557e714a224ff0454f47dbdd95df73778196516d Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 29 Dec 2023 09:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=B1=BB=E5=9E=8B=E9=BB=98?= =?UTF-8?q?=E8=AE=A45=E4=B8=AA=E5=BF=85=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/problem/components/tableData.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx index c595088..5432318 100644 --- a/web/client/src/sections/problem/components/tableData.jsx +++ b/web/client/src/sections/problem/components/tableData.jsx @@ -130,7 +130,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS } break; } - }, [query, genre, pepProjectId,typeId]) + }, [query, genre, pepProjectId, typeId]) useEffect(() => { @@ -460,7 +460,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS rowSelection={{ selectedRowKeys: selected || [], getCheckboxProps: record => ({ - disabled: record.confirmTime ? true : false, + disabled: (record.confirmTime || record.State > 2 || record.projectLocal) ? true : false, // name: record.name, }), onSelect: (record, selected) => { @@ -497,7 +497,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS return v.id } } else { - if (!(v.State > 2)) { + if (!(v.State > 2) && !v.projectLocal) { return v.id } } @@ -547,7 +547,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS onOk={() => { dispatch(problem.postExceptionTypeCheck({ userId: user?.id, typeId: check })).then(res => { if (res.success) { - api.current?.setValue('groupUnitId', ) + api.current?.setValue('groupUnitId',) setTypeId(check) setTypeSet(false) } @@ -570,6 +570,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS {itm.name}