Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Imagedx
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
VideoAIService
Imagedx
Commits
9cbf12a7
Commit
9cbf12a7
authored
May 21, 2021
by
yzm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面bug
parent
ff21f4a3
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
365 additions
and
195 deletions
+365
-195
src/main/java/im/zhaojun/system/controller/CodeController.java
...ain/java/im/zhaojun/system/controller/CodeController.java
+20
-0
src/main/java/im/zhaojun/system/controller/VideoController.java
...in/java/im/zhaojun/system/controller/VideoController.java
+3
-3
src/main/java/im/zhaojun/system/mapper/CodeMapper.java
src/main/java/im/zhaojun/system/mapper/CodeMapper.java
+5
-0
src/main/java/im/zhaojun/system/mapper/VideoMapper.java
src/main/java/im/zhaojun/system/mapper/VideoMapper.java
+1
-1
src/main/java/im/zhaojun/system/model/TraffpictureParam.java
src/main/java/im/zhaojun/system/model/TraffpictureParam.java
+9
-0
src/main/java/im/zhaojun/system/service/CodeService.java
src/main/java/im/zhaojun/system/service/CodeService.java
+12
-0
src/main/java/im/zhaojun/system/service/VideoService.java
src/main/java/im/zhaojun/system/service/VideoService.java
+1
-1
src/main/resources/application.properties
src/main/resources/application.properties
+5
-5
src/main/resources/mapper/CodeMapper.xml
src/main/resources/mapper/CodeMapper.xml
+9
-0
src/main/resources/mapper/VideoMapper.xml
src/main/resources/mapper/VideoMapper.xml
+3
-3
src/main/resources/static/js/jgsbgl/jgsbgl.js
src/main/resources/static/js/jgsbgl/jgsbgl.js
+6
-10
src/main/resources/static/js/sjcx/sjcx.js
src/main/resources/static/js/sjcx/sjcx.js
+124
-41
src/main/resources/static/js/xtgl/sjdj.js
src/main/resources/static/js/xtgl/sjdj.js
+8
-6
src/main/resources/templates/page/jgsbgl.html
src/main/resources/templates/page/jgsbgl.html
+48
-37
src/main/resources/templates/page/jksj.html
src/main/resources/templates/page/jksj.html
+82
-53
src/main/resources/templates/page/sjcx.html
src/main/resources/templates/page/sjcx.html
+25
-28
src/main/resources/templates/page/sjdj.html
src/main/resources/templates/page/sjdj.html
+4
-7
No files found.
src/main/java/im/zhaojun/system/controller/CodeController.java
View file @
9cbf12a7
...
...
@@ -5,6 +5,7 @@ import im.zhaojun.common.annotation.OperationLog;
import
im.zhaojun.common.util.PageResultBean
;
import
im.zhaojun.common.util.ResultBean
;
import
im.zhaojun.system.model.Code
;
import
im.zhaojun.system.model.VideoeRecordType
;
import
im.zhaojun.system.service.CodeService
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -46,6 +47,25 @@ public class CodeController {
int
result
=
codeService
.
updatecode
(
codelist
);
return
ResultBean
.
success
();
}
@OperationLog
(
"新增"
)
@PostMapping
(
"/add"
)
public
ResultBean
add
(
@RequestBody
List
<
Code
>
codelist
)
{
int
result
=
codeService
.
addcode
(
codelist
);
return
ResultBean
.
success
();
}
@OperationLog
(
"新增videoalarm"
)
@PostMapping
(
"/addvideoeRecordType"
)
public
ResultBean
VideoeRecordType
(
@RequestBody
VideoeRecordType
videoeRecordType
)
{
//判断存不存在
int
resultexixsts
=
codeService
.
selectvideoeRecordType
(
videoeRecordType
);
if
(
resultexixsts
>
0
){
return
ResultBean
.
success
(
"1"
);
}
int
result
=
codeService
.
addvideoeRecordType
(
videoeRecordType
);
return
ResultBean
.
success
();
}
@OperationLog
(
"更新用户列表"
)
...
...
src/main/java/im/zhaojun/system/controller/VideoController.java
View file @
9cbf12a7
...
...
@@ -52,9 +52,9 @@ public class VideoController {
@OperationLog
(
"新增监控"
)
@PostMapping
(
"/add"
)
@ResponseBody
public
ResultBean
add
(
Video
video
)
{
video
.
setC
reateTime
(
sdf
.
format
(
new
Date
()));
video
.
set
ModifyTime
(
video
.
getCreateTime
());
public
ResultBean
add
(
Sbtdspsr
video
)
{
video
.
setC
jrq
(
sdf
.
format
(
new
Date
()));
video
.
set
Xgrq
(
video
.
getCjrq
());
return
ResultBean
.
success
(
videoService
.
add
(
video
));
}
...
...
src/main/java/im/zhaojun/system/mapper/CodeMapper.java
View file @
9cbf12a7
package
im
.
zhaojun
.
system
.
mapper
;
import
im.zhaojun.system.model.Code
;
import
im.zhaojun.system.model.VideoeRecordType
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -11,6 +12,7 @@ public interface CodeMapper {
List
<
Code
>
selectAllWithKey
();
int
updatecode
(
@Param
(
value
=
"list"
)
List
<
Code
>
code
);
int
addcode
(
@Param
(
value
=
"list"
)
List
<
Code
>
code
);
int
updatetime
(
@Param
(
value
=
"list"
)
List
<
Code
>
code
);
...
...
@@ -22,4 +24,7 @@ public interface CodeMapper {
Code
selectalarmNum
(
String
keyid
);
int
addvideoeRecordType
(
VideoeRecordType
videoeRecordType
);
int
selectvideoeRecordType
(
VideoeRecordType
videoeRecordType
);
}
\ No newline at end of file
src/main/java/im/zhaojun/system/mapper/VideoMapper.java
View file @
9cbf12a7
...
...
@@ -11,7 +11,7 @@ import java.util.List;
public
interface
VideoMapper
{
List
<
Video
>
selectByMutiParam
(
@Param
(
"deptId"
)
String
deptId
,
@Param
(
"videoName"
)
String
videoName
);
int
insert
(
Video
video
);
int
insert
(
Sbtdspsr
video
);
void
delete
(
String
id
);
void
updateByPrimaryKey
(
Sbtdspsr
video
);
}
\ No newline at end of file
src/main/java/im/zhaojun/system/model/TraffpictureParam.java
View file @
9cbf12a7
...
...
@@ -52,6 +52,7 @@ public class TraffpictureParam extends Traffpicture {
private
Integer
objh
;
private
String
tdmc
;
private
String
xzmc
;
private
String
metatype
;
public
String
getTdmc
()
{
return
tdmc
;
...
...
@@ -270,4 +271,12 @@ public class TraffpictureParam extends Traffpicture {
public
void
setRecordtype
(
String
recordtype
)
{
this
.
recordtype
=
recordtype
;
}
public
String
getMetatype
()
{
return
metatype
;
}
public
void
setMetatype
(
String
metatype
)
{
this
.
metatype
=
metatype
;
}
}
src/main/java/im/zhaojun/system/service/CodeService.java
View file @
9cbf12a7
...
...
@@ -3,6 +3,7 @@ package im.zhaojun.system.service;
import
com.github.pagehelper.PageHelper
;
import
im.zhaojun.system.mapper.CodeMapper
;
import
im.zhaojun.system.model.Code
;
import
im.zhaojun.system.model.VideoeRecordType
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Service
;
...
...
@@ -28,6 +29,10 @@ public class CodeService {
return
codeMapper
.
updatecode
(
code
);
}
public
int
addcode
(
List
<
Code
>
code
){
return
codeMapper
.
addcode
(
code
);
}
public
int
updatetime
(
List
<
Code
>
code
){
return
codeMapper
.
updatetime
(
code
);
...
...
@@ -53,5 +58,12 @@ public class CodeService {
return
codeMapper
.
selectalarmNum
(
keyid
);
}
public
int
addvideoeRecordType
(
VideoeRecordType
code
){
return
codeMapper
.
addvideoeRecordType
(
code
);
}
public
int
selectvideoeRecordType
(
VideoeRecordType
code
){
return
codeMapper
.
selectvideoeRecordType
(
code
);
}
}
\ No newline at end of file
src/main/java/im/zhaojun/system/service/VideoService.java
View file @
9cbf12a7
...
...
@@ -32,7 +32,7 @@ public class VideoService {
}
@Transactional
public
Integer
add
(
Video
video
)
{
public
Integer
add
(
Sbtdspsr
video
)
{
return
videoMapper
.
insert
(
video
);
}
...
...
src/main/resources/application.properties
View file @
9cbf12a7
...
...
@@ -26,18 +26,18 @@ spring.datasource.maxOpenPreparedStatements= 20
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone
=
GMT+8
#
spring.redis.host
=
127.0.0.1
#spring.redis.host=172.16.24.153
#
spring.redis.host=127.0.0.1
spring.redis.host
=
172.16.24.29
spring.redis.port
=
6379
spring.cache.type
=
redis
spring.cache.redis.time-to-live
=
60000
0
spring.cache.redis.time-to-live
=
60000
#spring.redis.password=123456
mybatis.configuration.map-underscore-to-camel-case
=
true
mybatis.mapper-locations
=
classpath:mapper/*.xml
logging.level.im.zhaojun
=
debug
logging.level.org.crazycake.shiro
=
info
#
logging.level.im.zhaojun=debug
#
logging.level.org.crazycake.shiro=info
logging.pattern.console
=
%clr(%d{${LOG_DATEFORMAT_PATTERN:yyyy-MM-dd HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:%5p}) %clr(${PID}){magenta} %clr(---){faint} %clr([%15.15t]){faint} [%15.15X{username}] [%15.15X{ip}] %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}
spring.mvc.throw-exception-if-no-handler-found
=
true
...
...
src/main/resources/mapper/CodeMapper.xml
View file @
9cbf12a7
...
...
@@ -70,5 +70,14 @@
<select
id=
"selectalarmNum"
resultMap=
"BaseResultMap"
>
select * from t_code t where t.type=2 and t.key=#{key,jdbcType=VARCHAR}
</select>
<insert
id=
"addvideoeRecordType"
>
insert videoerecordtype(id,videoid ,recordtype )
select (select count(*)+1 from videoerecordtype),
#{videoid ,jdbcType=VARCHAR},#{recordtype ,jdbcType=VARCHAR} from dual
</insert>
<select
id=
"selectvideoeRecordType"
resultType=
"java.lang.Integer"
>
select count(*) from videoerecordtype t where t.videoid=#{videoid ,jdbcType=VARCHAR} and t.recordtype=#{recordtype ,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapper/VideoMapper.xml
View file @
9cbf12a7
...
...
@@ -57,9 +57,9 @@
</if>
order by sbbh
</select>
<insert
id=
"insert"
parameterType=
"im.zhaojun.system.model.
Video
"
>
insert into
video ( id,video_id, video_name, qybh, qymc, x, y, rtsp, factory, chargeman, chargemanlxdh, create_time, modify_time
)
select
max(decode(id,null,0,id))+1,#{videoId}, #{videoName}, #{qybh,jdbcType=INTEGER},#{qymc}, #{x}, #{y},#{rtsp}, #{factory}, #{chargeman},#{chargemanlxdh},#{createTime} ,#{modifyTime} from video
<insert
id=
"insert"
parameterType=
"im.zhaojun.system.model.
Sbtdspsr
"
>
insert into
sbtdspsr ( xh,sbbh,tdbh, tdmc, xzbh,squrllj, cjrq, xgrq,tdlx
)
select
(select count(*)+1 from sbtdspsr),#{sbbh},#{tdbh},#{tdmc}, #{xzbh}, #{ squrllj},#{cjrq} ,#{xgrq},1 from dual
</insert>
<delete
id=
"delete"
parameterType=
"String"
>
...
...
src/main/resources/static/js/jgsbgl/jgsbgl.js
View file @
9cbf12a7
...
...
@@ -210,20 +210,16 @@ let vue_myjgModal1 = new Vue({
el
:
'
#myjgModal1
'
,
data
:
{
data_s
:
{
videoId
:
''
,
videoName
:
''
,
qybh
:
''
,
qymc
:
''
,
x
:
''
,
y
:
''
,
rtsp
:
''
,
factory
:
''
,
chargeman
:
''
,
chargemanlxdh
:
''
,
sbbh
:
''
,
tdbh
:
''
,
tdmc
:
''
,
squrllj
:
''
,
xzbh
:
''
},
},
methods
:
{
define
:
function
()
{
vue_myjgModal1
.
data_s
.
xzbh
=
vue_myjgModal1
.
data_s
.
qybh
;
$
.
ajax
({
url
:
"
/video/add
"
,
dataType
:
"
json
"
,
...
...
src/main/resources/static/js/sjcx/sjcx.js
View file @
9cbf12a7
...
...
@@ -12,7 +12,7 @@ let vue_sjcx = new Vue({
data_sjlxs1
:
[],
count
:
''
,
deptId
:
getCookie
(
"
bjpt_deptId
"
),
fy_select
:
20
,
fy_select
:
12
,
gd_span
:
''
,
show_nums
:
false
,
state_arr
:
[],
...
...
@@ -126,24 +126,24 @@ let vue_sjcx = new Vue({
//根据type 查询 详情
$
.
ajax
({
url
:
"
/TrafficStatistics/queryTraffDetail/
"
+
item
.
id
+
"
/
"
+
item
.
record
type
,
url
:
"
/TrafficStatistics/queryTraffDetail/
"
+
item
.
id
+
"
/
"
+
item
.
meta
type
,
dateType
:
'
json
'
,
type
:
"
GET
"
,
contentType
:
'
application/json
'
,
success
:
function
(
result
)
{
if
(
result
.
code
==
0
)
{
//获得 json 的值,将详细信息展示在界面上
if
(
item
.
record
type
==
"
3
"
)
{
if
(
item
.
meta
type
==
"
3
"
)
{
vue_sjsstx
.
dataface
=
result
.
data
[
0
];
}
else
if
(
item
.
record
type
==
"
1
"
)
{
else
if
(
item
.
meta
type
==
"
1
"
)
{
vue_sjsstx
.
datapede
=
result
.
data
[
0
];
}
else
if
(
item
.
record
type
==
"
2
"
)
{
else
if
(
item
.
meta
type
==
"
2
"
)
{
vue_sjsstx
.
datatraffic
=
result
.
data
[
0
];
}
else
if
(
item
.
record
type
==
"
4
"
)
{
else
if
(
item
.
meta
type
==
"
4
"
)
{
vue_sjsstx
.
datapeople
=
result
.
data
[
0
];
}
}
...
...
@@ -151,22 +151,39 @@ let vue_sjcx = new Vue({
$
(
"
#myModal
"
).
modal
(
"
show
"
);
}
});
if
(
item
.
img1path
!=
null
)
{
vue_sjsstx
.
img_src_s
=
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img1path
;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img1path
});
if
(
item
.
imagedata
!=
null
&&
item
.
imagedata
!=
''
)
{
if
(
item
.
imagedata
.
indexOf
(
"
ftp:
"
)
>-
1
)
{
vue_sjsstx
.
img_src_s
=
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
imagedata
;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
imagedata
});
}
else
{
vue_sjsstx
.
img_src_s
=
'
data:image/jpg;base64,
'
+
item
.
imagedata
;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
data:image/jpg;base64,
'
+
item
.
imagedata
});
}
}
if
(
item
.
img2path
!=
null
)
{
if
(
item
.
img2path
!=
null
&&
item
.
img2path
!=
''
)
{
if
(
item
.
img2path
.
indexOf
(
"
ftp:
"
)
>-
1
)
{
vue_sjsstx
.
img_src_s
=
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img2path
;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img2path
});
}
if
(
item
.
img3path
!=
null
)
{
}
if
(
item
.
img3path
!=
null
&&
item
.
img3path
!=
''
)
{
if
(
item
.
img3path
.
indexOf
(
"
ftp:
"
)
>-
1
)
{
// vue_sjsstx.img_src_s = '/TrafficStatistics/fielagent?ftpPath=' + item.img3path;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img3path
});
}
if
(
item
.
img4path
!=
null
)
{
}
if
(
item
.
img4path
!=
null
&&
item
.
img4path
!=
''
)
{
if
(
item
.
img4path
.
indexOf
(
"
ftp:
"
)
>-
1
)
{
// vue_sjsstx.img_src_s = '/TrafficStatistics/fielagent?ftpPath=' + item.img4path;
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img4path
});
}
if
(
item
.
img5path
!=
null
)
{
}
if
(
item
.
img5path
!=
null
&&
item
.
img4path
!=
''
)
{
if
(
item
.
img5path
.
indexOf
(
"
ftp:
"
)
>-
1
)
{
vue_sjsstx
.
data_wfsp
.
push
({
src
:
'
/TrafficStatistics/fielagent?ftpPath=
'
+
item
.
img5path
});
}
}
}
,
...
...
@@ -503,10 +520,93 @@ let vue_sjsstx = new Vue({
show_s
:
false
,
img_src_s
:
''
,
video_src
:
''
,
dataface
:
{},
datapede
:
{},
datatraffic
:
{},
datapeople
:
{}
dataface
:
{
gender
:
''
,
age
:
''
,
hasGlasses
:
''
,
hasHat
:
''
,
hasMask
:
''
,
hairstyle
:
''
},
datapede
:
{
gender
:
''
,
age
:
''
,
angle
:
''
,
hasBackPack
:
''
,
hasGlasses
:
''
,
hasCarrybag
:
''
,
hasUmbrella
:
''
,
coatlength
:
''
,
coatcolornums
:
''
,
coatColor
:
''
,
trousersLength
:
''
,
trouserscolornums
:
''
,
trousersColor
:
''
,
hasHat
:
''
,
hasMask
:
''
,
hairStyle
:
''
,
coatTexture
:
''
,
trousersTexture
:
''
,
hasTrolley
:
''
,
hasLuggage
:
''
,
luggagecolornums
:
''
,
luggageColor
:
''
,
hasKnife
:
0
,
},
datatraffic
:
{
vehicleClass
:
''
,
vehiclecolornums
:
''
,
vehicleColor
:
''
,
vehicleBrand
:
''
,
mainbrandname
:
''
,
subbrandname
:
''
,
yearname
:
''
,
hasPlate
:
''
,
plateClass
:
''
,
plateColor
:
''
,
plateNo
:
''
,
plateNeatness
:
''
,
angle
:
''
,
sunvisor
:
''
,
paper
:
''
,
decoration
:
''
,
drop
:
''
,
tag
:
''
,
safetyBelt
:{
mainDriver
:
''
,
coDriver
:
''
},
hasCall
:
''
,
hasCrash
:
''
,
hasDanger
:
''
,
hasSkylight
:
''
,
hasbaggage
:
''
,
hasaerial
:
''
,
},
datapeople
:
{
type
:
''
,
bikeClass
:
''
,
gender
:
''
,
age
:
''
,
angle
:
''
,
hasBackpack
:
''
,
hasGlasses
:
''
,
hasMask
:
''
,
hasCarrybag
:
''
,
hasUmbrella
:
''
,
coatLength
:
''
,
hasPlate
:
''
,
plateNo
:
''
,
hasHelmet
:
''
,
helmetColor
:
''
,
coatcolornums
:
''
,
coatColor
:
''
,
coatTexture
:
''
,
socialAttribute
:
''
,
enterprise
:
''
,
hasPassenger
:
''
,
}
},
methods
:
{
sp_qh
:
function
(
e
)
{
...
...
@@ -796,7 +896,8 @@ $('[data-gallery=manual]').click(function (e) {
new
PhotoViewer
(
items
,
options
);
});
let
d
=
new
Date
().
getTime
();
let
web_ip
=
"
ws:/127.0.0.1:8089/websocket/
"
+
d
;
let
web_ip
=
"
ws:/172.16.24.29:8089/websocket/
"
+
d
;
// let web_ip = "ws:/localhost:8089/websocket/" + d;
let
wss
=
new
WebSocket
(
web_ip
);
wss
.
onopen
=
function
()
{
console
.
log
(
"
连接成功
"
);
...
...
@@ -871,10 +972,8 @@ wss.onmessage = function (evt) {
else
{
data
.
imagedata
=
'
data:image/jpg;base64,
'
+
data
.
imagedata
;
}
}
wfsp
.
push
({
img_src
:
data
.
imagedata
});
//右边消息弹出框的id
let
tss
=
'
a
'
+
data
.
createtime
;
...
...
@@ -989,24 +1088,8 @@ wss.onmessage = function (evt) {
vue_sjcx
.
query
(
1
,
true
);
},
500
);
}
// new NoticeJs({
// text: 'Notification message',
// position: 'bottomRight',
// // id: tss,
// id: 11,
// sjlx: bjlx,
// dwmc: jkmc,
// animation: {
// open: 'animated bounceIn',
// close: 'animated bounceOut'
// }
// }).show();
$
(
"
#myModal_sjcx
"
).
modal
(
"
show
"
);
//播放声音
let
myMp3
=
document
.
getElementById
(
"
audio
"
);
// audio.play();
// }
}
}
\ No newline at end of file
src/main/resources/static/js/xtgl/sjdj.js
View file @
9cbf12a7
...
...
@@ -3,13 +3,15 @@ let vue_sjcx1 = new Vue({
data
:
{
clzt_select
:
''
,
data_sjdj
:
[],
arr_cllx
:
[],
},
methods
:
{
add_sjlx
:
function
()
{
$
(
"
#myModal2
"
).
modal
(
"
show
"
);
vue_sjcx1
.
cxsjlx
();
$
(
"
#dj
"
).
selectpicker
(
'
deselectAll
'
);
$
(
"
#cllxs
"
).
selectpicker
(
'
deselectAll
'
);
vue_sjcx1
.
cxsjlx
();
},
del
:
function
(
item
)
{
let
arr
=
[];
...
...
@@ -63,13 +65,11 @@ let vue_sjcx1 = new Vue({
alarmlevel
:
''
,
},
success
:
function
(
result
)
{
vue_sjdj
.
arr_cllx
=
[];
if
(
result
.
code
==
0
)
{
if
(
result
.
data
.
length
>
0
)
{
vue_sjdj
.
arr_cllx
=
[];
result
.
data
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
alarmlevel
==
null
)
{
vue_sjdj
.
arr_cllx
.
push
({
id
:
item
.
id
,
value
:
item
.
name
});
}
});
setTimeout
(
function
()
{
$
(
"
#cllxs
"
).
selectpicker
(
'
refresh
'
);
...
...
@@ -114,7 +114,7 @@ let vue_sjdj = new Vue({
success
:
function
(
result
)
{
if
(
result
.
code
==
0
)
{
vue_sjcx1
.
query
();
info_new
(
"
事件类型
添加
成功
"
);
info_new
(
"
事件类型
更新
成功
"
);
window
.
setTimeout
(
"
$('#info-warning-new').modal('hide')
"
,
2000
);
$
(
"
#myModal2
"
).
modal
(
"
hide
"
);
}
...
...
@@ -123,6 +123,8 @@ let vue_sjdj = new Vue({
}
},
mounted
(){
}
});
$
(
"
#sjlxsss
"
).
change
(
function
()
{
...
...
src/main/resources/templates/page/jgsbgl.html
View file @
9cbf12a7
...
...
@@ -83,14 +83,15 @@
</div>
</div>
<div
class=
"modal fade"
id=
"myjgModal1"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<div
class=
"modal fade"
id=
"myjgModal1_edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<form
onsubmit=
"return false;"
class=
"form-horizontal"
role=
"form"
>
<div
class=
"modal-dialog"
role=
"document"
style=
"width: 460px;"
>
<div
class=
"modal-content"
style=
"color: #e6eaef;width: 460px;"
>
<div
class=
"modal-header"
style=
"background-color: rgb(48, 53, 72);"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
style=
"color: white;"
>
×
</span></button>
<h6
class=
"modal-title"
>
新增
监控
</h6>
<h6
class=
"modal-title"
>
编辑
监控
</h6>
</div>
<div
class=
"modal-body"
style=
"height:330px;"
>
<table
class=
"table table-td"
>
...
...
@@ -101,29 +102,28 @@
autocomplete=
"off"
required
></td>
</tr>
<tr>
<td>
监控ID:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"`${data_s.sbbh}_${data_s.tdbh}`"
<td>
设备编号:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.sbbh"
autocomplete=
"off"
required
></td>
</tr>
<tr>
<td>
通道编号:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.tdbh"
autocomplete=
"off"
required
></td>
</tr>
<tr>
<td>
RTSP:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.squrllj"
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.squrllj
"
autocomplete=
"off"
required
></td>
</tr>
<!--<tr>-->
<!--<td>所属辖区:</td>-->
<!--<td><input class="easyui-combotree form-control" name="city1" v-model="data_s.qymc"-->
<!--style="width:280px;" disabled/>-->
<!--</td>-->
<!--</tr>-->
<tr><td>
部门:
</td>
<td>
<div
class=
"layui-input-block"
>
<ul
id=
"deptTree"
class=
"dtree"
data-id=
"0"
data-value=
"请选择部门"
></ul>
</div>
<tr>
<td>
所属辖区:
</td>
<td><input
class=
"easyui-combotree form-control"
id=
"department2"
name=
"city1"
v-model=
"data_s.qymc"
style=
"width:280px;"
disabled
/>
</td>
</tr>
</tbody>
</table>
</div>
...
...
@@ -136,29 +136,27 @@
</div>
</form>
</div>
<div
class=
"modal fade"
id=
"myjgModal1
_edit
"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<form
onsubmit=
"return false;"
class=
"form-horizontal"
role=
"form"
>
<div
class=
"modal-dialog"
role=
"document"
style=
"width:
46
0px;"
>
<div
class=
"modal-content"
style=
"color: #e6eaef;width:
46
0px;"
>
<div
class=
"modal fade"
id=
"myjgModal1"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<form
onsubmit=
"return false;"
class=
"form-horizontal"
role=
"form"
onkeydown=
"if(event.keyCode==13){return false;}"
>
<div
class=
"modal-dialog"
role=
"document"
style=
"width:
51
0px;"
>
<div
class=
"modal-content"
style=
"color: #e6eaef;width:
51
0px;"
>
<div
class=
"modal-header"
style=
"background-color: rgb(48, 53, 72);"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
style=
"color: white;"
>
×
</span></button>
<h6
class=
"modal-title"
>
编辑
监控
</h6>
<h6
class=
"modal-title"
>
新增
监控
</h6>
</div>
<div
class=
"modal-body"
style=
"height:3
3
0px;"
>
<div
class=
"modal-body"
style=
"height:3
6
0px;"
>
<table
class=
"table table-td"
>
<tbody>
<tr>
<td>
监控名称:
</td>
<td><input
type=
"text"
name=
"name"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.tdmc"
autocomplete=
"off"
required
></td>
></td>
</tr>
<tr>
<td>
设备
编号:
</td>
<td>
监控
编号:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.sbbh"
autocomplete=
"off"
required
></td>
</tr>
<tr>
<td>
通道编号:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.tdbh"
...
...
@@ -166,18 +164,25 @@
</tr>
<tr>
<td>
RTSP:
</td>
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.squrllj
"
<td><input
type=
"text"
name=
"address"
style=
"width:280px;"
class=
"form-control"
v-model=
"data_s.squrllj"
autocomplete=
"off"
required
></td>
</tr>
<tr>
<td>
所属辖区:
</td>
<td><input
class=
"easyui-combotree form-control"
id=
"department2"
name=
"city1"
v-model=
"data_s.qymc"
style=
"width:280px;"
disabled
/>
</td>
</tr>
</tbody>
<!--<tr>-->
<!--<td>所属辖区:</td>-->
<!--<td><input class="easyui-combotree form-control" name="city1" v-model="data_s.qymc"-->
<!--style="width:280px;" disabled/>-->
<!--</td>-->
<!--</tr>-->
<!--<tr>-->
<!--<td>部门:</td>-->
<!--<td>-->
<!--<div class="layui-input-block">-->
<!--<ul id="deptTree" class="dtree" data-id="0" data-value="请选择部门"></ul>-->
<!--</div>-->
<!--</td>-->
<!--</tr>-->
</table>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-sm"
data-dismiss=
"modal"
style=
"color: #2f2f2f;"
>
关闭
</button>
...
...
@@ -188,6 +193,11 @@
</div>
</form>
</div>
</body>
<script
src=
"../js/jquery-3.1.1.min.js"
></script>
<script
th:src=
"@{/lib/layui/layui.js}"
></script>
...
...
@@ -195,8 +205,9 @@
<script
src=
"../bootstrap/js/bootstrap.js"
></script>
<script
src=
"../bootstrap/js/bootstrap-treeview.js"
></script>
<script
src=
"../bootstrap/js/bootstrap-paginator.js"
></script>
<script
src=
"../js/util/http_util.js"
></script>
<script
src=
"../js/vue.js"
></script>
<script
src=
"../js/util/http_util.js"
></script>
<script
src=
"../js/jgsbgl/jgsbgl.js"
></script>
<script>
...
...
src/main/resources/templates/page/jksj.html
View file @
9cbf12a7
...
...
@@ -8,6 +8,10 @@
<link
rel=
"stylesheet"
th:href=
"@{/css/common.css}"
>
<link
rel=
"stylesheet"
th:href=
"@{/css/animate.min.css}"
>
<link
rel=
"stylesheet"
th:href=
"@{/iconfont/iconfont.css}"
>
<link
rel=
"stylesheet"
href=
"../bootstrap/css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"../bootstrap/css/bootstrap-datetimepicker.css"
>
<link
rel=
"stylesheet"
href=
"../bootstrap/css/bootstrap-treeview.css"
>
<link
rel=
"stylesheet"
href=
"../bootstrap/css/bootstrap-switch.min.css"
>
</head>
<style>
...
...
@@ -57,6 +61,9 @@
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal fade"
id=
"myModal2"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
>
<form
onsubmit=
"return false;"
class=
"form-horizontal"
role=
"form"
onkeydown=
"if(event.keyCode==13){return false;}"
>
<div
class=
"modal-dialog"
role=
"document"
style=
"width: 510px;"
>
...
...
@@ -64,7 +71,7 @@
<div
class=
"modal-header"
style=
"background-color: rgb(48, 53, 72);"
>
<button
type=
"button"
click=
"add_sjlx()"
id=
"add"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
style=
"color: white;"
>
×
</span></button>
<h6
class=
"modal-title"
>
新增
监控
事件
</h6>
<h6
class=
"modal-title"
>
新增事件
</h6>
</div>
<div
class=
"modal-body"
style=
"height:360px;"
>
...
...
@@ -73,22 +80,27 @@
<div
class=
"col-sm-10"
>
<select
class=
"form-control"
id=
"recordtype"
>
<option
th:value=
"1"
>
周界入侵
全目标据结构化
</option>
<option
th:value=
"2"
>
人群密度
行人、骑行、车辆检测识别
</option>
<option
th:value=
"3"
>
周界越线
人脸检测识别
</option>
<option
th:value=
"4"
>
非机动车未戴头盔
<option
th:value=
"4"
>
单独行人、骑行检测识别
</option>
<option
th:value=
"5"
>
非机动车载人
单独车辆检测识别
</option>
<option
th:value=
"6"
>
结构化统计
<option
th:value=
"6"
>
人脸检测识别(不包含大类检测)
</option>
<option
th:value=
"7"
>
行人、骑行、人脸
</option>
</select>
</div>
...
...
@@ -100,13 +112,11 @@
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-sm"
data-dismiss=
"modal"
style=
"color: #2f2f2f;"
>
关闭
</button>
<button
type=
"button submit"
class=
"btn btn-sm btn-info"
style=
"background-color: #368ff3"
@
click=
"define
"
>
确定
<button
type=
"button submit"
class=
"btn btn-sm btn-info"
style=
"background-color: #368ff3"
onclick=
"define()
"
>
确定
</button>
</div>
</div>
</div>
</form>
</div>
<script
type=
"text/html"
id=
"toolbar"
>
<
shiro
:
hasPermission
name
=
"
menu:add
"
>
<
button
type
=
"
button
"
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
add
"
>
...
...
@@ -147,7 +157,7 @@
<script>
var
parentMenuId
=
0
;
var
table
;
// 获取有没有删除, 更新, 和新增的权限.
var
hasMenuDelete
=
false
;
var
hasMenuUpdate
=
false
;
...
...
@@ -168,7 +178,7 @@
}).
use
([
'
jquery
'
,
'
dtree
'
,
'
layer
'
,
'
table
'
,
'
element
'
,
'
tablePlug
'
],
function
()
{
var
dtree
=
layui
.
dtree
;
var
layer
=
layui
.
layer
;
var
table
=
layui
.
table
;
table
=
layui
.
table
;
var
tablePlug
=
layui
.
tablePlug
;
tablePlug
.
smartReload
.
enable
(
true
);
...
...
@@ -331,32 +341,51 @@
function
add
(
parentId
)
{
// vue_sjcx1.cxsjlx();
$
(
"
#myModal2
"
).
modal
(
"
show
"
);
vue_sjcx1
.
cxsjlx
();
}
});
function
define
()
{
if
(
$
(
"
#recordtype
"
).
val
()
==
''
)
{
return
;
}
$
.
ajax
({
url
:
"
/code/updat
e
"
,
url
:
"
/code/addvideoeRecordTyp
e
"
,
dateType
:
'
json
'
,
type
:
"
POST
"
,
contentType
:
'
application/json
'
,
data
:
JSON
.
stringify
(
arr
),
data
:
JSON
.
stringify
({
videoid
:
parentMenuId
,
recordtype
:
$
(
"
#recordtype
"
).
val
()})
,
success
:
function
(
result
)
{
if
(
result
.
code
==
0
)
{
vue_sjcx1
.
query
();
if
(
result
.
code
==
0
&&
result
.
msg
==
'
1
'
)
{
info_new
(
"
事件类型已存在
"
);
return
;
}
if
(
result
.
code
==
0
)
{
info_new
(
"
事件类型添加成功
"
);
window
.
setTimeout
(
"
$('#info-warning-new').modal('hide')
"
,
2000
);
$
(
"
#myModal2
"
).
modal
(
"
hide
"
);
table
.
reload
(
"
menu-table
"
);
}
}
});
}
});
</script>
</body>
<script
src=
"../js/jquery-3.1.1.min.js"
></script>
<!--<script src="../js/viewer.min.js"></script>-->
<script
src=
"../js/util/photoviewer.js"
></script>
<script
src=
"../js/notice.js"
></script>
<script
src=
"../bootstrap/js/bootstrap.js"
></script>
<script
src=
"../bootstrap/js/bootstrap-treeview.js"
></script>
<script
src=
"../bootstrap/js/bootstrap-switch.min.js"
></script>
<script
src=
"../js/echarts.min.js"
></script>
<script
src=
"../js/echarts-liquidfill.min.js"
></script>
<script
src=
"../js/vue.js"
></script>
<script
src=
"../js/util/httputil.js"
></script>
</html>
\ No newline at end of file
src/main/resources/templates/page/sjcx.html
View file @
9cbf12a7
...
...
@@ -407,24 +407,21 @@
<h6
class=
"modal-title"
>
详细信息
</h6>
</div>
<!--<div class="top-video">-->
<!--<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">-->
<!--</div>-->
<!--<div class="pub-div" v-show="!show_s">-->
<!--<div class="div-img" style="width: 100%;">-->
<!--<img v-for="(item,index) in data_wfsp" :src="item.src" @click="click_img_bf(item.src)">-->
<!--</div>-->
<div
class=
"top-video"
>
<img
:src=
"img_src_s"
v-show=
"!show_s"
style=
"width: 100%;height: 100%;cursor: zoom-in;"
data-gallery=
"manual"
>
</div>
<div
class=
"pub-div"
v-show=
"!show_s"
>
<div
class=
"div-img"
style=
"width: 100%;"
>
<img
v-for=
"(item,index) in data_wfsp"
:src=
"item.src"
@
click=
"click_img_bf(item.src)"
>
</div>
<
!--</div>--
>
<
!--<div class="pub-div">--
>
<
!--<button type="button" class="btn btn-sm" v-bind:class=class_s @click="sp_qh(1)">事件图片-->
<
!--</button>--
>
<
!--<button type="button" class="btn btn-sm" v-bind:class=class_s1 @click="sp_qh(2)" v-show="data_sj.videopath==null?false:true">事件视频</button>--
>
<
!--</div>--
>
<
/div
>
<
div
class=
"pub-div"
>
<
button
type=
"button"
class=
"btn btn-sm"
v-bind:class=
class_s
@
click=
"sp_qh(1)"
>
事件图片
<
/button
>
<
button
type=
"button"
class=
"btn btn-sm"
v-bind:class=
class_s1
@
click=
"sp_qh(2)"
v-show=
"data_sj.videopath==null?false:true"
>
事件视频
</button
>
<
/div
>
<div
style=
"color: #5d5d5d;"
class=
"pub-div"
>
<div
class=
"gjlx"
>
...
...
@@ -432,9 +429,9 @@
</div>
<div
class=
"pub-div-span"
v-show=
"dataface!=null && dataface.id!=null"
>
<span>
年龄:
</span>
<span
v-text=
"dataface.age==null?'':dataface.age"
></span>
<span
v-text=
"dataface
==null || dataface
.age==null?'':dataface.age"
></span>
<span
class=
"leftspan"
>
性别:
</span>
<span
v-text=
"dataface.gender"
></span>
<span
v-text=
"dataface
==null || dataface.gender==null?'':dataface
.gender"
></span>
</div>
<div
class=
"pub-div-span"
v-show=
"dataface!=null && dataface.id!=null"
>
<span>
发型:
</span>
...
...
@@ -450,9 +447,9 @@
</div>
<div
class=
"pub-div-span"
v-show=
"datapede!=null && datapede.id!=null"
>
<span>
年龄:
</span>
<span
v-text=
"datapede.age"
></span>
<span
v-text=
"datapede
==null || datapede.age==null?'':datapede
.age"
></span>
<span
class=
"leftspan"
>
性别:
</span>
<span
v-text=
"datapede.gendera==null?'':datapede.gender"
></span>
<span
v-text=
"datapede
==null || datapede
.gendera==null?'':datapede.gender"
></span>
</div>
<div
class=
"pub-div-span"
v-show=
"datapede!=null && datapede.id!=null"
>
<span>
有无帽子:
</span>
...
...
@@ -546,12 +543,12 @@
<span
class=
"leftspan"
>
是否打电话:
</span>
<span
v-text=
"datatraffic.hasCall=='1'?'有':'无'"
></span>
</div>
<
!--<div class="pub-div-span" v-show="datatraffic.id!=null">--
>
<
!--<span>主驾驶员安全带状态:</span>--
>
<
!--<span v-text="datatraffic.safetyBelt.mainDriver=='1'?'有系':'未系'"></span>--
>
<
!--<span>副驾驶员安全带状态:</span>--
>
<
!--<span v-text="datatraffic.safetyBelt.coDriver=='1'?'有系':'未系'"></span>--
>
<
!--</div>--
>
<
div
class=
"pub-div-span"
v-show=
"datatraffic.id!=null"
>
<
span>
主驾驶员安全带状态:
</span
>
<
span
v-text=
"datatraffic.safetyBelt.mainDriver=='1'?'有系':'未系'"
></span
>
<
span>
副驾驶员安全带状态:
</span
>
<
span
v-text=
"datatraffic.safetyBelt.coDriver=='1'?'有系':'未系'"
></span
>
<
/div
>
<div
class=
"pub-div-span"
v-show=
"datatraffic!=null && datatraffic.id!=null"
>
<span>
是否危化车:
</span>
...
...
@@ -569,8 +566,8 @@
</div>
<div
class=
"pub-div-span"
v-show=
"datapeople!=null && datapeople.id!=null"
>
<
span>
有无帽子:
</span
>
<
span
v-text=
"datapeople.hasHat=='1'?'有':'无'"
></span
>
<
!--<span>有无帽子:</span>--
>
<
!--<span v-text="datapeople.hasHat=='1'?'有':'无'"></span>--
>
<span
class=
"leftspan"
>
有无戴口罩:
</span>
<span
v-text=
"datapeople.hasMask=='1'?'有':'无'"
></span>
</div>
...
...
src/main/resources/templates/page/sjdj.html
View file @
9cbf12a7
...
...
@@ -17,7 +17,7 @@
<div
class=
"div-left"
>
<div
class=
"div-right"
>
<div
class=
"div-right-top"
>
<button
type=
"button"
class=
"btn btn-sm pub-btn"
@
click=
"add_sjlx()"
style=
"margin-left: 0px"
>
新增
事件等级
</button>
<button
type=
"button"
class=
"btn btn-sm pub-btn"
@
click=
"add_sjlx()"
style=
"margin-left: 0px"
>
更新
事件等级
</button>
<select
class=
"form-control selectpicker"
v-model=
"clzt_select"
id=
"sjlxsss"
title=
"请选择"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
一级
</option>
...
...
@@ -92,18 +92,15 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
最大值
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
id=
"maxnumvalue"
name=
"maxnumvalue"
v-model=
"item.maxnumvalue==null?'0':item.maxnumvalue"
lay-verify=
"required"
lay-vertype=
"tips"
autocomplete=
"off"
placeholder=
"请输入密度检测最大值"
class=
"layui-input"
>
<input
type=
"text"
id=
"maxnumvalue"
class=
"layui-input"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
告警临界值
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
id=
"alarmnum"
name=
"alarmnum"
v-model=
"item.alarmnum===null?'0':item.alarmnum"
lay-verify=
"required"
lay-vertype=
"tips"
autocomplete=
"off"
placeholder=
"请输入密度检测告警临界值"
class=
"layui-input"
>
<input
type=
"text"
id=
"alarmnum"
name=
"alarmnum"
class=
"layui-input"
>
</div>
</div>
...
...
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