Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
9867bba3
Commit
9867bba3
authored
Feb 22, 2023
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 报警跳转修复
parent
12183c1d
Pipeline
#67854
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
index.js
src/layouts/AppLayout/notifier/templates/alarm/index.js
+9
-5
index.js
src/layouts/AppLayout/notifier/templates/case/index.js
+10
-5
No files found.
src/layouts/AppLayout/notifier/templates/alarm/index.js
View file @
9867bba3
...
...
@@ -50,11 +50,15 @@ const Alarm = ({ message, confirmRead, config, handlerUnknowDetail }) => {
''
,
'url'
,
);
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
widgetId
:
widgetID
,
label
:
'实时报警'
,
url
:
widget
.
url
||
webPath
,
});
if
(
window
?.
share
?.
event
?.
_events
?.
listenerMointer
)
{
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
widgetId
:
widgetID
,
label
:
'实时报警'
,
url
:
widget
.
url
||
webPath
,
});
}
else
{
handlerUnknowDetail
(
message
);
}
}
confirmRead
(
false
,
[
message
.
id
]);
};
...
...
src/layouts/AppLayout/notifier/templates/case/index.js
View file @
9867bba3
/* eslint-disable no-underscore-dangle */
import
React
from
'react'
;
import
{
ConfigProvider
}
from
'antd'
;
// eslint-disable-next-line import/no-unresolved
...
...
@@ -52,11 +53,15 @@ const Case = ({ message, confirmRead, handlerUnknowDetail }) => {
break
;
}
const
webPath
=
item
.
webPath
||
'product/maintenance/CaseManage/CaseDoingBox/StardCaseDoingBoxView|isDelay=1'
;
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
widgetId
:
widgetID
,
label
,
url
:
webPath
,
});
if
(
window
?.
share
?.
event
?.
_events
?.
listenerMointer
)
{
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
widgetId
:
widgetID
,
label
,
url
:
webPath
,
});
}
else
{
handlerUnknowDetail
(
message
);
}
}
confirmRead
(
false
,
[
message
.
id
]);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment