Browse Source

异常类型默认5个必选

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

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

@ -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
} }
} }
@ -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