Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zksyService
Project overview
Project overview
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
jianjin
zksyService
Commits
b9d94a67
Commit
b9d94a67
authored
Apr 12, 2021
by
wangjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
事件,工程添加告警提醒弹窗提醒
parent
8d197cd0
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
52 additions
and
39 deletions
+52
-39
im/hzjt.properties
im/hzjt.properties
+3
-3
src/main/java/im/zhaojun/system/controller/LoginController.java
...in/java/im/zhaojun/system/controller/LoginController.java
+1
-1
src/main/resources/application.properties
src/main/resources/application.properties
+11
-11
src/main/resources/static/js/jkgl/jkgl - 副本.js
src/main/resources/static/js/jkgl/jkgl - 副本.js
+3
-3
src/main/resources/static/js/jkgl/jkgl.js
src/main/resources/static/js/jkgl/jkgl.js
+3
-3
src/main/resources/static/js/manualscreen/sjcx.js
src/main/resources/static/js/manualscreen/sjcx.js
+1
-1
src/main/resources/static/js/sjcx/gcjl.js
src/main/resources/static/js/sjcx/gcjl.js
+10
-3
src/main/resources/static/js/sjcx/sjcx.js
src/main/resources/static/js/sjcx/sjcx.js
+14
-9
src/main/resources/static/js/sjfx/sjfx.js
src/main/resources/static/js/sjfx/sjfx.js
+1
-1
src/main/resources/templates/page/gcjl.html
src/main/resources/templates/page/gcjl.html
+1
-1
src/main/resources/templates/page/sjcx.html
src/main/resources/templates/page/sjcx.html
+4
-3
No files found.
im/hzjt.properties
View file @
b9d94a67
...
...
@@ -14,7 +14,7 @@ datasource.druid.validationQuery=SELECT 'x' FROM DUAL
# 格式为:ip地址:端口:用户名:密码
# 端口号一定要写,例如:192.168.2.100:21:reader:reader
ftp.host
=
localhost
:21:hzjt:1qaz2wsx
ftp.host
=
33.65.250.179
:21:hzjt:1qaz2wsx
alarm.subscribe.data.key
=
gs:traff:alarmlist
...
...
@@ -39,6 +39,6 @@ gs.traff.cloud.department.fileagent.url=http://33.50.1.22:8888/agent/fileAgent?f
alarmrecord.check.push.recordtype
=
1
eventsend.url
=
http://
localhost
:8089/sendEvents
devicesend.url
=
http://
localhost
:8089/traffdevicewriteresult/sendDevices
eventsend.url
=
http://
33.65.250.179
:8089/sendEvents
devicesend.url
=
http://
33.65.250.179
:8089/traffdevicewriteresult/sendDevices
devicesend.timeout
=
1000
\ No newline at end of file
src/main/java/im/zhaojun/system/controller/LoginController.java
View file @
b9d94a67
...
...
@@ -210,7 +210,7 @@ public class LoginController {
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON_UTF8
);
HttpEntity
<
String
>
requestEntity
=
new
HttpEntity
<>(
message
,
headers
);
return
restTemplate
.
postForObject
(
"http://
localhost
:"
+
8089
+
"/alarmevent"
,
requestEntity
,
ResultObj
.
class
);
return
restTemplate
.
postForObject
(
"http://
33.65.250.179
:"
+
8089
+
"/alarmevent"
,
requestEntity
,
ResultObj
.
class
);
}
...
...
src/main/resources/application.properties
View file @
b9d94a67
...
...
@@ -2,12 +2,12 @@ spring.profiles.active=dev
server.port
=
8082
#
spring.datasource.username=hzjt
#
spring.datasource.password=hzjt
#spring.datasource.url=jdbc:oracle:thin:@localhost
:1521:helowin
spring.datasource.username
=
test
spring.datasource.password
=
test
spring.datasource.url
=
jdbc:oracle:thin:@192.168.168.212:1523:helowin
spring.datasource.username
=
hzjt
spring.datasource.password
=
hzjt
spring.datasource.url
=
jdbc:oracle:thin:@33.65.250.179
:1521:helowin
#
spring.datasource.username=test
#
spring.datasource.password=test
#
spring.datasource.url=jdbc:oracle:thin:@192.168.168.212:1523:helowin
spring.datasource.driver-class-name
=
oracle.jdbc.OracleDriver
# ��ʼ����С����С�����
...
...
@@ -30,7 +30,7 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone
=
GMT+8
#
#spring.redis.host=localhost
spring.redis.host
=
127.0.0.1
spring.redis.host
=
33.65.250.179
spring.redis.port
=
6379
spring.cache.type
=
redis
spring.cache.redis.time-to-live
=
600000
...
...
@@ -67,9 +67,9 @@ spring.devtools.restart.exclude=static/**,public/**
managername
=
admin
devicesend.url
=
http://
localhost
:8089/traffdevicewriteresult/sendDevices
devicesend.url
=
http://
33.65.250.179
:8089/traffdevicewriteresult/sendDevices
devicesend.timeout
=
1000
flvurl
=
http://
localhost
:8089/getflv
flvurl
=
http://
33.65.250.179
:8089/getflv
json.resisurl
=
http://33.50.1.21:57081/record/ecvs
qingzhi.devicewrite.url
=
http://33.50.1.213:38080/api/jtldpt/impld/deviceWrite
...
...
@@ -78,8 +78,8 @@ qingzhi.devicewrite.timeout=5000
qingzhi.eventwrite.url
=
http://33.50.1.213:38080/api/jtldpt/impld/trafficEventWrite
qingzhi.eventwrite.timeout
=
5000
eventsend.url
=
http://
localhost
:8089/sendEvents
pushrecordurl
=
localhost
:8089/sendtouser
eventsend.url
=
http://
33.65.250.179
:8089/sendEvents
pushrecordurl
=
33.65.250.179
:8089/sendtouser
ipstrs
=
33.55.1.85,33.55.1.86,33.55.1.87,33.55.1.88,33.55.1.89,33.55.1.90,33.55.1.91,33.55.1.92,33.55.1.93,33.55.1.94,33.55.1.95,33.55.1.96,33.51.6.97,33.60.1.7,33.54.3.240,33.53.1.171,33.52.1.222,33.61.1.23,33.57.1.22
ipurl
=
:8001/api/traffic-incident/restartAutoRule
\ No newline at end of file
src/main/resources/static/js/jkgl/jkgl - 副本.js
View file @
b9d94a67
...
...
@@ -1249,7 +1249,7 @@ let arr_right_s = [];
//websocket连接
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -1532,7 +1532,7 @@ $('[name="status"]').bootstrapSwitch({
//推送近5分钟数据
function
websocket_s
(
ds
)
{
let
web_ips
=
"
ws:/
localhost
:8089/websocket/
"
+
ds
;
let
web_ips
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
ds
;
ws_j5fz
=
new
WebSocket
(
web_ips
);
ws_j5fz
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -1582,7 +1582,7 @@ function websocket_s(ds) {
//推送自动规则
function
websocket_gzdj
(
video_id
,
items
,
indexs_1
)
{
let
web_ips
=
"
ws:/
localhost
:8089/websocket/
"
+
video_id
;
let
web_ips
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
video_id
;
let
ws_gzdj
=
new
WebSocket
(
web_ips
);
ws_gzdj
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
src/main/resources/static/js/jkgl/jkgl.js
View file @
b9d94a67
...
...
@@ -1249,7 +1249,7 @@ let arr_right_s = [];
//websocket连接
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -1520,7 +1520,7 @@ $('[name="status"]').bootstrapSwitch({
//推送近5分钟数据
function
websocket_s
(
ds
)
{
let
web_ips
=
"
ws:/
localhost
:8089/websocket/
"
+
ds
;
let
web_ips
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
ds
;
ws_j5fz
=
new
WebSocket
(
web_ips
);
ws_j5fz
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -1570,7 +1570,7 @@ function websocket_s(ds) {
//推送自动规则
function
websocket_gzdj
(
video_id
,
items
,
indexs_1
)
{
let
web_ips
=
"
ws:/
localhost
:8089/websocket/
"
+
video_id
;
let
web_ips
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
video_id
;
let
ws_gzdj
=
new
WebSocket
(
web_ips
);
ws_gzdj
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
src/main/resources/static/js/manualscreen/sjcx.js
View file @
b9d94a67
...
...
@@ -617,7 +617,7 @@ $('[data-gallery=manual]').click(function (e) {
new
PhotoViewer
(
items
,
options
);
});
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
src/main/resources/static/js/sjcx/gcjl.js
View file @
b9d94a67
let
state_sj
=
true
;
let
nodeCheckedSilent
=
false
;
let
nodeUncheckedSilent
=
false
;
let
audioPlay
=
document
.
getElementById
(
'
audio
'
)
audioPlay
.
play
()
setTimeout
(()
=>
{
audioPlay
.
pause
()
audioPlay
.
load
()
},
10
)
let
vue_sjcx
=
new
Vue
({
el
:
'
#sjcx
'
,
data
:
{
...
...
@@ -666,7 +673,7 @@ $('[data-gallery=manual]').click(function (e) {
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -678,7 +685,7 @@ wss.onmessage = function (evt) {
// console.log(data);
if
(
data
.
type
==
"
alarm
"
)
{
if
(
data
.
data
.
type
==
'
TRAFFIC_INCIDENT_ALARM
'
)
{
if
(
!
state_sj
){
if
(
state_sj
==
false
){
if
(
!
vue_sjcx
.
check_s
){
return
;
}
...
...
@@ -718,7 +725,7 @@ wss.onmessage = function (evt) {
// //事件等级
let
sjdj
=
''
;
vue_sjcx
.
data_sjlxs
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
id
==
data
.
data
.
incident_type
)
{
if
(
item
.
id
.
toLowerCase
()
==
data
.
data
.
incident_type
.
toLowerCase
()
)
{
bjlx
=
item
.
name
;
sjdj
=
item
.
alarmlevel
;
}
...
...
src/main/resources/static/js/sjcx/sjcx.js
View file @
b9d94a67
let
state_sj
=
fals
e
;
let
state_sj
=
tru
e
;
let
vue_sjcx
=
new
Vue
({
el
:
'
#sjcx
'
,
data
:
{
...
...
@@ -685,7 +685,7 @@ $('[data-gallery=manual]').click(function (e) {
new
PhotoViewer
(
items
,
options
);
});
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -696,14 +696,18 @@ wss.onmessage = function (evt) {
var
data
=
JSON
.
parse
(
event
.
data
);
// console.log(data);
if
(
data
.
type
==
"
alarm
"
)
{
if
(
data
.
data
.
recordtype
==
'
ROADWORKS
'
||
data
.
data
.
record
type
==
'
ROADWORKS_OUT_OF_LINE
'
)
{
if
(
data
.
data
.
incident_type
==
'
ROADWORKS
'
||
data
.
data
.
incident_
type
==
'
ROADWORKS_OUT_OF_LINE
'
)
{
//排除工程检测
return
;
}
if
(
!
state_sj
)
{
vue_sjcx
.
query
(
1
,
true
);
return
;
}
if
(
data
.
data
.
type
==
'
TRAFFIC_INCIDENT_ALARM
'
)
{
if
(
state_sj
==
false
){
if
(
!
vue_sjcx
.
check_s
){
return
;
}
vue_sjcx
.
query
(
1
,
true
);
return
;
}
//if_cz 判断前来的事件是不是本部门下的
let
if_cz
=
false
;
//jk_video_id为监控id
...
...
@@ -727,7 +731,7 @@ wss.onmessage = function (evt) {
//事件等级
let
sjdj
=
''
;
vue_sjcx
.
data_sjlxs
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
id
==
data
.
data
.
incident_type
)
{
if
(
item
.
id
.
toLowerCase
()
==
data
.
data
.
incident_type
.
toLowerCase
()
)
{
bjlx
=
item
.
name
;
sjdj
=
item
.
alarmlevel
;
}
...
...
@@ -874,7 +878,8 @@ wss.onmessage = function (evt) {
}).
show
();
//播放声音
let
myMp3
=
document
.
getElementById
(
"
audio
"
);
audio
.
play
();
// audio.play();
}
}
}
...
...
src/main/resources/static/js/sjfx/sjfx.js
View file @
b9d94a67
...
...
@@ -705,7 +705,7 @@ laydate.render({
}
});
function
websocket_s
(
d
)
{
let
web_ip
=
"
ws:/
localhost
:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/
33.65.250.179
:8089/websocket/
"
+
d
;
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
src/main/resources/templates/page/gcjl.html
View file @
b9d94a67
...
...
@@ -17,7 +17,7 @@
</head>
<body>
<div
id=
"page-sy"
>
<audio
id=
"audio"
src=
"../img/4083.mp3"
></audio>
<audio
id=
"audio"
muted=
"muted"
src=
"../img/4083.mp3"
></audio>
<div
class=
"right-nav"
>
<div
class=
"tab-content content-sjfx"
>
<div
role=
"tabpanel"
class=
"tab-pane active"
id=
"sjcx"
>
...
...
src/main/resources/templates/page/sjcx.html
View file @
b9d94a67
...
...
@@ -20,7 +20,7 @@
</head>
<body>
<div
id=
"page-sy"
>
<audio
id=
"audio"
src=
"../img/4083.mp3"
></audio>
<audio
id=
"audio"
muted=
"muted"
src=
"../img/4083.mp3"
></audio>
<div
class=
"right-nav"
>
<div
class=
"tab-content content-sjfx"
>
<div
role=
"tabpanel"
class=
"tab-pane active"
id=
"sjcx"
>
...
...
@@ -62,8 +62,9 @@
<span
class=
"pub-span"
style=
"margin-left: 10px;"
>
自动弹窗
<input
id=
"status"
type=
"checkbox"
@
click=
"zdtx"
checked
>
</span>
</
div
>
</
span
>
<div>
<span
style=
"float:left;line-height: 52px;margin-right: 10px;"
>
事件类型:
</span>
<ul
class=
"nav nav-pills "
role=
"tablist"
>
<li
role=
"presentation"
:class=
"['tab-pane',(index==num)?'active':'']"
...
...
@@ -416,7 +417,7 @@
<div
class=
"modal-body"
>
<div>
<div
class=
"top-video"
>
<video
id=
"my_video_1"
class=
"video-js"
controls
preload=
"auto"
width=
"480"
height=
"280"
<video
id=
"my_video_1"
class=
"video-js"
controls
preload=
"auto"
width=
"480"
height=
"280"
ref=
'video'
v-show=
"show_s"
style=
"object-fit: fill;width: 100%;height: 100%;"
:src=
"video_src"
>
</video
>
<img
:src=
"img_src_s"
v-show=
"!show_s"
style=
"width: 100%;height: 100%;cursor: zoom-in;"
data-gallery=
"manual"
>
...
...
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