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
d82b2ed1
Commit
d82b2ed1
authored
Dec 31, 2020
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: message format
parent
eb4e9796
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
civbase.zip
civbase.zip
+0
-0
webpack.base.babel.js
internals/webpack/webpack.base.babel.js
+0
-0
index.js
src/components/NoticeIcon/Templates/Alarm/index.js
+3
-4
index.js
src/components/Notifier/index.js
+2
-2
global.less
src/global.less
+1
-0
No files found.
civbase.zip
0 → 100644
View file @
d82b2ed1
This diff was suppressed by a .gitattributes entry.
internals/webpack/webpack.base.babel.js
View file @
d82b2ed1
src/components/NoticeIcon/Templates/Alarm/index.js
View file @
d82b2ed1
...
@@ -31,9 +31,8 @@ const Alarm = ({ message, confirmRead, config }) => {
...
@@ -31,9 +31,8 @@ const Alarm = ({ message, confirmRead, config }) => {
confirmRead
(
false
,
[
message
.
id
]);
confirmRead
(
false
,
[
message
.
id
]);
const
widgetID
=
'widget_city_综合运营_管网监控_实时监控_报警监控'
;
const
widgetID
=
'widget_city_综合运营_管网监控_实时监控_报警监控'
;
const
webPath
=
'product/scada/AlertMonitoring/AlertMonitoring'
;
const
webPath
=
'product/scada/AlertMonitoring/AlertMonitoring'
;
debugger
const
widget
=
findPathByWidget
(
"productex/water/IOTMonitor/RealTimeAlarm/RealTimeAlarm"
,
config
.
widgets
,
""
,
"url"
);
const
widget
=
findPathByWidget
(
"productex/water/IOTMonitor/RealTimeAlarm/RealTimeAlarm"
,
config
.
widgets
,
""
,
"url"
);
console
.
log
(
widget
)
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
window
.
share
.
event
.
emit
(
'listenerMointer'
,
{
widgetId
:
widgetID
,
widgetId
:
widgetID
,
label
:
'报警监控'
,
label
:
'报警监控'
,
...
@@ -71,12 +70,12 @@ const Alarm = ({ message, confirmRead, config }) => {
...
@@ -71,12 +70,12 @@ const Alarm = ({ message, confirmRead, config }) => {
<
p
>
{
alarmContent
.
alarmContent
}
<
/p
>
<
p
>
{
alarmContent
.
alarmContent
}
<
/p
>
<
p
>
<
p
>
<
font
style
=
{{
color
:
'#ff0000'
}}
title
=
"点击查看详情"
>
<
font
style
=
{{
color
:
'#ff0000'
}}
title
=
"点击查看详情"
>
{(
alarmValue
.
length
>
0
&&
{(
alarmValue
&&
Array
.
isArray
(
alarmValue
)
&&
alarmValue
.
length
>
0
&&
alarmValue
[
0
]
!==
'undefined'
&&
alarmValue
[
0
]
!==
'undefined'
&&
alarmValue
[
0
])
||
alarmValue
[
0
])
||
''
}
''
}
<
/font
>
<
/font
>
{
`
${(
alarmValue
.
length
>
0
&&
{
`
${(
alarmValue
&&
Array
.
isArray
(
alarmValue
)
&&
alarmValue
.
length
>
0
&&
alarmValue
[
1
]
!==
'undefined'
&&
alarmValue
[
1
]
!==
'undefined'
&&
alarmValue
[
1
])
||
alarmValue
[
1
])
||
''
}
/
${
alarmContent
.
alarmThreshold
.
split
(
' '
).
join
(
''
)}
`
}
''
}
/
${
alarmContent
.
alarmThreshold
.
split
(
' '
).
join
(
''
)}
`
}
...
...
src/components/Notifier/index.js
View file @
d82b2ed1
...
@@ -301,7 +301,7 @@ class Notifier {
...
@@ -301,7 +301,7 @@ class Notifier {
:
'刚刚'
;
:
'刚刚'
;
const
messString
=
{
const
messString
=
{
id
:
parseMessage
.
ID
,
id
:
parseMessage
.
ID
,
infoContent
:
messContent
,
infoContent
:
this
.
_siteConfig
.
MessageLevel
===
DEFAULT_PARSE_LEVEL
?
messContent
:
JSON
.
parse
(
messContent
||
"{}"
)
,
infoLevel
:
parseMessage
.
level
,
infoLevel
:
parseMessage
.
level
,
time
:
`
${
timeMss
}
`
,
time
:
`
${
timeMss
}
`
,
infoType
,
infoType
,
...
@@ -550,7 +550,7 @@ class Notifier {
...
@@ -550,7 +550,7 @@ class Notifier {
:
'刚刚'
;
:
'刚刚'
;
const
message
=
{
const
message
=
{
id
:
hisMessage
.
HisID
,
id
:
hisMessage
.
HisID
,
infoContent
:
hisMessage
.
InfoContent
,
infoContent
:
this
.
_siteConfig
.
MessageLevel
===
DEFAULT_PARSE_LEVEL
?
hisMessage
.
InfoContent
:
JSON
.
parse
(
hisMessage
.
InfoContent
||
"{}"
)
,
time
:
`
${
timeMss
}
`
,
time
:
`
${
timeMss
}
`
,
infoType
:
this
.
getMessageType
(
hisMessage
.
InfoType
),
infoType
:
this
.
getMessageType
(
hisMessage
.
InfoType
),
dateTime
:
hisMessage
.
HisCreateTime
,
dateTime
:
hisMessage
.
HisCreateTime
,
...
...
src/global.less
View file @
d82b2ed1
...
@@ -65,6 +65,7 @@ select:-webkit-autofill {
...
@@ -65,6 +65,7 @@ select:-webkit-autofill {
#app {
#app {
& /deep/ .@{ant-prefix}-pro-basicLayout-content {
& /deep/ .@{ant-prefix}-pro-basicLayout-content {
margin: 0 !important;
margin: 0 !important;
height: 100%;
}
}
.subapp-container div[data-qiankun='purehtml'] * {
.subapp-container div[data-qiankun='purehtml'] * {
margin: inherit;
margin: inherit;
...
...
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