Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kanban-nanjing-11
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
caolun
kanban-nanjing-11
Commits
a1b6282a
Commit
a1b6282a
authored
Jun 24, 2024
by
lc0527
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息提示优化
parent
788559e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
52 deletions
+28
-52
page1.html
page1.html
+11
-18
page2.html
page2.html
+10
-16
page3.html
page3.html
+7
-18
No files found.
page1.html
View file @
a1b6282a
...
...
@@ -229,16 +229,6 @@
}
// 底部文字 初始化
BottomText
()
// 左边文字 修改
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
"
错误信息111
"
||
""
)
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
"
提示信息111
"
||
""
)
// 给自定义控件添加点击事件,触发播放
/* alarmBell.addEventListener('click', function() {
handPlayAudio();
...
...
@@ -342,8 +332,9 @@
if
(
_data
.
status
===
'
异常
'
){
//TODO 异常报警信息
let
warningMsg
=
_data
.
warningMsg
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
warningMsg
)
//$("#msgShowWindow").text(warningMsg);
//$("#msgShowWindow").addClass("error");
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
...
...
@@ -356,8 +347,9 @@
if
(
_data
.
message
)
{
//TODO 异常报警信息
let
warningMsg
=
_data
.
message
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
warningMsg
)
//$("#msgShowWindow").text(warningMsg);
//$("#msgShowWindow").addClass("error");
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
...
...
@@ -369,7 +361,8 @@
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
//$("#broadcastShowWindow").text(_data.message);
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
_data
.
message
)
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
...
...
page2.html
View file @
a1b6282a
...
...
@@ -369,15 +369,6 @@ $(document).ready(function () {
BottomText
()
// 左边文字 修改
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
"
错误信息222
"
||
""
)
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
"
提示信息222
"
||
""
)
...
...
@@ -408,11 +399,13 @@ $(document).ready(function () {
$
(
"
#equipmentStatus
"
).
addClass
(
"
error
"
);
//TODO 异常报警信息
let
warningMsg
=
_data
.
warningMsg
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
warningMsg
)
//$("#msgShowWindow").text(warningMsg);
//$("#msgShowWindow").addClass("error");
}
else
{
$
(
"
#msgShowWindow
"
).
removeClass
(
"
error
"
);
$
(
"
#equipmentStatus
"
).
addClass
(
"
text-124
"
);
//$("#msgShowWindow").removeClass("error");
//$("#equipmentStatus").addClass("text-124");
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
''
)
}
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
...
...
@@ -423,7 +416,8 @@ $(document).ready(function () {
}
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
_data
.
message
)
//$("#broadcastShowWindow").text(_data.message);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
...
...
page3.html
View file @
a1b6282a
...
...
@@ -144,19 +144,6 @@
// 底部文字 初始化
BottomText
()
// 左边文字 修改
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
"
错误信息333
"
||
""
)
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
"
提示信息333
"
||
""
)
let
siteId
=
null
;
window
.
addEventListener
(
'
message
'
,
function
(
event
=
{})
{
const
_data
=
JSON
.
parse
(
(
event
.
data
||
"
{}
"
)
)
...
...
@@ -180,8 +167,9 @@
if
(
_data
.
status
===
'
异常
'
){
//TODO 异常报警信息
let
warningMsg
=
_data
.
warningMsg
;
$
(
"
#msgShowWindow
"
).
text
(
warningMsg
);
$
(
"
#msgShowWindow
"
).
addClass
(
"
error
"
);
$
(
'
#productionDayDate3999 .str_move
'
).
html
(
warningMsg
)
//$("#msgShowWindow").text(warningMsg);
//$("#msgShowWindow").addClass("error");
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
var
totalWidth
=
element
.
scrollWidth
;
...
...
@@ -192,6 +180,7 @@
}
if
(
_data
.
type
==
'
broadcast
'
){
if
(
_data
.
message
){
$
(
'
#productionDayDate3888 .str_move
'
).
html
(
_data
.
message
)
$
(
"
#broadcastShowWindow
"
).
text
(
_data
.
message
);
var
elements
=
document
.
querySelectorAll
(
'
.marquee
'
);
for
(
const
element
of
elements
)
{
...
...
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