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
968768fe
Commit
968768fe
authored
Feb 28, 2023
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: iotIP修改
parent
51340d16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
notice.js
src/layouts/AppLayout/notifier/notice.js
+11
-1
login.js
src/pages/user/login/login.js
+3
-1
No files found.
src/layouts/AppLayout/notifier/notice.js
View file @
968768fe
...
...
@@ -261,7 +261,7 @@ class Notifier {
}
mqttConfig
.
mqtt_iotIP
=
self
.
_siteConfig
.
mqtt_iotIP
=
mqttConfig
.
mqtt_mess
.
TcpIP
+
':'
+
mqttConfig
.
mqtt_mess
.
TcpPort
;
mqttConfig
.
mqtt_mess
.
TcpIP
+
(
mqttConfig
.
mqtt_mess
.
TcpPort
?
':'
+
mqttConfig
.
mqtt_mess
.
TcpPort
:
''
)
;
// self.props.updateConfig && self.props.updateConfig(Object.assign({}, self.props.global, {
// ...mqttConfig
...
...
@@ -425,6 +425,8 @@ class Notifier {
*/
speakMessage
=
message
=>
{
if
(
!
message
)
return
;
const
{
version
}
=
message
;
if
(
version
===
'3.0'
)
return
this
.
speakDefault
(
message
);
switch
(
message
.
infoType
)
{
case
'SCADA报警'
:
case
'通用报警'
:
...
...
@@ -485,6 +487,10 @@ class Notifier {
this
.
speak
(
msg
);
};
speakDefault
=
message
=>
{
let
msg
=
`
${
message
.
title
}
,
${
message
.
title
}
:
${
message
.
infoContent
??
''
}
`
this.speak(msg);
};
speak = msg => {
if (!this.speakState) return;
this.speakState.text = msg;
...
...
@@ -511,6 +517,10 @@ class Notifier {
this.renderPopPlatform(message); // 显示报警弹窗
return;
}
if (message.version === '3.0' && message.infoLevel === PLATFORM_LEVEL) {
this.renderPopPlatform(message); // 显示报警弹窗
return;
}
};
renderPopPlatform(message) {
...
...
src/pages/user/login/login.js
View file @
968768fe
...
...
@@ -342,7 +342,9 @@ class Login {
mqttConfig
.
mqtt_mess
.
TcpPort
=
DEFAULT_TCP_PORT
;
mqttConfig
.
mqtt_IsSSL
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}
:
${
mqttConfig
.
mqtt_mess
.
TcpPort
}
`
;
}
mqttConfig
.
mqtt_iotIP
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}
:
${
mqttConfig
.
mqtt_mess
.
TcpPort
}
`
;
mqttConfig
.
mqtt_iotIP
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}${
mqttConfig
.
mqtt_mess
.
TcpPort
?
`:
${
mqttConfig
.
mqtt_mess
.
TcpPort
}
`
:
''
}
`
;
self
.
globalConfig
=
Object
.
assign
(
self
.
globalConfig
,
{
...
mqttConfig
,
...
...
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