|
@ -92,16 +92,13 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ name: '搜索', field: '1' }, |
|
|
{ |
|
|
{ |
|
|
name: '设备类型', field: '2', |
|
|
name: '设备类型', field: '2', |
|
|
data: [ |
|
|
data: genre, |
|
|
{ name: '枪机', value: '11' }, |
|
|
|
|
|
{ name: '球机', value: '22' }, |
|
|
|
|
|
{ name: '其他', value: '33' }] |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '异常状态', field: '3', |
|
|
name: '异常状态', field: '3', |
|
|
data: [ |
|
|
data: [ |
|
|
{ name: '当前', value: '11' }, |
|
|
{ name: '当前', value: 'new' }, |
|
|
{ name: '历史', value: '22' }] |
|
|
{ name: '历史', value: 'histroy' }] |
|
|
}], |
|
|
}], |
|
|
useAbnormal: [ // 应用异常(useAbnormal) |
|
|
useAbnormal: [ // 应用异常(useAbnormal) |
|
|
{ name: '搜索', field: 'errType' }, |
|
|
{ name: '搜索', field: 'errType' }, |
|
@ -174,7 +171,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
name: '项目名称', sort: 3, value: 'projectName', render: (_, r, index) => { |
|
|
name: '项目名称', sort: 3, value: 'projectName', render: (_, r, index) => { |
|
|
return <> |
|
|
return <> |
|
|
{r.projectName?.map((v, index) => { |
|
|
{r.projectName?.map((v, index) => { |
|
|
return <div key={r.id + r.appName + index} style={{ width: 176, }}> |
|
|
return v.name ? <div key={r.id + r.appName + index} style={{ width: 176, }}> |
|
|
{OutHidden({ |
|
|
{OutHidden({ |
|
|
number: 7, |
|
|
number: 7, |
|
|
name: v.name |
|
|
name: v.name |
|
@ -186,8 +183,8 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
<img src={`/assets/images/install/${v.state == 'PMOS' ? 'icon_POMS' : 'icon_zhengque'}.png`} style={{ display: "inline-block", width: 10 }} /> |
|
|
<img src={`/assets/images/install/${v.state == 'PMOS' ? 'icon_POMS' : 'icon_zhengque'}.png`} style={{ display: "inline-block", width: 10 }} /> |
|
|
<span style={{ display: "inline-block", color: v.state == 'PMOS' ? "rgb(255, 255, 255)" : "rgb(15, 126, 251)", width: 48, fontSize: 12, textAlign: "center" }}>{v.state}</span> |
|
|
<span style={{ display: "inline-block", color: v.state == 'PMOS' ? "rgb(255, 255, 255)" : "rgb(15, 126, 251)", width: 48, fontSize: 12, textAlign: "center" }}>{v.state}</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> : "" |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</> |
|
|
</> |
|
@ -402,7 +399,7 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket }) => { |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
<div style={{ display: 'flex', paddingLeft: 20 }}> |
|
|
<div style={{ display: 'flex', paddingLeft: 20 }}> |
|
|
<span style={{ display: 'inline-block', width: 78 }}>确认信息:</span> |
|
|
<span style={{ display: 'inline-block', width: 78 }}>确认信息:</span> |
|
|
<TextArea maxCount={500} showClear onChange={(e) => setContent(e)} /> |
|
|
<TextArea maxCount={500} showClear onChange={(e) => setContent(e)} /> |
|
|
</div> |
|
|
</div> |
|
|
</Modal> : ""} |
|
|
</Modal> : ""} |
|
|