Browse Source

异常类型默认5个必选

dev
wenlele 1 year ago
parent
commit
557e714a22
  1. 9
      web/client/src/sections/problem/components/tableData.jsx

9
web/client/src/sections/problem/components/tableData.jsx

@ -130,7 +130,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS
} }
break; break;
} }
}, [query, genre, pepProjectId,typeId]) }, [query, genre, pepProjectId, typeId])
useEffect(() => { useEffect(() => {
@ -460,7 +460,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS
rowSelection={{ rowSelection={{
selectedRowKeys: selected || [], selectedRowKeys: selected || [],
getCheckboxProps: record => ({ getCheckboxProps: record => ({
disabled: record.confirmTime ? true : false, disabled: (record.confirmTime || record.State > 2 || record.projectLocal) ? true : false,
// name: record.name, // name: record.name,
}), }),
onSelect: (record, selected) => { onSelect: (record, selected) => {
@ -497,7 +497,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS
return v.id return v.id
} }
} else { } else {
if (!(v.State > 2)) { if (!(v.State > 2) && !v.projectLocal) {
return v.id return v.id
} }
} }
@ -547,7 +547,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS
onOk={() => { onOk={() => {
dispatch(problem.postExceptionTypeCheck({ userId: user?.id, typeId: check })).then(res => { dispatch(problem.postExceptionTypeCheck({ userId: user?.id, typeId: check })).then(res => {
if (res.success) { if (res.success) {
api.current?.setValue('groupUnitId', ) api.current?.setValue('groupUnitId',)
setTypeId(check) setTypeId(check)
setTypeSet(false) setTypeSet(false)
} }
@ -570,6 +570,7 @@ const TableData = ({ alarmDataGroup, route, dispatch, actions, collectData, setS
<Checkbox <Checkbox
key={itm.value} key={itm.value}
value={itm.value} value={itm.value}
disabled={[8, 40, 41, 48, 49].includes(itm.value) ? true : false}
style={{ width: "20%", height: 16, margin: "0 0 20px 0" }} style={{ width: "20%", height: 16, margin: "0 0 20px 0" }}
> >
{itm.name} {itm.name}

Loading…
Cancel
Save