Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
乳
乳山瑞博-大屏
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
xinzhedeai
乳山瑞博-大屏
Commits
6ce792d2
Commit
6ce792d2
authored
3 months ago
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警-chunliang
parent
7f2fc8e9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3269 additions
and
70 deletions
+3269
-70
settings.js
config/settings.js
+1
-1
alarmEquCtrl.js
src/api/alarmEquCtrl.js
+14
-0
index.vue
src/views/Screen/index.vue
+84
-69
indexjunbao.vue
src/views/Screen/indexjunbao.vue
+3170
-0
No files found.
config/settings.js
View file @
6ce792d2
var
ServiceURL
=
'
http://192.168.
3
.37:9005
'
;
var
ServiceURL
=
'
http://192.168.
2
.37:9005
'
;
window
.
VUE_APP_API
=
{
ServiceURL
:
ServiceURL
}
This diff is collapsed.
Click to expand it.
src/api/alarmEquCtrl.js
0 → 100644
View file @
6ce792d2
import
request
from
'
@/utils/request
'
export
function
openAlarm
()
{
return
request
({
url
:
'
/api/screenAlarm/openAlarm
'
,
method
:
'
post
'
,
})
}
export
function
closeAlarm
()
{
return
request
({
url
:
'
/api/screenAlarm/closeAlarm
'
,
method
:
'
post
'
,
})
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/views/Screen/index.vue
View file @
6ce792d2
...
...
@@ -376,6 +376,7 @@ import { Highchart } from '@/assets/js/chartTemplates.js';
import
{
CoordTransform
}
from
'
@/assets/js/CoordTransform.js
'
;
import
{
getToken
,
setToken
,
removeToken
}
from
'
@/utils/auth
'
;
import
{
encrypt
}
from
'
@/utils/rsaEncrypt
'
;
import
{
openAlarm
,
closeAlarm
}
from
'
@/api/alarmEquCtrl.js
'
;
export
default
{
data
()
{
...
...
@@ -1075,6 +1076,7 @@ export default {
// 报警弹窗-可变形
m
.
createAlarmView
=
function
(){
let
that
=
this
;
var
checkHtml
=
''
;
var
list
=
[{
areaCode
:
1
,
name
:
'
1111
'
}];
...
...
@@ -1091,7 +1093,7 @@ export default {
onload
:
function
(
o
){
var
el
=
o
.
el
,
wrap
=
o
.
Wrap
,
morphView
=
wrap
.
firstElementChild
;
o
.
setStyle
(
wrap
,
{
bottom
:
'
0.3rem
'
,
left
:
'
47
%
'
,
height
:
0
,
width
:
0
,
zIndex
:
1
,
bottom
:
'
0.3rem
'
,
left
:
'
50
%
'
,
height
:
0
,
width
:
0
,
zIndex
:
1
,
transformOrigin
:
'
0px 0px
'
,
justifyContent
:
'
center
'
,
});
...
...
@@ -1114,18 +1116,37 @@ export default {
});
//
<
input
type
=
"
checkbox
"
value
=
"
0
"
checked
/>
全选
<
/div
>
el
.
innerHTML
=
`<div class="content">
<div class="optBtnWrapper">
<a class="button alarm" style="display:none;">开始</a>
<a class="button alarm" id="startAlarmBtn">开始</a>
<a class="button stop" id="stopAlarmBtn">停止</a>
el
.
innerHTML
=
`
<div class="content">
<div class="fixed">
<dl class="scrolling4"></dl>
</div>
<i class="el-icon-circle-close"></i>
</div>
<div class="fixed"><dl class="scrolling4"></dl></div><i class="el-icon-circle-close"></i></div><div class="el-icon-bell">`
;
<div class="el-icon-bell"></div>
`
;
var
content
=
el
.
firstElementChild
;
o
.
scroll
=
content
.
firstElementChild
.
firstElementChild
;
const
optBtnWrapper
=
document
.
createElement
(
'
div
'
);
optBtnWrapper
.
className
=
'
optBtnWrapper
'
;
const
startAlarmBtn
=
document
.
createElement
(
'
a
'
);
startAlarmBtn
.
className
=
'
button alarm
'
;
startAlarmBtn
.
id
=
'
startAlarmBtn
'
;
startAlarmBtn
.
innerHTML
=
'
开始
'
;
const
stopAlarmBtn
=
document
.
createElement
(
'
a
'
);
stopAlarmBtn
.
className
=
'
button stop
'
;
stopAlarmBtn
.
id
=
'
stopAlarmBtn
'
;
stopAlarmBtn
.
innerHTML
=
'
停止
'
;
el
.
appendChild
(
optBtnWrapper
);
optBtnWrapper
.
appendChild
(
startAlarmBtn
);
optBtnWrapper
.
appendChild
(
stopAlarmBtn
);
o
.
updateList
=
function
(
list
){
var
dds
=
''
;
for
(
var
item
of
list
){
...
...
@@ -1141,54 +1162,46 @@ export default {
o
.
shrink
=
true
;
}
else
if
(
tag
.
className
===
'
el-icon-bell
'
){
o
.
shrink
=
false
;
}
else
if
(
tag
.
id
===
'
startAlarmBtn
'
){
qf
.
UI
.
loading
({
zIndex
:
2051
,
timer
:
2000
})
;
reqApi
.
common
.
requst
(
'
post
'
,
'
/api/screenAlarm/openAlarm
'
,
{}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
new
qf
.
UI
.
Notify
({
}
;
}
;
startAlarmBtn
.
addEventListener
(
'
click
'
,
()
=>
{
openAlarm
().
then
(
res
=>
{
res
.
body
===
200
?
new
qf
.
UI
.
Notify
({
position
:
'
top
'
,
zIndex
:
2050
,
type
:
'
success
'
,
duration
:
3000
,
autoOpen
:
true
,
message
:
res
.
body
,
});
}
else
{
new
qf
.
UI
.
Notify
({
}):
new
qf
.
UI
.
Notify
({
position
:
'
top
'
,
zIndex
:
2050
,
type
:
'
warning
'
,
duration
:
3000
,
autoOpen
:
true
,
message
:
res
.
body
,
})
})
});
}
});
}
else
if
(
tag
.
id
===
'
stopAlarmBtn
'
){
qf
.
UI
.
loading
({
zIndex
:
2051
,
timer
:
2000
});
reqApi
.
common
.
requst
(
'
post
'
,
'
/api/screenAlarm/closeAlarm
'
,
{}).
then
(
res
=>
{
if
(
res
.
code
===
200
){
new
qf
.
UI
.
Notify
({
stopAlarmBtn
.
addEventListener
(
'
click
'
,
()
=>
{
closeAlarm
().
then
(
res
=>
{
res
.
body
===
200
?
new
qf
.
UI
.
Notify
({
position
:
'
top
'
,
zIndex
:
2050
,
type
:
'
success
'
,
duration
:
3000
,
autoOpen
:
true
,
message
:
res
.
body
,
});
}
else
{
new
qf
.
UI
.
Notify
({
}):
new
qf
.
UI
.
Notify
({
position
:
'
top
'
,
zIndex
:
2050
,
type
:
'
warning
'
,
duration
:
3000
,
autoOpen
:
true
,
message
:
res
.
body
,
})
})
});
}
});
};
};
},
});
...
...
@@ -1947,6 +1960,7 @@ export default {
// 去除版权信息
viewer
.
_cesiumWidget
.
_creditContainer
.
style
.
display
=
"
none
"
;
var
path
=
process
.
env
.
VUE_APP_D3Tileset
+
'
/tileset.json
'
;
console
.
log
(
'
path
'
,
path
)
var
localTile
=
viewer
.
scene
.
primitives
.
add
(
new
Cesium
.
Cesium3DTileset
({
url
:
path
,
//maximumScreenSpaceError:1,
...
...
@@ -2086,41 +2100,6 @@ export default {
.font_digit
{
font-family
:diget
year
;}
.font_zhengdao
{
font-family
:zhengdao
;}
// 20241206
.optBtnWrapper
{
display
:
flex
;
gap
:
.1rem
;
position
:
absolute
;
right
:
-0
.9rem
;
align-items
:
center
;
flex-direction
:
column
;
top
:
50%
;
transform
:
translateY
(
-50%
);
.button
{
padding
:
0
.1rem
0
.2rem
;
font-size
:
0
.16rem
;
border
:
none
;
border-radius
:
8px
;
cursor
:
pointer
;
transition
:
background-color
0
.3s
ease
;
box-shadow
:
0
4px
10px
rgba
(
0
,
0
,
0
,
0
.2
);
}
.alarm
{
background-color
:
#f44336
;
/* 红色 */
}
.alarm
:hover
{
background-color
:
#d32f2f
;
/* 深红色 */
}
.stop
{
background-color
:
#4caf50
;
/* 绿色 */
}
.stop
:hover
{
background-color
:
#388e3c
;
/* 深绿色 */
}
}
.Screen
{
position
:relative
;
height
:
100%
;
width
:
100%
;
overflow
:hidden
;
...
...
@@ -3018,6 +2997,7 @@ export default {
color
:
#fff
;
width
:
0
;
height
:
0
;
display
:flex
;
justify-content
:center
;
align-items
:center
;
user-select
:none
;
position
:
relative
;
.content
{
position
:absolute
;
bottom
:
0
;
background-color
:rgba
(
0
,
0
,
0
,
.5
)
;
border
:
1px
solid
#3EB7EA
;
opacity
:
1
;
}
...
...
@@ -3167,3 +3147,38 @@ export default {
}
}
</
style
>
<
style
lang=
'scss'
>
// 20241207
.optBtnWrapper
{
display
:
flex
;
gap
:
.1rem
;
position
:
absolute
;
right
:
-3
.4rem
;
align-items
:
center
;
flex-direction
:
column
;
top
:
-0
.7rem
;
transform
:
translateY
(
-50%
);
.button
{
padding
:
0
.1rem
0
.2rem
;
font-size
:
0
.16rem
;
border
:
none
;
border-radius
:
8px
;
cursor
:
pointer
;
transition
:
background-color
0
.3s
ease
;
box-shadow
:
0
4px
10px
rgba
(
0
,
0
,
0
,
0
.2
);
}
.alarm
{
background-color
:
#f44336
;
/* 红色 */
}
.alarm
:hover
{
background-color
:
#d32f2f
;
/* 深红色 */
}
.stop
{
background-color
:
#4caf50
;
/* 绿色 */
}
.stop
:hover
{
background-color
:
#388e3c
;
/* 深绿色 */
}
}
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/views/Screen/indexjunbao.vue
0 → 100644
View file @
6ce792d2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
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