|
@@ -38,13 +38,13 @@ const MessageCenter = () => {
|
|
|
setTab(tab);
|
|
|
switch (tab) {
|
|
|
case '1':
|
|
|
- run();
|
|
|
+ runSelf();
|
|
|
break;
|
|
|
case '2':
|
|
|
- runSelf();
|
|
|
+ runWarning();
|
|
|
break;
|
|
|
case '3':
|
|
|
- runWarning();
|
|
|
+ run();
|
|
|
break;
|
|
|
}
|
|
|
};
|
|
@@ -54,11 +54,11 @@ const MessageCenter = () => {
|
|
|
};
|
|
|
|
|
|
const handlerSeeClick = (item) => {
|
|
|
- if (tab === '1') {
|
|
|
+ if (tab === '3') {
|
|
|
// if (item?.MandateId) {
|
|
|
UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
|
|
|
// }
|
|
|
- } else {
|
|
|
+ } else if (tab == '1') {
|
|
|
UnityAction.sendMsg('notiZiJian', item.PatrolId);
|
|
|
}
|
|
|
};
|
|
@@ -111,7 +111,7 @@ const MessageCenter = () => {
|
|
|
items={[
|
|
|
{
|
|
|
label: `系统自检`,
|
|
|
- key: '2',
|
|
|
+ key: '1',
|
|
|
children: (
|
|
|
<RenderContent
|
|
|
loading={loadingSelf}
|
|
@@ -122,7 +122,7 @@ const MessageCenter = () => {
|
|
|
},
|
|
|
{
|
|
|
label: `预警数据`,
|
|
|
- key: '3',
|
|
|
+ key: '2',
|
|
|
children: (
|
|
|
<RenderContent
|
|
|
loading={loadingWarning}
|
|
@@ -133,7 +133,7 @@ const MessageCenter = () => {
|
|
|
},
|
|
|
{
|
|
|
label: `水厂工况`,
|
|
|
- key: '1',
|
|
|
+ key: '3',
|
|
|
children: (
|
|
|
<RenderContent loading={loading} data={data?.list} icon={icon1} />
|
|
|
),
|