|
@@ -15,16 +15,14 @@ const MessageCenter = () => {
|
|
const [tab, setTab] = useState('2');
|
|
const [tab, setTab] = useState('2');
|
|
//, msgType: 工况:11, 自检:12
|
|
//, msgType: 工况:11, 自检:12
|
|
const { data, run, loading } = useRequest(() =>
|
|
const { data, run, loading } = useRequest(() =>
|
|
- getNotificationList({ projectId, msgType: 11 }),
|
|
|
|
|
|
+ getNotificationList({ projectId, msgType: 11 }, { manual: true }),
|
|
);
|
|
);
|
|
|
|
|
|
const {
|
|
const {
|
|
data: dataSelf,
|
|
data: dataSelf,
|
|
run: runSelf,
|
|
run: runSelf,
|
|
loading: loadingSelf,
|
|
loading: loadingSelf,
|
|
- } = useRequest(() => getNotificationList({ projectId, msgType: 12 }), {
|
|
|
|
- manual: true,
|
|
|
|
- });
|
|
|
|
|
|
+ } = useRequest(() => getNotificationList({ projectId, msgType: 12 }));
|
|
|
|
|
|
const handleTabsChange = (tab) => {
|
|
const handleTabsChange = (tab) => {
|
|
setTab(tab);
|
|
setTab(tab);
|
|
@@ -37,9 +35,9 @@ const MessageCenter = () => {
|
|
|
|
|
|
const handlerSeeClick = (item) => {
|
|
const handlerSeeClick = (item) => {
|
|
if (tab === '1') {
|
|
if (tab === '1') {
|
|
- if (item?.MandateId) {
|
|
|
|
- UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
|
|
|
|
- }
|
|
|
|
|
|
+ // if (item?.MandateId) {
|
|
|
|
+ UnityAction.sendMsg('OpenTaskModal', `mandate_id=${item.MandateId}`);
|
|
|
|
+ // }
|
|
} else {
|
|
} else {
|
|
UnityAction.sendMsg('notiZiJian', item.ID);
|
|
UnityAction.sendMsg('notiZiJian', item.ID);
|
|
}
|
|
}
|