Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
Overview
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
杨亮
hnxtbaboot
Commits
0713ff78
Commit
0713ff78
authored
Nov 12, 2021
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员操作手册修改
parent
02d45c18
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
566 additions
and
227 deletions
+566
-227
src/main/resources/templates/login/fjxz/common_czsm.html
+31
-4
src/main/resources/templates/rygl/addryxx.html
+535
-223
No files found.
src/main/resources/templates/login/fjxz/common_czsm.html
View file @
0713ff78
...
@@ -9,19 +9,46 @@
...
@@ -9,19 +9,46 @@
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.datagrid-header-row
,
.datagrid-row
{
height
:
32px
;
line-height
:
32px
;}
.datagrid-header-row
,
.datagrid-row
{
height
:
32px
;
line-height
:
32px
;}
.datagrid-cell
{
font-size
:
14px
;
font-weight
:
600
;}
.datagrid-cell
{
font-size
:
14px
;
font-weight
:
600
;}
.subgrid
td
{
height
:
30px
;
line-height
:
30px
;}
</style>
</style>
</head>
</head>
<body>
<body>
<div
class=
"fjxz-wrap"
>
<div
class=
"fjxz-wrap"
>
<h2
class=
"fjxz-title"
>
附件下载区
</h2>
<h2
class=
"fjxz-title"
>
附件下载区
</h2>
<table
class=
"easyui-datagrid"
id=
"Table2"
style=
"width:100%;border-top:1px dashed #ccc;"
>
<table
class=
"easyui-datagrid"
id=
"Table"
style=
"width:100%;border-top:1px dashed #ccc;"
>
<thead>
<tr>
<th
data-options=
"field:'icon',align:'center'"
style=
"width:3%;text-align:center;"
></th>
<th
data-options=
"field:'文件名称',align:'left'"
style=
"width:70%;text-align:center;"
>
文件名称
</th>
<th
data-options=
"field:'上传时间',align:'center'"
style=
"width:15%;"
>
上传时间
</th>
<th
data-options=
"field:'文件大小',align:'center'"
style=
"width:6%;"
>
文件大小
</th>
<th
data-options=
"field:'点击下载',align:'center'"
style=
"width:6%;"
>
点击下载
</th>
</tr>
<tr>
<th
data-options=
"field:'icon',align:'center'"
style=
"width:3%;text-align:center;"
><i
class=
'fa fa-file-zip-o color'
></i></th>
<th
data-options=
"field:'文件名称',align:'left'"
style=
"width:70%;text-align:center;"
>
海南人员信息一体化采集管理系统用户使用手册2021V2.1
</th>
<th
data-options=
"field:'上传时间',align:'center'"
style=
"width:15%;"
>
2021-01-27 18:58
</th>
<th
data-options=
"field:'文件大小',align:'center'"
style=
"width:6%;"
>
6M
</th>
<th
data-options=
"field:'点击下载',align:'center'"
style=
"width:6%;"
><a
href=
'/download/海南人员信息一体化采集管理系统用户使用手册2021V2.1.pdf'
><i
class=
'fa fa-download color2'
></i></a></th>
</tr>
<tr>
<th
data-options=
"field:'icon',align:'center'"
style=
"width:3%;text-align:center;"
><i
class=
'fa fa-file-zip-o color'
></i></th>
<th
data-options=
"field:'文件名称',align:'left'"
style=
"width:70%;text-align:center;"
>
信息采集常见问题处理方法
</th>
<th
data-options=
"field:'上传时间',align:'center'"
style=
"width:15%;"
>
2021-01-27 19:12
</th>
<th
data-options=
"field:'文件大小',align:'center'"
style=
"width:6%;"
>
270K
</th>
<th
data-options=
"field:'点击下载',align:'center'"
style=
"width:6%;"
><a
href=
'/download/信息采集常见问题处理方法20210123.pdf'
><i
class=
'fa fa-download color2'
></i></a></th>
</tr>
<tr>
<th
data-options=
"field:'icon',align:'center'"
style=
"width:3%;text-align:center;"
><i
class=
'fa fa-file-zip-o color'
></i></th>
<th
data-options=
"field:'文件名称',align:'left'"
style=
"width:70%;text-align:center;"
>
眼神科技虹膜采集SDK安装文件
</th>
<th
data-options=
"field:'上传时间',align:'center'"
style=
"width:15%;"
>
2020-01-11 12:00
</th>
<th
data-options=
"field:'文件大小',align:'center'"
style=
"width:6%;"
>
37M
</th>
<th
data-options=
"field:'点击下载',align:'center'"
style=
"width:6%;"
><a
href=
'/download/Windows_standard_sdk_SDK_DEV_X32_websocket_V4.5.6.V_CN_GA.exe'
><i
class=
'fa fa-download color2'
></i></a></th>
</tr>
</thead>
</table>
</table>
</div>
</div>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/jquery-1.11.3.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/jquery-1.11.3.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/datagrid-detailview.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/js/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/addData.js"
></script>
<script
type=
"text/javascript"
src=
"static/login/fjxz/addData.js"
></script>
...
...
src/main/resources/templates/rygl/addryxx.html
View file @
0713ff78
<!DOCTYPE html>
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.bg
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
left
:
0px
;
z-index
:
-1
;}
.bg
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
left
:
0px
;
z-index
:
-1
;}
.content
{
width
:
1000px
;
height
:
auto
;
position
:
absolute
;
left
:
50%
;
margin-left
:
-500px
;}
.content
{
width
:
1000px
;
height
:
auto
;
position
:
absolute
;
left
:
50%
;
margin-left
:
-500px
;}
.foot
{
width
:
7%
;
margin-left
:
46.5
%
;
height
:
90px
;
background
:
url(static/xtba/ythcj/img/foot-bg.png)
;
position
:
fixed
;
bottom
:
0px
;
text-align
:
center
;
line-height
:
90px
;
z-index
:
8888
;}
.foot
{
width
:
100
%
;
height
:
90px
;
background
:
url(static/xtba/ythcj/img/foot-bg.png)
;
position
:
fixed
;
bottom
:
0px
;
text-align
:
center
;
line-height
:
90px
;
z-index
:
8888
;}
.logo
{
width
:
110px
;}
.logo
{
width
:
110px
;}
.dv
{
overflow
:
inherit
}
.dv
{
overflow
:
inherit
}
.title
{
.title
{
...
@@ -116,6 +116,8 @@
...
@@ -116,6 +116,8 @@
#preview21
{
width
:
400px
;
height
:
400px
;}
#preview21
{
width
:
400px
;
height
:
400px
;}
#preview22
{
width
:
400px
;
height
:
400px
;}
#preview22
{
width
:
400px
;
height
:
400px
;}
#preview31
{
width
:
400px
;
height
:
400px
;}
#preview31
{
width
:
400px
;
height
:
400px
;}
#preview32
{
width
:
400px
;
height
:
400px
;}
#preview41
{
width
:
400px
;
height
:
400px
;}
#preview42
{
width
:
400px
;
height
:
400px
;}
#preview42
{
width
:
400px
;
height
:
400px
;}
#preview1
img
{
width
:
185px
;
height
:
230px
;}
#preview1
img
{
width
:
185px
;
height
:
230px
;}
...
@@ -128,6 +130,8 @@
...
@@ -128,6 +130,8 @@
#preview22
img
{
width
:
400px
;
height
:
400px
;}
#preview22
img
{
width
:
400px
;
height
:
400px
;}
#preview31
img
{
width
:
400px
;
height
:
400px
;}
#preview31
img
{
width
:
400px
;
height
:
400px
;}
#preview32
img
{
width
:
400px
;
height
:
400px
;}
#preview32
img
{
width
:
400px
;
height
:
400px
;}
#preview41
img
{
width
:
400px
;
height
:
400px
;}
#preview42
img
{
width
:
400px
;
height
:
400px
;}
input
{
padding
:
5px
!important
;}
input
{
padding
:
5px
!important
;}
.form-control
{
height
:
32px
!important
;}
.form-control
{
height
:
32px
!important
;}
...
@@ -212,12 +216,15 @@
...
@@ -212,12 +216,15 @@
.zjimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.zjimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.hmimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.hmimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.tstzimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.tstzimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.bjimg
{
position
:
absolute
;
margin-right
:
17px
;
right
:
17px
;
font-size
:
29px
;
color
:
#2F6FA6
;
cursor
:
pointer
;}
.img-one
{
float
:
left
;
margin
:
20px
29px
;}
.img-one
{
float
:
left
;
margin
:
20px
29px
;}
#ryzjxx
{
overflow
:
hidden
;}
#ryzjxx
{
overflow
:
hidden
;}
#ryhmxx
{
overflow
:
hidden
;}
#ryhmxx
{
overflow
:
hidden
;}
#tstzxx
{
overflow
:
hidden
;}
#tstzxx
{
overflow
:
hidden
;}
#rybjxx
{
overflow
:
hidden
;}
.zj
{
width
:
185px
;
height
:
230px
;}
.zj
{
width
:
185px
;
height
:
230px
;}
.hm
{
width
:
400px
;
height
:
400px
;}
.hm
{
width
:
400px
;
height
:
400px
;}
.bj
{
width
:
400px
;
height
:
400px
;}
</style>
</style>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
...
@@ -296,7 +303,6 @@
...
@@ -296,7 +303,6 @@
var
clentip
=
$
(
"#clentip"
).
val
();
var
clentip
=
$
(
"#clentip"
).
val
();
sbqxyz
(
clentip
,
""
);
sbqxyz
(
clentip
,
""
);
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
username
=
$
(
"#username"
).
val
();
var
cjsb
=
$
(
"#cjsb"
).
val
();
var
cjsb
=
$
(
"#cjsb"
).
val
();
if
(
unitcode
.
substring
(
0
,
2
)
==
"14"
){
if
(
unitcode
.
substring
(
0
,
2
)
==
"14"
){
if
(
cjsb
.
indexOf
(
"SJ"
)
<
0
){
if
(
cjsb
.
indexOf
(
"SJ"
)
<
0
){
...
@@ -319,6 +325,7 @@
...
@@ -319,6 +325,7 @@
}
}
$
(
'#sgtz'
).
css
(
'display'
,
'none'
);
$
(
'#sgtz'
).
css
(
'display'
,
'none'
);
}
}
var
username
=
$
(
"#username"
).
val
();
if
(
username
==
"admin"
)
{
if
(
username
==
"admin"
)
{
$
(
'#zwksm'
).
css
(
'display'
,
'block'
);
$
(
'#zwksm'
).
css
(
'display'
,
'block'
);
}
}
...
@@ -370,6 +377,115 @@
...
@@ -370,6 +377,115 @@
document
.
frminput
.
submit
();
document
.
frminput
.
submit
();
}
}
function
getTaryxx
()
{
//初始化同案人员信息
$
.
ajax
({
url
:
"/getTaryxx?rybh="
,
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxxs
;
if
(
ryxx
.
length
>
0
){
var
htmlStr
=
"<option value=''>----------- 请 选 择 ----------</option>"
;
for
(
var
num
=
0
;
num
<
ryxx
.
length
;
num
++
){
var
ry
=
ryxx
[
num
];
htmlStr
+=
"<option value='"
+
ry
.
rybh
+
"'>姓名:"
+
ry
.
xm
+
" 身份证号:"
+
ry
.
gmsfhm
+
"</option>"
;
}
$
(
"#tary1"
).
html
(
htmlStr
);
$
(
"#tary2"
).
html
(
htmlStr
);
$
(
"#tary3"
).
html
(
htmlStr
);
if
(
$
(
"#taryStr1"
).
val
()
!=
null
&&
$
(
"#taryStr1"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr1"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary1"
).
append
(
"<option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary1"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
1
);
}
});
}
if
(
$
(
"#taryStr2"
).
val
()
!=
null
&&
$
(
"#taryStr2"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr2"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary2"
).
append
(
"<option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary2"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
1
);
addTaryxx
(
2
);
}
});
}
if
(
$
(
"#taryStr3"
).
val
()
!=
null
&&
$
(
"#taryStr3"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr3"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary3"
).
append
(
"<option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary3"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
2
);
}
});
}
}
else
{
if
(
$
(
"#taryStr1"
).
val
()
!=
null
&&
$
(
"#taryStr1"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr1"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary1"
).
html
(
"<option value=''>----------- 请 选 择 ----------</option><option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary1"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
1
);
}
});
}
if
(
$
(
"#taryStr2"
).
val
()
!=
null
&&
$
(
"#taryStr2"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr2"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary2"
).
html
(
"<option value=''>----------- 请 选 择 ----------</option><option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary2"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
1
);
addTaryxx
(
2
);
}
});
}
if
(
$
(
"#taryStr3"
).
val
()
!=
null
&&
$
(
"#taryStr3"
).
val
()
!=
""
){
$
.
ajax
({
url
:
"/getTaryxx?rybh="
+
$
(
"#taryStr3"
).
val
(),
type
:
"POST"
,
success
:
function
(
data
){
var
ryxx
=
data
.
ryxx
;
$
(
"#tary3"
).
html
(
"<option value=''>----------- 请 选 择 ----------</option><option value='"
+
ryxx
.
rybh
+
"'>姓名:"
+
ryxx
.
xm
+
" 身份证号:"
+
ryxx
.
gmsfhm
+
"</option>"
);
$
(
"#tary3"
).
val
(
ryxx
.
rybh
);
addTaryxx
(
2
);
}
});
}
}
}
});
}
function
addrz
(
yhdwdm
,
rzsjstr
,
yhxm
,
rznr
){
$
.
ajax
({
url
:
"doAddsysLogs"
,
data
:{
"yhdwdm"
:
yhdwdm
,
"rzsjStr"
:
rzsjstr
,
"yhxm"
:
yhxm
,
"rznr"
:
rznr
},
type
:
"post"
,
dataType
:
"json"
,
async
:
false
,
success
:
function
(
data
){
}
});
}
function
addRyzpimg
()
{
//初始化数据
function
addRyzpimg
()
{
//初始化数据
var
FileReader
=
window
.
FileReader
;
var
FileReader
=
window
.
FileReader
;
if
(
FileReader
)
{
//chrome浏览器处理
if
(
FileReader
)
{
//chrome浏览器处理
...
@@ -420,6 +536,16 @@
...
@@ -420,6 +536,16 @@
if
(
tstz2Base64
!=
null
&&
tstz2Base64
!=
""
){
if
(
tstz2Base64
!=
null
&&
tstz2Base64
!=
""
){
$
(
"#imghead32"
).
attr
(
"src"
,
"data:image/jpg;base64,"
+
tstz2Base64
);
$
(
"#imghead32"
).
attr
(
"src"
,
"data:image/jpg;base64,"
+
tstz2Base64
);
}
}
var
bj1Base64
=
$
(
"#bj1Base64"
).
val
();
if
(
bj1Base64
!=
null
&&
bj1Base64
!=
""
){
$
(
"#imghead41"
).
attr
(
"src"
,
"data:image/jpg;base64,"
+
bj1Base64
);
$
(
"#bjifcj"
).
attr
(
"src"
,
"/static/rygl/img/yes.png"
);
}
var
bj2Base64
=
$
(
"#bj2Base64"
).
val
();
if
(
bj2Base64
!=
null
&&
bj2Base64
!=
""
){
$
(
"#imghead42"
).
attr
(
"src"
,
"data:image/jpg;base64,"
+
bj2Base64
);
$
(
"#bjifcj"
).
attr
(
"src"
,
"/static/rygl/img/yes.png"
);
}
}
else
{
//IE等其他浏览器处理
}
else
{
//IE等其他浏览器处理
var
edzzplj
=
$
(
"#edzzplj"
).
val
();
var
edzzplj
=
$
(
"#edzzplj"
).
val
();
if
(
edzzplj
!=
null
&&
edzzplj
!=
""
){
if
(
edzzplj
!=
null
&&
edzzplj
!=
""
){
...
@@ -511,6 +637,19 @@
...
@@ -511,6 +637,19 @@
$
(
"#rqttzms"
).
val
(
$
(
"#rqttzmsStr"
).
val
());
$
(
"#rqttzms"
).
val
(
$
(
"#rqttzmsStr"
).
val
());
$
(
"#zjlxdm"
).
combobox
(
"setValue"
,
$
(
"#zjlxdmStr"
).
val
());
$
(
"#zjlxdm"
).
combobox
(
"setValue"
,
$
(
"#zjlxdmStr"
).
val
());
if
(
$
(
"#gxrlxdmStr1"
).
val
()
!=
null
&&
$
(
"#gxrlxdmStr1"
).
val
()
!=
""
)
{
$
(
"#gxrlxdm1"
).
combobox
(
"setValue"
,
$
(
"#gxrlxdmStr1"
).
val
());
addGxrxx
(
1
);
}
if
(
$
(
"#gxrlxdmStr2"
).
val
()
!=
null
&&
$
(
"#gxrlxdmStr2"
).
val
()
!=
""
){
$
(
"#gxrlxdm2"
).
combobox
(
"setValue"
,
$
(
"#gxrlxdmStr2"
).
val
());
addGxrxx
(
1
);
addGxrxx
(
2
);
}
if
(
$
(
"#gxrlxdmStr3"
).
val
()
!=
null
&&
$
(
"#gxrlxdmStr3"
).
val
()
!=
""
)
{
$
(
"#gxrlxdm3"
).
combobox
(
"setValue"
,
$
(
"#gxrlxdmStr3"
).
val
());
addGxrxx
(
2
);
}
$
(
"#xdhwdm"
).
combobox
(
"setValue"
,
$
(
"#xdhwdmStr"
).
val
());
$
(
"#xdhwdm"
).
combobox
(
"setValue"
,
$
(
"#xdhwdmStr"
).
val
());
$
(
"#xydm"
).
combobox
(
"setValue"
,
$
(
"#xydmStr"
).
val
());
$
(
"#xydm"
).
combobox
(
"setValue"
,
$
(
"#xydmStr"
).
val
());
$
(
"#dnayblxdm"
).
combobox
(
"setValue"
,
$
(
"#dnayblxdmStr"
).
val
());
$
(
"#dnayblxdm"
).
combobox
(
"setValue"
,
$
(
"#dnayblxdmStr"
).
val
());
...
@@ -584,6 +723,7 @@
...
@@ -584,6 +723,7 @@
codeVal
=
codeFormatter
(
$
(
"#zwcjdwdmStr"
).
val
(),
"CODE_UNIT"
);
codeVal
=
codeFormatter
(
$
(
"#zwcjdwdmStr"
).
val
(),
"CODE_UNIT"
);
$
(
"#zwcjdwdm"
).
val
(
codeVal
);
$
(
"#zwcjdwdm"
).
val
(
codeVal
);
addRyzpimg
();
addRyzpimg
();
getTaryxx
();
if
(
$
(
"#szzwbh"
).
val
()
!=
null
&&
$
(
"#szzwbh"
).
val
()
!=
""
){
if
(
$
(
"#szzwbh"
).
val
()
!=
null
&&
$
(
"#szzwbh"
).
val
()
!=
""
){
$
(
"#zwifcj"
).
attr
(
"src"
,
"/static/rygl/img/yes.png"
);
$
(
"#zwifcj"
).
attr
(
"src"
,
"/static/rygl/img/yes.png"
);
...
@@ -1173,6 +1313,7 @@
...
@@ -1173,6 +1313,7 @@
*/
*/
window
.
open
(
"openIE:http://172.31.5.115:7881/AMSIS/scan/scan_person.jsp?MODEL=TMFYseparatortypeflag=editseparatorBARCODE=4601000000002021040002separatorTDTXT=-separatorrandom=92"
);
window
.
open
(
"openIE:http://172.31.5.115:7881/AMSIS/scan/scan_person.jsp?MODEL=TMFYseparatortypeflag=editseparatorBARCODE=4601000000002021040002separatorTDTXT=-separatorrandom=92"
);
}
}
function
rxbc
(){
function
rxbc
(){
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
...
@@ -1183,6 +1324,7 @@
...
@@ -1183,6 +1324,7 @@
}
}
});
});
}
}
//----------------------------------------验证
//----------------------------------------验证
function
checkZwClient
(){
function
checkZwClient
(){
var
strxml
;
var
strxml
;
...
@@ -1465,7 +1607,71 @@
...
@@ -1465,7 +1607,71 @@
//笔迹采集
function
bjcj
(
num
){
var
unitcode
=
$
(
"#unitcode"
).
val
();
debugger
;
/*
//window.open("/toBjcj?rybh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#gmsfhm").val());
var dialogId='w';
openUrlForm({
id:dialogId,
url:'toBjcj',
title:'笔迹采集',
width:950,
height:500,
cache:false
},[
{
text:'关闭',
handler:function(){
$('#w').dialog('close');
$(document).unbind("scroll");
}
}
])
*/
//if(unitcode.substr(0,2)=="46"){
if
(
$
(
"#openbj"
).
hasClass
(
"fa-angle-double-down"
)){
$
(
"#rybjxx"
).
slideDown
();
$
(
"#openbj"
).
removeClass
(
"fa-angle-double-down"
).
addClass
(
"fa-angle-double-up"
);
}
var
$loutitop
=
$
(
'#rybjxx'
).
offset
().
top
;
//获取每个楼梯的offsetTop值
$
(
'html,body'
).
animate
({
//$('html,body')兼容问题body属于chrome
scrollTop
:
$loutitop
})
document
.
querySelector
(
"#rybjxx"
).
scrollIntoView
();
$
(
"#rybjxx"
)[
0
].
scrollIntoView
();
//}else{
// window.open("/toZjCj?rybh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#gmsfhm").val());
//}
}
function
addGxrxx
(
num
){
var
tdid
=
"gxr"
+
(
num
+
1
);
$
(
"#"
+
tdid
+
"1"
).
show
();
$
(
"#"
+
tdid
+
"2"
).
show
();
$
(
"#"
+
tdid
+
"3"
).
show
();
$
(
"#gxrbut"
+
num
).
hide
();
}
function
addTaryxx
(
num
){
var
tdid
=
"tary"
+
(
num
+
1
);
$
(
"#"
+
tdid
+
"1"
).
show
();
$
(
"#"
+
tdid
+
"2"
).
show
();
$
(
"#tarybut"
+
num
).
hide
();
}
function
swcj
(){
function
swcj
(){
var
rybh
=
$
(
"#rybh"
).
val
();
if
(
rybh
==
null
||
rybh
==
''
){
$
.
messager
.
alert
(
'提示'
,
"请先点击页面的下方的保存信息按钮,人员信息保存完成后再进行采集操作!"
);
return
;
}
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
xb
=
$
(
"#xbdm"
).
combobox
(
"getValue"
);
var
xb
=
$
(
"#xbdm"
).
combobox
(
"getValue"
);
if
(
xb
==
"1"
){
if
(
xb
==
"1"
){
...
@@ -1474,8 +1680,7 @@
...
@@ -1474,8 +1680,7 @@
xb
=
"FC1DAB49-A744-4C75-854C-9BA3D42E3AB5"
;
xb
=
"FC1DAB49-A744-4C75-854C-9BA3D42E3AB5"
;
}
else
{
}
else
{
xb
=
"D07C0BF3-C7B5-41A3-A5D4-0356C0EDEC2D"
;
xb
=
"D07C0BF3-C7B5-41A3-A5D4-0356C0EDEC2D"
;
}
}
if
(
unitcode
.
substr
(
0
,
2
)
==
"46"
){
if
(
unitcode
.
substr
(
0
,
2
)
==
"43"
){
var
csrq
=
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
);
var
csrq
=
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
);
if
(
ifsw
==
1
){
if
(
ifsw
==
1
){
var
obj3
=
"audio-capture://{
\"
personNo
\"
:
\"
"
+
$
(
"#rybh"
).
val
()
+
"
\"
,
\"
personName
\"
:
\"
"
+
$
(
"#xm"
).
val
()
+
"
\"
,
\"
cardTypeNo
\"
:
\"
111
\"
,
\"
cardNum
\"
:
\"
"
+
$
(
"#gmsfhm"
).
val
()
+
"
\"
,"
+
var
obj3
=
"audio-capture://{
\"
personNo
\"
:
\"
"
+
$
(
"#rybh"
).
val
()
+
"
\"
,
\"
personName
\"
:
\"
"
+
$
(
"#xm"
).
val
()
+
"
\"
,
\"
cardTypeNo
\"
:
\"
111
\"
,
\"
cardNum
\"
:
\"
"
+
$
(
"#gmsfhm"
).
val
()
+
"
\"
,"
+
...
@@ -1511,24 +1716,17 @@
...
@@ -1511,24 +1716,17 @@
caseInfo
:
{},
caseInfo
:
{},
},
},
other
:
{
other
:
{
uploadUrl
:
"http://127.0.0.1:9200/getSwSjXx"
,
uploadUrl
:
"http://10.184.14.133:9200/getSwSjXx"
,
//uploadUrl: "http://65.26.10.49:4302/getSwSjXx",
},
},
};
};
window
.
location
.
href
=
encodeURI
(
`audio-capture://
${
JSON
.
stringify
(
obj
)}
`
);
window
.
location
.
href
=
encodeURI
(
`audio-capture://
${
JSON
.
stringify
(
obj
)}
`
);
}
else
{
}
else
{
var
obj3
=
"audio-capture://{
\"
personNo
\"
:
\"
"
+
$
(
"#rybh"
).
val
()
+
"
\"
,
\"
personName
\"
:
\"
"
+
$
(
"#xm"
).
val
()
+
"
\"
,
\"
cardTypeNo
\"
:
\"
111
\"
,
\"
cardNum
\"
:
\"
"
+
$
(
"#gmsfhm"
).
val
()
+
"
\"
,"
+
"
\"
birthday
\"
:
\"
"
+
csrq
+
"
\"
,
\"
nationalityNo
\"
:
\"
CHN
\"
,
\"
sexNo
\"
:
\"
"
+
$
(
"#xbdm"
).
combobox
(
"getValue"
)
+
"
\"
,
\"
ethnicNo
\"
:
\"
"
+
$
(
"#mzdm"
).
combobox
(
"getValue"
)
+
"
\"
,
\"
schoolingNo
\"
:
\"
"
+
$
(
"#xldm"
).
combobox
(
"getValue"
)
+
"
\"
,"
+
"
\"
phoneNum
\"
:
\"
"
+
$
(
"#lxdm"
).
val
()
+
"
\"
,
\"
birthAddrNo
\"
:
\"
"
+
$
(
"#hjdzXzqhdm"
).
combobox
(
"getValue"
)
+
"
\"
,
\"
residenceAddr
\"
:
\"
"
+
$
(
"#xzzDzmc"
).
val
()
+
"
\"
,
\"
hometownAddr
\"
:
\"
"
+
$
(
"#hjdzDzmc"
).
val
()
+
"
\"
,"
+
"
\"
caseTypeNo
\"
:
\"
"
+
$
(
"#ajlbdm"
).
combobox
(
"getValue"
)
+
"
\"
,
\"
personTypeNo
\"
:
\"\"
,
\"
remark
\"
:null,
\"
collectorName
\"
:
\"
"
+
$
(
"#truename"
).
val
()
+
"
\"
}"
;
//alert(obj3);
window
.
location
.
href
=
encodeURI
(
obj3
);
}
}
else
{
//$("#swifcj").attr("src","/static/rygl/img/yes.png");
window
.
open
(
"https://10.184.14.133/toswcj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
(),
'newwindow'
,
'height=600,width=450,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'
)
window
.
open
(
"https://10.184.14.133/toswcj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
(),
'newwindow'
,
'height=600,width=450,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'
)
return
;
return
;
}
}
}
else
{
$
(
"#swifcj"
).
attr
(
"src"
,
"/static/rygl/img/yes.png"
);
}
}
}
...
@@ -1540,7 +1738,7 @@
...
@@ -1540,7 +1738,7 @@
function
zjcj
(
num
){
function
zjcj
(
num
){
var
unitcode
=
$
(
"#unitcode"
).
val
();
var
unitcode
=
$
(
"#unitcode"
).
val
();
debugger
;
debugger
;
if
(
unitcode
.
substr
(
0
,
2
)
==
"46"
||
unitcode
.
substr
(
0
,
2
)
==
"15"
){
if
(
ifzj
==
2
){
if
(
$
(
"#openzj"
).
hasClass
(
"fa-angle-double-down"
)){
if
(
$
(
"#openzj"
).
hasClass
(
"fa-angle-double-down"
)){
$
(
"#ryzjxx"
).
slideDown
();
$
(
"#ryzjxx"
).
slideDown
();
$
(
"#openzj"
).
removeClass
(
"fa-angle-double-down"
).
addClass
(
"fa-angle-double-up"
);
$
(
"#openzj"
).
removeClass
(
"fa-angle-double-down"
).
addClass
(
"fa-angle-double-up"
);
...
@@ -1553,10 +1751,10 @@
...
@@ -1553,10 +1751,10 @@
})
})
document
.
querySelector
(
"#ryzjxx"
).
scrollIntoView
();
document
.
querySelector
(
"#ryzjxx"
).
scrollIntoView
();
$
(
"#ryzjxx"
)[
0
].
scrollIntoView
();
$
(
"#ryzjxx"
)[
0
].
scrollIntoView
();
}
else
{
}
else
{
window
.
open
(
"/toZjCj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
window
.
open
(
"/toZjCj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
}
}
/*
/*
if (num == 0) {
if (num == 0) {
alert( "进行左足采集!");
alert( "进行左足采集!");
...
@@ -1607,7 +1805,6 @@
...
@@ -1607,7 +1805,6 @@
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
"/sendHmxxToHongba"
,
url
:
"/sendHmxxToHongba"
,
//url: "/sendHmxxToYanShen",
data
:
{
"asjxgrybh"
:
$
(
"#rybh"
).
val
()},
data
:
{
"asjxgrybh"
:
$
(
"#rybh"
).
val
()},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
...
@@ -1675,12 +1872,13 @@
...
@@ -1675,12 +1872,13 @@
])
])
}
else
{
}
else
{
kg
=
num
;
//
kg=num;
//tozjcj();
//tozjcj();
ws
.
send
(
"{
\"
isSole
\"
:0,
\"
index
\"
:"
+
kg
+
"}"
);
//ws.send("{\"isSole\":0,\"index\":" + kg + "}");
window
.
open
(
"/toZjCj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
}
}
}
}
/*
/*
function tozjcj(){
function tozjcj(){
ws = new WebSocket("ws://127.0.0.1:8980/FC4");
ws = new WebSocket("ws://127.0.0.1:8980/FC4");
ws.onopen = function(e) {
ws.onopen = function(e) {
...
@@ -1733,7 +1931,7 @@
...
@@ -1733,7 +1931,7 @@
}
}
}
}
}
}
*/
*/
//初始化websocket
//初始化websocket
function
initWS
()
{
function
initWS
()
{
ws
=
new
WebSocket
(
"ws://127.0.0.1:49000"
);
ws
=
new
WebSocket
(
"ws://127.0.0.1:49000"
);
...
@@ -1811,10 +2009,11 @@
...
@@ -1811,10 +2009,11 @@
//虹膜采集
//虹膜采集
function
hmcj
(){
function
hmcj
(){
if
(
!
$
(
"#rybh"
).
val
()){
var
rybh
=
$
(
"#rybh"
).
val
();
layer
.
alert
(
"人员编号不能为空!"
)
if
(
rybh
==
null
||
rybh
==
''
){
$
.
messager
.
alert
(
'提示'
,
"请先点击页面的下方的保存信息按钮,人员信息保存完成后再进行虹膜采集操作!"
);
return
;
return
;
}
}
;
if
(
!
$
(
"#xm"
).
val
()){
if
(
!
$
(
"#xm"
).
val
()){
layer
.
alert
(
"请输入人员姓名!"
)
layer
.
alert
(
"请输入人员姓名!"
)
return
;
return
;
...
@@ -1823,10 +2022,11 @@
...
@@ -1823,10 +2022,11 @@
layer
.
alert
(
"请输入身份证号!"
)
layer
.
alert
(
"请输入身份证号!"
)
return
;
return
;
}
}
if
(
ifzj
==
2
)
{
//alert("--------------"+ifhm);
if
(
ifhm
==
2
)
{
var
obj
=
{};
var
obj
=
{};
obj
[
"appID"
]
=
"H
u
NSDK"
;
obj
[
"appID"
]
=
"H
ai
NSDK"
;
obj
[
"appPWD"
]
=
"H
u
NSDK12345"
;
obj
[
"appPWD"
]
=
"H
ai
NSDK12345"
;
obj
[
"user_id"
]
=
$
(
"#identitycard"
).
val
();
obj
[
"user_id"
]
=
$
(
"#identitycard"
).
val
();
obj
[
"user_deptname"
]
=
$
(
"#unitname"
).
val
();
obj
[
"user_deptname"
]
=
$
(
"#unitname"
).
val
();
obj
[
"stName"
]
=
""
;
obj
[
"stName"
]
=
""
;
...
@@ -1840,7 +2040,7 @@
...
@@ -1840,7 +2040,7 @@
obj
[
"bcjr_xb"
]
=
$
(
"#xbdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_xb"
]
=
$
(
"#xbdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_mz"
]
=
$
(
"#mzdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_mz"
]
=
$
(
"#mzdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_gj"
]
=
$
(
"#gjdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_gj"
]
=
$
(
"#gjdm"
).
combobox
(
"getValue"
);
obj
[
"bcjr_csrq"
]
=
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
);
obj
[
"bcjr_csrq"
]
=
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
10
);
obj
[
"bcjr_zjlxdm"
]
=
"111"
;
obj
[
"bcjr_zjlxdm"
]
=
"111"
;
obj
[
"bcjr_zjhm"
]
=
$
(
"#gmsfhm"
).
val
();
obj
[
"bcjr_zjhm"
]
=
$
(
"#gmsfhm"
).
val
();
obj
[
"bcjr_zjqfjg"
]
=
""
;
obj
[
"bcjr_zjqfjg"
]
=
""
;
...
@@ -1853,13 +2053,32 @@
...
@@ -1853,13 +2053,32 @@
obj
[
"lrbz"
]
=
"2"
;
obj
[
"lrbz"
]
=
"2"
;
obj
[
"bcjr_rylb"
]
=
"003"
;
obj
[
"bcjr_rylb"
]
=
"003"
;
obj
[
"cjbz"
]
=
""
;
obj
[
"cjbz"
]
=
""
;
obj
[
"cjbh"
]
=
$
(
"#rybh"
).
val
()
;
obj
[
"cjbh"
]
=
""
;
obj
[
"cjr_xm"
]
=
$
(
"#truename"
).
val
();
obj
[
"cjr_xm"
]
=
$
(
"#truename"
).
val
();
obj
[
"cjr_gmsfhm"
]
=
$
(
"#identitycard"
).
val
();
obj
[
"cjr_gmsfhm"
]
=
$
(
"#identitycard"
).
val
();
var
json
=
JSON
.
stringify
(
obj
);
//JSON.stringify() 方法用于将 JavaScript 值转换为 JSON 字符串。
var
json
=
JSON
.
stringify
(
obj
);
//JSON.stringify() 方法用于将 JavaScript 值转换为 JSON 字符串。
alert
(
json
);
//alert(json);
// getIrisPage(800,460, json, "http://124.192.224.46:9999/irisck/getIrisPage");//湖南
//getIrisPage(800,460, json, "http://124.192.224.46:9999/irisck/getIrisPage");//湖南
getIrisPage
(
800
,
460
,
json
,
"http://74.0.6.28/irisck/getIrisPage"
);
//海南
//getIrisPage(800, 460, json, "http://74.0.6.28/irisck/getIrisPage");//海南
getIrisPage
(
800
,
460
,
json
,
"http://10.5.152.58/irisck/getIrisPage"
);
//海南
}
else
if
(
ifhm
==
1
)
{
var
url
=
"http://74.10.26.187:20082?client_id=fangzheng&client_secret=fangzheng&version=1.0"
+
"&personCode="
+
$
(
"#rybh"
).
val
()
+
"&user_id="
+
$
(
"#identitycard"
).
val
()
+
"&user_dept="
+
$
(
"#unitcode"
).
val
()
+
"&user_deptname="
+
$
(
"#unitname"
).
val
()
+
"&lrbz=3"
+
"&zjbz=1&rylb=900&cjcd=11&xm="
+
$
(
"#xm"
).
val
()
+
"&zjdm=111&zjhm="
+
$
(
"#gmsfhm"
).
val
()
+
"&xbdm="
+
$
(
"#xbdm"
).
combobox
(
"getValue"
)
+
"&mzdm="
+
$
(
"#mzdm"
).
combobox
(
"getValue"
)
+
"&gjdm="
+
$
(
"#gjdm"
).
combobox
(
"getValue"
)
+
"&csrq="
+
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
)
+
"&cjr_xm="
+
$
(
"#truename"
).
val
()
+
"&cjr_gmsfhm="
+
$
(
"#identitycard"
).
val
()
+
"&zjqfjg=&zjyxqx="
+
"&hjdz="
+
$
(
"#hjdzDzmc"
).
val
()
+
"&jzdz="
+
$
(
"#xzzDzmc"
).
val
()
+
"&zjzpsrc=&sjhm="
+
$
(
"#lxdm"
).
val
()
+
"&cjbz=&hxjk=http://10.184.14.133&token=hnxtbaxt"
;
winOpens
=
window
.
open
(
encodeURI
(
url
));
//设置定时器
//timerss=window.setInterval(function IfWindowClosed() {
//alert("状态====="+winOpens.closed)
// if (winOpens.closed == true) {
// hmcx("65.47.6.140");
//清空定时器
// window.clearInterval(timerss);
// }
//},2000);
}
else
{
}
else
{
window
.
open
(
"/toHmCj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
()
+
"&sbcs="
+
ifhm
);
window
.
open
(
"/toHmCj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
()
+
"&sbcs="
+
ifhm
);
}
}
...
@@ -1898,10 +2117,9 @@
...
@@ -1898,10 +2117,9 @@
},
function
(){
},
function
(){
window
.
close
()
window
.
close
()
});
});
addrz
(
$
(
'#unitcode'
).
val
(),
getCurrentTime
(),
$
(
'#trueName'
).
val
(),
"进行虹膜(万里红)采集操作成功,嫌疑人编号人员编号为:"
+
$
(
'#rybh'
).
val
())
}
else
{
}
else
{
layer
.
alert
(
data
.
msg
);
layer
.
alert
(
data
.
msg
);
addrz
(
$
(
'#unitcode'
).
val
(),
getCurrentTime
(),
$
(
'#trueName'
).
val
(),
"进行虹膜(万里红)采集操作失败,嫌疑人编号人员编号为:"
+
$
(
'#rybh'
).
val
())
}
}
},
},
error
:
function
(
e
){
error
:
function
(
e
){
...
@@ -1911,120 +2129,24 @@
...
@@ -1911,120 +2129,24 @@
//此处编写自己的处理代码
//此处编写自己的处理代码
}
}
var
timerss
;
var
winOpens
;
//虹膜采集
function
hmcj2
(){
if
(
ifhm
==
1
){
if
(
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4301"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4302"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4303"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4304"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4305"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4306"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4307"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4310"
||
$
(
"#unitcode"
).
val
().
substr
(
0
,
4
)
==
"4331"
)
{
var
url
=
"http://26.13.5.62:20082?client_id=xietong&client_secret=xietong&version=1.0"
+
"&personCode="
+
$
(
"#rybh"
).
val
()
+
"&user_id="
+
$
(
"#identitycard"
).
val
()
+
"&user_dept="
+
$
(
"#unitcode"
).
val
()
+
"&user_deptname="
+
$
(
"#unitname"
).
val
()
+
"&lrbz=3"
+
"&zjbz=1&rylb=900&cjcd=11&xm="
+
$
(
"#xm"
).
val
()
+
"&zjdm=111&zjhm="
+
$
(
"#gmsfhm"
).
val
()
+
"&xbdm="
+
$
(
"#xbdm"
).
combobox
(
"getValue"
)
+
"&mzdm="
+
$
(
"#mzdm"
).
combobox
(
"getValue"
)
+
"&gjdm="
+
$
(
"#gjdm"
).
combobox
(
"getValue"
)
+
"&csrq="
+
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
)
+
"&cjr_xm="
+
$
(
"#truename"
).
val
()
+
"&cjr_gmsfhm="
+
$
(
"#identitycard"
).
val
()
+
"&zjqfjg=&zjyxqx="
+
"&hjdz="
+
$
(
"#hjdzDzmc"
).
val
()
+
"&jzdz="
+
$
(
"#xzzDzmc"
).
val
()
+
"&zjzpsrc=&sjhm="
+
$
(
"#lxdm"
).
val
()
+
"&cjbz=&hxjk=&token="
;
winOpens
=
window
.
open
(
encodeURI
(
url
));
//设置定时器
timerss
=
window
.
setInterval
(
function
IfWindowClosed
()
{
//alert("状态====="+winOpens.closed)
if
(
winOpens
.
closed
==
true
)
{
hmcx
(
"10.5.47.33"
);
//清空定时器
window
.
clearInterval
(
timerss
);
}
},
2000
);
}
else
{
var
url
=
"http://10.5.47.33:20082?client_id=xietong&client_secret=xietong&version=1.0"
+
"&personCode="
+
$
(
"#rybh"
).
val
()
+
"&user_id="
+
$
(
"#identitycard"
).
val
()
+
"&user_dept="
+
$
(
"#unitcode"
).
val
()
+
"&user_deptname="
+
$
(
"#unitname"
).
val
()
+
"&lrbz=3"
+
"&zjbz=1&rylb=900&cjcd=11&xm="
+
$
(
"#xm"
).
val
()
+
"&zjdm=111&zjhm="
+
$
(
"#gmsfhm"
).
val
()
+
"&xbdm="
+
$
(
"#xbdm"
).
combobox
(
"getValue"
)
+
"&mzdm="
+
$
(
"#mzdm"
).
combobox
(
"getValue"
)
+
"&gjdm="
+
$
(
"#gjdm"
).
combobox
(
"getValue"
)
+
"&csrq="
+
$
(
"#gmsfhm"
).
val
().
substr
(
6
,
4
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
10
,
2
)
+
"-"
+
$
(
"#gmsfhm"
).
val
().
substr
(
12
,
2
)
+
"&cjr_xm="
+
$
(
"#truename"
).
val
()
+
"&cjr_gmsfhm="
+
$
(
"#identitycard"
).
val
()
+
"&zjqfjg=&zjyxqx="
+
"&hjdz="
+
$
(
"#hjdzDzmc"
).
val
()
+
"&jzdz="
+
$
(
"#xzzDzmc"
).
val
()
+
"&zjzpsrc=&sjhm="
+
$
(
"#lxdm"
).
val
()
+
"&cjbz=&hxjk=&token="
;
winOpens
=
window
.
open
(
encodeURI
(
url
));
//设置定时器
timerss
=
window
.
setInterval
(
function
IfWindowClosed
()
{
//alert("状态====="+winOpens.closed)
if
(
winOpens
.
closed
==
true
)
{
hmcx
(
"10.5.47.33"
);
//清空定时器
window
.
clearInterval
(
timerss
);
}
},
2000
);
}
}
}
//虹膜查询
function
hmcx
(
ipstr
){
debugger
;
//var url = "http://39.104.54.227:9080/Api/iris/queryrybh";
$
.
ajax
({
url
:
"hmxxCx?asjxgrybh="
+
$
(
"#rybh"
).
val
()
+
"&hmurlstr="
+
ipstr
,
type
:
"post"
,
dataType
:
"json"
,
success
:
function
(
data
){
//alert(data);
if
(
data
){
$
.
messager
.
alert
(
'提示'
,
"虹膜数据保存成功!"
);
addrz
(
$
(
'#unitcode'
).
val
(),
getCurrentTime
(),
$
(
'#trueName'
).
val
(),
"进行虹膜(中科虹霸)获取数据成功,嫌疑人编号人员编号为:"
+
$
(
'#rybh'
).
val
())
}
else
{
$
.
messager
.
alert
(
'提示'
,
"虹膜数据保存失败!"
);
addrz
(
$
(
'#unitcode'
).
val
(),
getCurrentTime
(),
$
(
'#trueName'
).
val
(),
"进行虹膜(中科虹霸)获取数据失败,嫌疑人编号人员编号为:"
+
$
(
'#rybh'
).
val
())
}
},
error
:
function
(
e
){
$
.
messager
.
alert
(
'提示'
,
"虹膜数据保存失败!"
);
addrz
(
$
(
'#unitcode'
).
val
(),
getCurrentTime
(),
$
(
'#trueName'
).
val
(),
"进行虹膜(中科虹霸)获取数据失败,嫌疑人编号人员编号为:"
+
$
(
'#rybh'
).
val
())
//alert("error="+JSON.stringify(e));
}
});
}
//银行卡采集
//银行卡采集
function
yhkcj
(){
function
yhkcj
(){
var
rybh
=
$
(
"#rybh"
).
val
();
if
(
rybh
==
null
||
rybh
==
''
){
$
.
messager
.
alert
(
'提示'
,
"请先点击页面的下方的保存信息按钮,人员信息保存完成后再进行银行卡采集操作!"
);
return
;
}
window
.
open
(
"/toYhkxxcj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
window
.
open
(
"/toYhkxxcj?rybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
}
}
//随身物品采集
//随身物品采集
function
sswpcj
(){
function
sswpcj
(){
window
.
open
(
"/toSswpcj?asjxgrybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
var
rybh
=
$
(
"#rybh"
).
val
();
}
if
(
rybh
==
null
||
rybh
==
''
){
function
addrz
(
yhdwdm
,
rzsjstr
,
yhxm
,
rznr
){
$
.
messager
.
alert
(
'提示'
,
"请先点击页面的下方的保存按钮,人员信息保存完成后再进行随身物品采集操作!"
);
$
.
ajax
({
return
;
url
:
"doAddsysLogs"
,
data
:{
"yhdwdm"
:
yhdwdm
,
"rzsjStr"
:
rzsjstr
,
"yhxm"
:
yhxm
,
"rznr"
:
rznr
},
type
:
"post"
,
dataType
:
"json"
,
async
:
false
,
success
:
function
(
data
){
}
});
}
function
getCurrentTime
()
{
var
date
=
new
Date
();
//当前时间
var
month
=
zeroFill
(
date
.
getMonth
()
+
1
);
//月
var
day
=
zeroFill
(
date
.
getDate
());
//日
var
hour
=
zeroFill
(
date
.
getHours
());
//时
var
minute
=
zeroFill
(
date
.
getMinutes
());
//分
var
second
=
zeroFill
(
date
.
getSeconds
());
//秒
//当前时间
var
curTime
=
date
.
getFullYear
()
+
"-"
+
month
+
"-"
+
day
+
" "
+
hour
+
":"
+
minute
+
":"
+
second
;
return
curTime
;
}
function
zeroFill
(
i
){
if
(
i
>=
0
&&
i
<=
9
)
{
return
"0"
+
i
;
}
else
{
return
i
;
}
}
window
.
open
(
"/toSswpcj?asjxgrybh="
+
$
(
"#rybh"
).
val
()
+
"&xm="
+
$
(
"#xm"
).
val
()
+
"&gmsfhm="
+
$
(
"#gmsfhm"
).
val
());
}
}
</script>
</script>
</head>
</head>
...
@@ -2037,7 +2159,6 @@
...
@@ -2037,7 +2159,6 @@
<span
class=
"title"
>
人员信息采集
</span>
<span
class=
"title"
>
人员信息采集
</span>
</div>
</div>
<form
action=
""
id=
"frminput"
name=
"frminput"
method=
"post"
enctype=
"multipart/form-data"
>
<form
action=
""
id=
"frminput"
name=
"frminput"
method=
"post"
enctype=
"multipart/form-data"
>
<a
style=
"width: 0px;height: 0px;"
id=
"tttt"
></a>
<input
type=
"hidden"
id=
"flag"
name=
"flag"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"flag"
name=
"flag"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"username"
th:value=
"${username}"
/>
<input
type=
"hidden"
id=
"username"
th:value=
"${username}"
/>
<input
type=
"hidden"
id=
"unitcode"
th:value=
"${unitcode}"
/>
<input
type=
"hidden"
id=
"unitcode"
th:value=
"${unitcode}"
/>
...
@@ -2064,6 +2185,8 @@
...
@@ -2064,6 +2185,8 @@
<input
type=
"hidden"
id=
"foottype"
name=
"foottype"
value=
""
/>
<input
type=
"hidden"
id=
"foottype"
name=
"foottype"
value=
""
/>
<input
type=
"hidden"
id=
"tstzflag1"
name=
"tstzflag1"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"tstzflag1"
name=
"tstzflag1"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"tstzflag2"
name=
"tstzflag2"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"tstzflag2"
name=
"tstzflag2"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"bjflag1"
name=
"bjflag1"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"bjflag2"
name=
"bjflag2"
th:value=
"1"
/>
<input
type=
"hidden"
id=
"IFIDCARD"
name=
"IFIDCARD"
/>
<!--是否采集二代证 0未采集,1已采集-->
<input
type=
"hidden"
id=
"IFIDCARD"
name=
"IFIDCARD"
/>
<!--是否采集二代证 0未采集,1已采集-->
<input
type=
"hidden"
name=
"clientVersion"
th:value=
"2"
/>
<!-- 采集端版本号 -->
<input
type=
"hidden"
name=
"clientVersion"
th:value=
"2"
/>
<!-- 采集端版本号 -->
<input
type=
"hidden"
name=
"ZMZPL64"
id=
"ZMZPL64"
th:value=
"${ryxx.ZMZPL64}"
/>
<!-- 传给指纹采集仪人像照片base64码 -->
<input
type=
"hidden"
name=
"ZMZPL64"
id=
"ZMZPL64"
th:value=
"${ryxx.ZMZPL64}"
/>
<!-- 传给指纹采集仪人像照片base64码 -->
...
@@ -2094,6 +2217,8 @@
...
@@ -2094,6 +2217,8 @@
<input
type=
"hidden"
name=
"r_hmRightBase64"
id=
"r_hmRightBase64"
th:value=
"${ryxx.r_hmRightBase64}"
/>
<input
type=
"hidden"
name=
"r_hmRightBase64"
id=
"r_hmRightBase64"
th:value=
"${ryxx.r_hmRightBase64}"
/>
<input
type=
"hidden"
name=
"tstz1Base64"
id=
"tstz1Base64"
th:value=
"${ryxx.tstz1Base64}"
/>
<input
type=
"hidden"
name=
"tstz1Base64"
id=
"tstz1Base64"
th:value=
"${ryxx.tstz1Base64}"
/>
<input
type=
"hidden"
name=
"tstz2Base64"
id=
"tstz2Base64"
th:value=
"${ryxx.tstz2Base64}"
/>
<input
type=
"hidden"
name=
"tstz2Base64"
id=
"tstz2Base64"
th:value=
"${ryxx.tstz2Base64}"
/>
<input
type=
"hidden"
name=
"bj1Base64"
id=
"bj1Base64"
th:value=
"${ryxx.bj1Base64}"
/>
<input
type=
"hidden"
name=
"bj2Base64"
id=
"bj2Base64"
th:value=
"${ryxx.bj2Base64}"
/>
<input
type=
"hidden"
id=
"zpbw"
/>
<input
type=
"hidden"
id=
"zpbw"
/>
<input
type=
"hidden"
name=
"lrdwmc"
id=
"lrdwmc"
th:value=
"${ryxx.lrdwmc}"
/>
<input
type=
"hidden"
name=
"lrdwmc"
id=
"lrdwmc"
th:value=
"${ryxx.lrdwmc}"
/>
<input
type=
"hidden"
name=
"cjfs"
id=
"cjfs"
/>
<!-- 指纹采集方式 -->
<input
type=
"hidden"
name=
"cjfs"
id=
"cjfs"
/>
<!-- 指纹采集方式 -->
...
@@ -2118,11 +2243,11 @@
...
@@ -2118,11 +2243,11 @@
</div>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;"
>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;"
>
<span
class=
"input-group-addon"
>
案件编号
</span>
<span
class=
"input-group-addon"
>
案件编号
</span>
<input
readonly=
"readonly"
id=
"asjbh"
name=
"asjbh"
th:value=
"${ryxx.asjbh}"
type=
"text"
class=
"form-control"
title=
"案件编号为不可编辑
"
style=
"padding :0px !important;"
/>
<input
id=
"asjbh"
name=
"asjbh"
th:value=
"${ryxx.asjbh}"
type=
"text"
class=
"form-control
"
style=
"padding :0px !important;"
/>
</div>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;"
>
<div
class=
"input-group l1"
style=
"width: 288px;
margin-left: 27px;
"
>
<span
class=
"input-group-addon"
>
警综人员编号
</span>
<span
class=
"input-group-addon"
>
警综人员编号
</span>
<input
id=
"jzrybh"
name=
"jzrybh"
th:value=
"${ryxx.jzrybh}"
type=
"text"
class=
"form-control"
title=
"人员编号为不可编辑"
style=
"padding :0px !important;"
/>
<input
id=
"jzrybh"
name=
"jzrybh"
th:value=
"${ryxx.jzrybh}"
type=
"text"
class=
"form-control"
style=
"padding :0px !important;"
/>
</div>
</div>
<div
class=
"input-group l1 br"
style=
"width: 288px;"
>
<div
class=
"input-group l1 br"
style=
"width: 288px;"
>
...
@@ -2242,10 +2367,9 @@
...
@@ -2242,10 +2367,9 @@
</div>
</div>
<input
type=
"file"
class=
"input"
id=
"R_ZMZP_File"
style=
"width: 185px;"
name=
"R_ZMZP_File"
size=
"3"
onchange=
"showpic2(this)"
/>
<input
type=
"file"
class=
"input"
id=
"R_ZMZP_File"
style=
"width: 185px;"
name=
"R_ZMZP_File"
size=
"3"
onchange=
"showpic2(this)"
/>
<!-- <input type="file" onchange="previewImage2(this)" /> -->
<!-- <input type="file" onchange="previewImage2(this)" /> -->
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
5
px; margin-top: 8px;"
>
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
32
px; margin-top: 8px;"
>
<button
type=
"button"
style=
"width: 60px;margin-left: 0px;"
class=
"btn btn-primary"
onclick=
"getRxbclj('2')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"getRxbclj('2')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('2')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('2')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
style=
"width: 60px;margin-right: 0px;float: right;"
class=
"btn btn-primary"
onclick=
"downloadRyzp('2')"
><i
class=
"fa fa-crop"
></i>
导出
</button>
</div>
</div>
</div>
</div>
<div
class=
"upl"
>
<div
class=
"upl"
>
...
@@ -2254,10 +2378,9 @@
...
@@ -2254,10 +2378,9 @@
</div>
</div>
<input
type=
"file"
class=
"input"
id=
"R_CMZP_File"
style=
"width: 185px;"
name=
"R_CMZP_File"
size=
"3"
onchange=
"showpic3(this)"
/>
<input
type=
"file"
class=
"input"
id=
"R_CMZP_File"
style=
"width: 185px;"
name=
"R_CMZP_File"
size=
"3"
onchange=
"showpic3(this)"
/>
<!-- <input type="file" onchange="previewImage3(this)" /> -->
<!-- <input type="file" onchange="previewImage3(this)" /> -->
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
5
px; margin-top: 8px;"
>
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
32
px; margin-top: 8px;"
>
<button
type=
"button"
style=
"width: 60px;margin-left: 0px;"
class=
"btn btn-primary"
onclick=
"getRxbclj('3')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"getRxbclj('3')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('3')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('3')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
style=
"width: 60px;margin-right: 0px;float: right;"
class=
"btn btn-primary"
onclick=
"downloadRyzp('3')"
><i
class=
"fa fa-crop"
></i>
导出
</button>
</div>
</div>
</div>
</div>
<div
class=
"upl"
>
<div
class=
"upl"
>
...
@@ -2266,10 +2389,9 @@
...
@@ -2266,10 +2389,9 @@
</div>
</div>
<input
type=
"file"
class=
"input"
id=
"R_YCMZP_File"
style=
"width: 185px;"
name=
"R_YCMZP_File"
size=
"3"
onchange=
"showpic4(this)"
/>
<input
type=
"file"
class=
"input"
id=
"R_YCMZP_File"
style=
"width: 185px;"
name=
"R_YCMZP_File"
size=
"3"
onchange=
"showpic4(this)"
/>
<!-- <input type="file" onchange="previewImage4(this)" /> -->
<!-- <input type="file" onchange="previewImage4(this)" /> -->
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
5
px; margin-top: 8px;"
>
<div
class=
"btn-group btn-group-sm"
style=
" margin-left:
32
px; margin-top: 8px;"
>
<button
type=
"button"
style=
"width: 60px;margin-left: 0px;"
class=
"btn btn-primary"
onclick=
"getRxbclj('4')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"getRxbclj('4')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('4')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('4')"
><i
class=
"fa fa-crop"
></i>
截图
</button>
<button
type=
"button"
style=
"width: 60px;margin-right: 0px;float: right;"
class=
"btn btn-primary"
onclick=
"downloadRyzp('4')"
><i
class=
"fa fa-crop"
></i>
导出
</button>
</div>
</div>
</div>
</div>
<input
type=
"hidden"
id=
"R_ZMZP"
name=
"R_ZMZP"
/>
<input
type=
"hidden"
id=
"R_ZMZP"
name=
"R_ZMZP"
/>
...
@@ -2341,6 +2463,94 @@
...
@@ -2341,6 +2463,94 @@
<input
style=
"height:30px;"
id=
"fwcs"
name=
"fwcs"
th:value=
"${ryxx.fwcs}"
type=
"text"
class=
"form-control cxnr"
/>
<input
style=
"height:30px;"
id=
"fwcs"
name=
"fwcs"
th:value=
"${ryxx.fwcs}"
type=
"text"
class=
"form-control cxnr"
/>
</div>
</div>
<div
class=
"input-group l1 br"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
关系类型
</span>
<input
id=
"gxrlxdm1"
name=
"gxrlxdm1"
type=
"text"
style=
"width:66%; height:32px;"
class=
"val easyui-combobox"
data-options=
"url: '/queryTypeCode?type=CODE_GXLX',method:'get',textField : 'text', valueField : 'id'"
/>
<input
type=
"hidden"
id=
"gxrlxdmStr1"
th:value=
"${ryxx.gxrlxdm1}"
/>
<input
type=
"hidden"
id=
"gxrlxdmStr2"
th:value=
"${ryxx.gxrlxdm2}"
/>
<input
type=
"hidden"
id=
"gxrlxdmStr3"
th:value=
"${ryxx.gxrlxdm3}"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;"
>
<span
class=
"input-group-addon"
>
关系人姓名
</span>
<input
id=
"gxrxm1"
name=
"gxrxm1"
th:value=
"${ryxx.gxrxm1}"
type=
"text"
class=
"form-control cxnr"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;"
>
<span
class=
"input-group-addon"
>
关系人身份证号
</span>
<input
id=
"gxrsfzh1"
name=
"gxrsfzh1"
th:value=
"${ryxx.gxrsfzh1}"
type=
"text"
class=
"form-control cxnr"
/>
<img
src=
"/static/img/add-pic.png"
id=
"gxrbut1"
onclick=
"addGxrxx(1);"
style=
"float:right;margin-right:-30px;margin-top:5px;width:25px;height:25px;line-height:30px; border-radius: 5px;border:none;"
>
</div>
<div
class=
"input-group l1 br"
id=
"gxr21"
style=
"display:none;"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
关系类型
</span>
<input
id=
"gxrlxdm2"
name=
"gxrlxdm2"
type=
"text"
style=
"width:66%; height:32px;"
class=
"val easyui-combobox"
data-options=
"url: '/queryTypeCode?type=CODE_GXLX',method:'get',textField : 'text', valueField : 'id'"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;display:none;"
id=
"gxr22"
>
<span
class=
"input-group-addon"
>
关系人姓名
</span>
<input
id=
"gxrxm2"
name=
"gxrxm2"
th:value=
"${ryxx.gxrxm2}"
type=
"text"
class=
"form-control cxnr"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;display:none;"
id=
"gxr23"
>
<span
class=
"input-group-addon"
>
关系人身份证号
</span>
<input
id=
"gxrsfzh2"
name=
"gxrsfzh2"
th:value=
"${ryxx.gxrsfzh2}"
type=
"text"
class=
"form-control cxnr"
/>
<img
src=
"/static/img/add-pic.png"
id=
"gxrbut2"
onclick=
"addGxrxx(2);"
style=
"float:right;margin-right:-30px;margin-top:5px;width:25px;height:25px;line-height:30px; border-radius: 5px;border:none;"
>
</div>
<div
class=
"input-group l1 br"
id=
"gxr31"
style=
"display:none;"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
关系类型
</span>
<input
id=
"gxrlxdm3"
name=
"gxrlxdm3"
type=
"text"
style=
"width:66%; height:32px;"
class=
"val easyui-combobox"
data-options=
"url: '/queryTypeCode?type=CODE_GXLX',method:'get',textField : 'text', valueField : 'id'"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;display:none;"
id=
"gxr32"
>
<span
class=
"input-group-addon"
>
关系人姓名
</span>
<input
id=
"gxrxm3"
name=
"gxrxm3"
th:value=
"${ryxx.gxrxm3}"
type=
"text"
class=
"form-control cxnr"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;display:none;"
id=
"gxr33"
>
<span
class=
"input-group-addon"
>
关系人身份证号
</span>
<input
id=
"gxrsfzh3"
name=
"gxrsfzh3"
th:value=
"${ryxx.gxrsfzh3}"
type=
"text"
class=
"form-control cxnr"
/>
</div>
<div
class=
"input-group l1 br"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
同案犯人员
</span>
<p
class=
"datebox-h"
style=
"width: 192px; border: 1px solid rgb(200, 200, 200);"
>
<select
class=
"input_out"
style=
"width: 190px;height: 30px; font-weight: normal;"
name=
"tary1"
id=
"tary1"
>
<option
value=
""
>
----------- 请 选 择 ----------
</option>
<option
value=
"0"
>
无可选人员
</option>
</select>
</p>
<input
type=
"hidden"
id=
"taryStr1"
th:value=
"${ryxx.tary1}"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 602px;"
>
<span
class=
"input-group-addon"
>
人员信息
</span>
<input
style=
"height:30px;"
name=
"taryxq1"
id=
"taryxq1"
class=
"form-control"
th:value=
"${ryxx.taryxq1}"
/>
<img
src=
"/static/img/add-pic.png"
id=
"tarybut1"
onclick=
"addTaryxx(1);"
style=
"float:right;margin-right:-30px;margin-top:5px;width:25px;height:25px;line-height:30px; border-radius: 5px;border:none;"
>
</div>
<div
class=
"input-group l1 br"
style=
"display:none;"
id=
"tary21"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
同案犯人员
</span>
<p
class=
"datebox-h"
style=
"width: 192px; border: 1px solid rgb(200, 200, 200);"
>
<select
class=
"input_out"
style=
"width: 190px;height: 30px; font-weight: normal;"
name=
"tary2"
id=
"tary2"
>
<option
value=
""
>
----------- 请 选 择 ----------
</option>
<option
value=
"0"
>
无可选人员
</option>
</select>
</p>
<input
type=
"hidden"
id=
"taryStr2"
th:value=
"${ryxx.tary2}"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 602px;display:none;"
id=
"tary22"
>
<span
class=
"input-group-addon"
>
人员信息
</span>
<input
style=
"height:30px;"
name=
"taryxq2"
id=
"taryxq2"
class=
"form-control"
th:value=
"${ryxx.taryxq2}"
/>
<img
src=
"/static/img/add-pic.png"
id=
"tarybut2"
onclick=
"addTaryxx(2);"
style=
"float:right;margin-right:-30px;margin-top:5px;width:25px;height:25px;line-height:30px; border-radius: 5px;border:none;"
>
</div>
<div
class=
"input-group l1 br"
style=
"display:none;"
id=
"tary31"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
同案犯人员
</span>
<p
class=
"datebox-h"
style=
"width: 192px; border: 1px solid rgb(200, 200, 200);"
>
<select
class=
"input_out"
style=
"width: 190px;height: 30px; font-weight: normal;"
name=
"tary3"
id=
"tary3"
>
<option
value=
""
>
----------- 请 选 择 ----------
</option>
<option
value=
"0"
>
无可选人员
</option>
</select>
</p>
<input
type=
"hidden"
id=
"taryStr3"
th:value=
"${ryxx.tary3}"
/>
</div>
<div
class=
"input-group l1"
style=
"width: 602px; display:none;"
id=
"tary32"
>
<span
class=
"input-group-addon"
>
人员信息
</span>
<input
style=
"height:30px;"
name=
"taryxq3"
id=
"taryxq3"
class=
"form-control"
th:value=
"${ryxx.taryxq3}"
/>
</div>
<div
class=
"page-header"
style=
"clear: both; position: relative; top: 20px; margin-bottom: 10px;"
>
<div
class=
"page-header"
style=
"clear: both; position: relative; top: 20px; margin-bottom: 10px;"
>
<h5
style=
"text-align: center;position:relative;"
>
--人员虹膜信息--
<i
title=
"展开虹膜图片"
class=
"fa fa-angle-double-down hmimg"
></i></h5>
<h5
style=
"text-align: center;position:relative;"
>
--人员虹膜信息--
<i
title=
"展开虹膜图片"
class=
"fa fa-angle-double-down hmimg"
></i></h5>
</div>
</div>
...
@@ -2406,6 +2616,37 @@
...
@@ -2406,6 +2616,37 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-header"
style=
"clear: both; position: relative; top: -20px; margin-bottom: -20px;"
>
<h5
style=
"text-align: center;position:relative;"
>
--笔迹信息--
<i
title=
"展开笔迹信息"
class=
"fa fa-angle-double-down bjimg"
id=
"openbj"
></i></h5>
</div>
<div
id=
"rybjxx"
style=
"display:none;"
>
<div
class=
"img-one"
style=
"width: 40%;"
>
<div
style=
"width: 100%;height: 230px;"
>
<div
id=
"preview41"
style=
"width: 100%;float: right;"
>
<img
style=
"float: right;"
name=
"imghead41"
id=
"imghead41"
alt=
"笔迹图片(1)"
src=
"static/img/noimage.jpg"
height=
230
width=
150/
>
</div>
<div
class=
"btn-group btn-group-sm"
style=
"width:100%;margin-top: 8px;margin-left: 75px;"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"getRxbclj('41')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集笔迹照片
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('41')"
style=
"width: 121px;"
><i
class=
"fa fa-crop"
></i>
截
图
</button>
</div>
</div>
</div>
<div
class=
"img-one"
style=
"width: 40%;float: right;"
>
<div
id=
"preview42"
style=
"width: 100%;float: right;"
>
<img
name=
"imghead42"
id=
"imghead42"
alt=
"笔迹图片(2)"
src=
"static/img/noimage.jpg"
height=
230
width=
150/
>
</div>
<div
class=
"btn-group btn-group-sm"
style=
" margin-left: 80px; margin-top: 8px;"
>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"getRxbclj('42')"
><i
class=
"fa fa-hand-lizard-o"
></i>
采集笔迹照片
</button>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"catchimg('42')"
style=
"width: 121px;"
><i
class=
"fa fa-crop"
></i>
截
图
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -2495,9 +2736,9 @@
...
@@ -2495,9 +2736,9 @@
</div>
</div>
<div
class=
"box"
>
<div
class=
"box"
>
<div
style=
"font-size: 16px;margin-left: 30px;
display: none;"
>
<div
style=
"font-size: 16px;margin-left: 30px;
"
>
人员属性:
人员属性:
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx01"
name=
"rysx"
value=
"01"
checked=
"true"
>
警综犯罪嫌疑人
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx01"
name=
"rysx"
value=
"01"
>
警综犯罪嫌疑人
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx02"
name=
"rysx"
value=
"02"
>
违法人员
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx02"
name=
"rysx"
value=
"02"
>
违法人员
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx03"
name=
"rysx"
value=
"03"
>
盘问人员
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx03"
name=
"rysx"
value=
"03"
>
盘问人员
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx04"
name=
"rysx"
value=
"04"
>
其他人员
<input
style=
"margin-left: 5%;"
type=
"radio"
id=
"rysx04"
name=
"rysx"
value=
"04"
>
其他人员
...
@@ -2514,7 +2755,7 @@
...
@@ -2514,7 +2755,7 @@
</div>
</div>
<div
class=
"input-group l1 xzajlb"
>
<div
class=
"input-group l1 xzajlb"
>
<span
class=
"input-group-addon must"
style=
"width:32%; height:32px;"
>
案件类别
</span>
<span
class=
"input-group-addon must"
style=
"width:32%; height:32px;"
>
案件类别
</span>
<input
id=
"xzajlbdm"
name=
"xzajlbdm"
type=
"text"
style=
"width:66%; height:32px;"
class=
"val easyui-combotree"
data-options=
"url: '/queryTypeCode?type=CODE_AJLB',method:'get',textField : 'text', valueField : 'id'"
/>
<input
id=
"xzajlbdm"
name=
"xzajlbdm"
type=
"text"
style=
"width:66%; height:32px;"
class=
"val easyui-combotree"
data-options=
"url: '/queryTypeCode?type=CODE_
HNXZ
AJLB',method:'get',textField : 'text', valueField : 'id'"
/>
</div>
</div>
<div
class=
"input-group l1 zh"
style=
"margin-left: 20px;"
>
<div
class=
"input-group l1 zh"
style=
"margin-left: 20px;"
>
<span
class=
"input-group-addon must"
style=
"width:32%; height:32px;"
>
抓获区划
</span>
<span
class=
"input-group-addon must"
style=
"width:32%; height:32px;"
>
抓获区划
</span>
...
@@ -2551,8 +2792,7 @@
...
@@ -2551,8 +2792,7 @@
</div>
</div>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;"
>
<div
class=
"input-group l1"
style=
"width: 288px;margin-left: 27px;"
>
<span
class=
"input-group-addon"
>
DNA编号
</span>
<span
class=
"input-group-addon"
>
DNA编号
</span>
<input
name=
"dnabh"
id=
"dnabh"
style=
"width: 146px"
readonly=
"readonly"
class=
"form-control"
th:value=
"${ryxx.dnabh}"
/>
<input
name=
"dnabh"
id=
"dnabh"
class=
"form-control"
th:value=
"${ryxx.dnabh}"
/>
<button
id=
"checkdnabutton"
type=
"button"
style=
"width: 45px;height: 32px;"
onclick=
"checkDnaFun()"
>
查重
</button>
</div>
</div>
<div
class=
"input-group l1"
style=
"margin-left: 27px;"
>
<div
class=
"input-group l1"
style=
"margin-left: 27px;"
>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
样本类型
</span>
<span
class=
"input-group-addon"
style=
"width:32%; height:32px;"
>
样本类型
</span>
...
@@ -2654,9 +2894,17 @@
...
@@ -2654,9 +2894,17 @@
</div>
</div>
</div>
</div>
</div>
</div>
-->
-->
<div
class=
"foot"
style=
"height:50px"
>
<div
id=
"w"
class=
"easyui-dialog dialog"
title=
"人像比对"
data-options=
"modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false"
style=
"width:500px;height:700px;padding:10px;display:none;"
>
<div
id=
"bzryzp"
class=
"photos_wrap"
>
<div
class=
"photo_wrap face_photo"
>
<p>
比中照片
</p>
<img
id=
"zmcjzp2"
src=
"static/img/Personface.jpg"
class=
"photo"
>
</div>
</div>
</div>
<div
class=
"foot"
>
<button
id=
"bcxx"
type=
"button"
class=
"btn btn-warning btn-lg"
onclick=
"toSave()"
>
保存信息
</button>
<button
id=
"bcxx"
type=
"button"
class=
"btn btn-warning btn-lg"
onclick=
"toSave()"
>
保存信息
</button>
<!-- <button type="hidden" class="btn btn-success btn-lg" style="margin-left: 20px;" onclick="toSaveAndBack()">保存并退出</button> -->
<!-- <button type="hidden" class="btn btn-success btn-lg" style="margin-left: 20px;" onclick="toSaveAndBack()">保存并退出</button> -->
</div>
</div>
...
@@ -2668,19 +2916,27 @@
...
@@ -2668,19 +2916,27 @@
<li
id=
"zw"
><a
onclick=
"getStatus()"
><i
class=
"fa fa-hand-paper-o"
></i>
捺印指纹信息采集
<img
id=
"zwifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"zw"
><a
onclick=
"getStatus()"
><i
class=
"fa fa-hand-paper-o"
></i>
捺印指纹信息采集
<img
id=
"zwifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"sj"
><a
href=
"javascript:sjcjs()"
><i
class=
"fa fa-barcode"
></i>
随身手机信息采集
<img
id=
"sjifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"sj"
><a
href=
"javascript:sjcjs()"
><i
class=
"fa fa-barcode"
></i>
随身手机信息采集
<img
id=
"sjifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"hm"
><a
onclick=
"hmcj()"
><i
class=
"fa fa-barcode"
></i>
虹膜信息采集
<img
id=
"hmifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"hm"
><a
onclick=
"hmcj()"
><i
class=
"fa fa-barcode"
></i>
虹膜信息采集
<img
id=
"hmifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"hm2"
><a
onclick=
"hmcj2()"
><i
class=
"fa fa-barcode"
></i>
虹膜信息采集(链接方式)
<img
id=
"hmifcj2"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"zj"
><a
onclick=
"zjcj(0)"
><i
class=
"fa fa-barcode"
></i>
足迹信息采集
<img
id=
"zjifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"zj"
><a
onclick=
"zjcj(0)"
><i
class=
"fa fa-barcode"
></i>
足迹信息采集
<img
id=
"zjifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"bj"
><a
onclick=
"bjcj(0)"
><i
class=
"fa fa-barcode"
></i>
笔迹图像采集
<img
id=
"bjifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"sw"
><a
onclick=
"swcj()"
><i
class=
"fa fa-barcode"
></i>
声纹信息采集
<img
id=
"swifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"sw"
><a
onclick=
"swcj()"
><i
class=
"fa fa-barcode"
></i>
声纹信息采集
<img
id=
"swifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"yhk"
><a
onclick=
"yhkcj()"
><i
class=
"fa fa-barcode"
></i>
银行卡信息采集
<img
id=
"yhkifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"yhk"
><a
onclick=
"yhkcj()"
><i
class=
"fa fa-barcode"
></i>
银行卡信息采集
<img
id=
"yhkifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"wp"
><a
onclick=
"sswpcj()"
><i
class=
"fa fa-barcode"
></i>
随身物品信息采集
<img
id=
"sswpifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"wp"
><a
onclick=
"sswpcj()"
><i
class=
"fa fa-barcode"
></i>
随身物品信息采集
<img
id=
"sswpifcj"
src=
"/static/rygl/img/no.png"
/></a></li>
<li
id=
"dna"
><a
onclick=
"openDialog_DNADY()"
><i
class=
"fa fa-print"
></i>
打印DNA标签
</a></li>
<li
id=
"dna"
><a
onclick=
"openDialog_DNADY()"
><i
class=
"fa fa-print"
></i>
打印DNA标签
</a></li>
<li><a
href=
"javascript:prtzw()"
><i
class=
"fa fa-print"
></i>
打印指纹卡
</a></li>
<li><a
href=
"javascript:prtzw()"
><i
class=
"fa fa-print"
></i>
打印指纹卡
</a></li>
<li
id=
"zwksm"
style=
"display: none;"
><a
onclick=
"s
wksm
()"
><i
class=
"fa fa-barcode"
></i>
指纹卡扫描
</a></li>
<li
id=
"zwksm"
style=
"display: none;"
><a
onclick=
"s
howScan
()"
><i
class=
"fa fa-barcode"
></i>
指纹卡扫描
</a></li>
<li
style=
"display: none;"
><a
onclick=
"rxbc()"
><i
class=
"fa fa-barcode"
></i>
生成人像
</a></li>
<li
style=
"display: none;"
><a
onclick=
"rxbc()"
><i
class=
"fa fa-barcode"
></i>
生成人像
</a></li>
<li
style=
"margin-top:30px;"
><a
href=
"javascript:toCzsmxz()"
><i
class=
"fa fa-print"
></i>
操作说明文档下载
</a></li>
<div
style=
"width=250px;"
>
<span
style=
"color:yellow;"
>
技术支持:
</span></br>
<span
style=
"color:red;font-weight:bold;"
>
邱工16689653009
</span></br>
<span
style=
"color:red;font-weight:bold;"
>
单工18182415072
</span></br>
</div>
<!--
<li><a href="javascript:openDialog_bz()"><i class="fa fa-barcode"></i> 人员信息无法采集说明</a></li>
<li><a href="javascript:openDialog_bz()"><i class="fa fa-barcode"></i> 人员信息无法采集说明</a></li>
<li
id=
"hmcx"
><a
onclick=
"hmcx()"
href=
"#"
><i
class=
"fa fa-barcode"
></i>
虹膜查询(建设测试中)
</a></li>
<li id="hmts"><a onclick="hmts()" href="#"><i class="fa fa-barcode"></i> 虹膜推送(建设测试中)</a></li>
<li id="hmts"><a onclick="hmts()" href="#"><i class="fa fa-barcode"></i> 虹膜推送(建设测试中)</a></li>
<!--
<div><span style="color: red;"></span></div>
<li><a href="#"><i class="fa fa-barcode"></i> 笔迹信息采集(建设中)</a></li>
<li><a href="#"><i class="fa fa-barcode"></i> 笔迹信息采集(建设中)</a></li>
<li><a href="#"><i class="fa fa-barcode"></i> 社会信息导入(建设中)</a></li>
<li><a href="#"><i class="fa fa-barcode"></i> 社会信息导入(建设中)</a></li>
...
@@ -2759,6 +3015,16 @@
...
@@ -2759,6 +3015,16 @@
}
}
});
});
$
(
".bjimg"
).
click
(
function
(){
if
(
$
(
this
).
hasClass
(
"fa-angle-double-down"
)){
$
(
"#rybjxx"
).
slideDown
();
$
(
this
).
removeClass
(
"fa-angle-double-down"
).
addClass
(
"fa-angle-double-up"
);
}
else
{
$
(
"#rybjxx"
).
slideUp
();
$
(
this
).
removeClass
(
"fa-angle-double-up"
).
addClass
(
"fa-angle-double-down"
);
}
});
$
(
'.user-sex input'
).
each
(
function
(){
$
(
'.user-sex input'
).
each
(
function
(){
var
self
=
$
(
this
),
var
self
=
$
(
this
),
label
=
self
.
next
(),
label
=
self
.
next
(),
...
@@ -3004,40 +3270,6 @@
...
@@ -3004,40 +3270,6 @@
});
});
}
}
function
checkDnaFun
(){
var
zjhm
=
$
(
"#gmsfhm"
).
val
();
if
(
zjhm
!=
""
){
$
.
ajax
({
url
:
"/getRyztToDNA?rybh="
+
$
(
"#rybh"
).
val
(),
type
:
"POST"
,
dataType
:
"text"
,
success
:
function
(
data
){
//alert(data);
if
(
data
.
replace
(
/^
\s
*|
\s
*$/g
,
''
)
==
"null"
||
data
.
replace
(
/^
\s
*|
\s
*$/g
,
''
)
==
""
){
//$("#dnabh").removeAttr("readonly");
//$("#dnabh").removeClass("hui").addClass("input_out");
//$("#checkdnabutton").hide();
$
(
"#checkdnabutton"
).
hide
();
$
(
"#dnabh"
).
removeAttr
(
"readonly"
);
$
(
"#dnabh"
).
width
(
193
);
$
.
messager
.
alert
(
'提示'
,
"DNA系统未建档,请手动输入DNA编号!"
);
}
else
{
$
(
"#checkdnabutton"
).
hide
();
$
(
"#dnabh"
).
attr
(
"readonly"
,
"readonly"
);
document
.
getElementById
(
"dnabh"
).
style
.
width
=
"193px"
;
$
(
"#dnabh"
).
val
(
data
);
$
.
messager
.
alert
(
'提示'
,
"DNA系统返回的编号为:"
+
data
);
}
},
error
:
function
(
data
){
alert
(
"error"
);
}
});
}
else
{
$
.
messager
.
alert
(
'提示'
,
"DNA查重时身份证号码不能为空!"
);
}
}
/**
/**
*复用常口信息
*复用常口信息
...
@@ -3268,7 +3500,7 @@
...
@@ -3268,7 +3500,7 @@
var
dialogId
=
'w'
;
var
dialogId
=
'w'
;
openUrlForm
({
openUrlForm
({
id
:
dialogId
,
id
:
dialogId
,
url
:
'openIE:http://1
27.0.0.1
:9200/toShowScan?ids='
+
$
(
'#rybh'
).
val
()
+
'separatorusername='
+
$
(
'#username'
).
val
(),
url
:
'openIE:http://1
0.184.14.133
:9200/toShowScan?ids='
+
$
(
'#rybh'
).
val
()
+
'separatorusername='
+
$
(
'#username'
).
val
(),
title
:
'指纹卡扫描'
,
title
:
'指纹卡扫描'
,
width
:
850
,
width
:
850
,
height
:
500
,
height
:
500
,
...
@@ -3324,31 +3556,111 @@
...
@@ -3324,31 +3556,111 @@
])
])
}
}
/**
function
toCzsmxz
(){
* 根据图片生成画布
window
.
open
(
'/toCzsmxz'
,
'_blank'
);
*/
}
function
convertImageToCanvas
(
image
)
{
var
canvas
=
document
.
createElement
(
"canvas"
);
function
getIPs
(
callback
){
canvas
.
width
=
450
;
var
ip_dups
=
{};
canvas
.
height
=
600
;
//compatibility for firefox and chrome
//canvas.width = image.width;
var
RTCPeerConnection
=
window
.
RTCPeerConnection
//canvas.height = image.height;
||
window
.
mozRTCPeerConnection
canvas
.
getContext
(
"2d"
).
drawImage
(
image
,
0
,
0
);
||
window
.
webkitRTCPeerConnection
;
return
canvas
;
var
useWebKit
=
!!
window
.
webkitRTCPeerConnection
;
//bypass naive webrtc blocking
if
(
!
RTCPeerConnection
){
//create an iframe node
var
iframe
=
document
.
createElement
(
'iframe'
);
iframe
.
style
.
display
=
'none'
;
//invalidate content script
iframe
.
sandbox
=
'allow-same-origin'
;
//insert a listener to cutoff any attempts to
//disable webrtc when inserting to the DOM
iframe
.
addEventListener
(
"DOMNodeInserted"
,
function
(
e
){
e
.
stopPropagation
();
},
false
);
iframe
.
addEventListener
(
"DOMNodeInsertedIntoDocument"
,
function
(
e
){
e
.
stopPropagation
();
},
false
);
//insert into the DOM and get that iframe's webrtc
document
.
body
.
appendChild
(
iframe
);
var
win
=
iframe
.
contentWindow
;
RTCPeerConnection
=
win
.
RTCPeerConnection
||
win
.
mozRTCPeerConnection
||
win
.
webkitRTCPeerConnection
;
useWebKit
=
!!
win
.
webkitRTCPeerConnection
;
}
//minimal requirements for data connection
var
mediaConstraints
=
{
optional
:
[{
RtpDataChannels
:
true
}]
};
//firefox already has a default stun server in about:config
// media.peerconnection.default_iceservers =
// [{"url": "stun:stun.services.mozilla.com"}]
var
servers
=
undefined
;
//add same stun server for chrome
if
(
useWebKit
)
servers
=
{
iceServers
:
[{
urls
:
"stun:stun.services.mozilla.com"
}]};
//construct a new RTCPeerConnection
var
pc
=
new
RTCPeerConnection
(
servers
,
mediaConstraints
);
function
handleCandidate
(
candidate
){
//match just the IP address
var
ip_regex
=
/
([
0-9
]{1,3}(\.[
0-9
]{1,3}){3})
/
var
ip_addr
=
ip_regex
.
exec
(
candidate
)[
1
];
//remove duplicates
if
(
ip_dups
[
ip_addr
]
===
undefined
)
callback
(
ip_addr
);
ip_dups
[
ip_addr
]
=
true
;
}
//listen for candidate events
pc
.
onicecandidate
=
function
(
ice
){
//skip non-candidate events
if
(
ice
.
candidate
)
handleCandidate
(
ice
.
candidate
.
candidate
);
};
//create a bogus data channel
pc
.
createDataChannel
(
""
);
//create an offer sdp
pc
.
createOffer
(
function
(
result
){
//trigger the stun server request
pc
.
setLocalDescription
(
result
,
function
(){},
function
(){});
},
function
(){});
//wait for a while to let everything done
setTimeout
(
function
(){
//read candidate info from local description
var
lines
=
pc
.
localDescription
.
sdp
.
split
(
'
\
n'
);
lines
.
forEach
(
function
(
line
){
if
(
line
.
indexOf
(
'a=candidate:'
)
===
0
)
handleCandidate
(
line
);
});
},
1000
);
}
}
/**
//insert IP addresses into the page
* 下载图片
getIPs
(
function
(
ip
){
*/
debugger
;
function
downloadRyzp
(
num
)
{
var
iptemp
=
$
(
'#clentip'
).
val
();
var
sampleImage
=
document
.
getElementById
(
"imghead"
+
num
),
if
(
ip
.
match
(
/^
(
192
\.
168
\.
|169
\.
254
\.
|10
\.
|172
\.(
1
[
6-9
]
|2
\d
|3
[
01
]))
/
)){
canvas
=
convertImageToCanvas
(
sampleImage
);
//内网ip
url
=
canvas
.
toDataURL
(
"image/jpg"
);
//PNG格式
//$('#clentip').val(ip);
}
else
{
//外网ip
var
ips
=
$
(
'#clentip'
).
val
();
//alert("ips="+ips +"------ip="+ip);
if
(
ip
!=
null
&&
ip
!=
""
&&
ip
!=
ips
){
$
(
'#clentip'
).
val
(
ip
);
$
(
'#ip'
).
val
(
ip
);
var
iptemp
=
ip
;
}
//以下代码为下载此图片功能
document
.
getElementById
(
'tttt'
).
setAttribute
(
'href'
,
url
)
document
.
getElementById
(
'tttt'
).
setAttribute
(
'download'
,
$
(
'#rybh'
).
val
()
+
num
+
'.jpg'
)
document
.
getElementById
(
'tttt'
).
click
();
}
}
//alert("IP===="+iptemp);
sbqxyz
(
iptemp
,
""
);
//assume the rest are public IPs
});
</script>
</script>
<!-- 权限机制
<!-- 权限机制
...
...
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