Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
曹鹏
bigdatainterservice
Commits
7c8a475e
Commit
7c8a475e
authored
Jul 27, 2019
by
chentian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
40b13cde
74a36f8f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1210 additions
and
16 deletions
+1210
-16
src/main/java/com/founder/interservice/mapper/xzxt/QyphMapper.java
+4
-0
src/main/java/com/founder/interservice/sksjzc/qyph/controller/QyphController.java
+84
-16
src/main/java/com/founder/interservice/sksjzc/qyph/service/QyphService.java
+1
-0
src/main/java/com/founder/interservice/sksjzc/qyph/service/impl/QyphServiceImpl.java
+16
-0
src/main/java/com/founder/interservice/spatiotemporalBackTrack/model/SBTResultDetail.java
+2
-0
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
+3
-0
src/main/resources/static/js/qyphResult.js
+774
-0
src/main/webapp/WEB-INF/jsp/qyph/qyphResult.jsp
+326
-0
No files found.
src/main/java/com/founder/interservice/mapper/xzxt/QyphMapper.java
View file @
7c8a475e
...
@@ -17,4 +17,8 @@ public interface QyphMapper {
...
@@ -17,4 +17,8 @@ public interface QyphMapper {
int
queryQyphTaskResultCount
(
@Param
(
"taskId"
)
String
taskId
);
int
queryQyphTaskResultCount
(
@Param
(
"taskId"
)
String
taskId
);
List
<
SpatiotemporalBackTrackResult
>
queryQyphTaskResults
(
@Param
(
"taskId"
)
String
taskId
);
List
<
SpatiotemporalBackTrackResult
>
queryQyphTaskResults
(
@Param
(
"taskId"
)
String
taskId
);
int
queryQyphTaskResultCount
(
SpatiotemporalBackTrackResult
param
);
List
<
SpatiotemporalBackTrackResult
>
queryQyphTaskResultPage
(
SpatiotemporalBackTrackResult
param
);
}
}
src/main/java/com/founder/interservice/sksjzc/qyph/controller/QyphController.java
View file @
7c8a475e
package
com
.
founder
.
interservice
.
sksjzc
.
qyph
.
controller
;
package
com
.
founder
.
interservice
.
sksjzc
.
qyph
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.interservice.VO.ResultMap
;
import
com.founder.interservice.sksjzc.qyph.service.QyphService
;
import
com.founder.interservice.sksjzc.qyph.service.QyphService
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrack
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrackResult
;
import
com.founder.interservice.spatiotemporalBackTrack.model.SpatiotemporalBackTrackResult
;
import
com.founder.interservice.spatiotemporalBackTrack.service.SpatiotemporalBackTrackService
;
import
com.founder.interservice.util.EasyUIPage
;
import
com.founder.interservice.util.EasyUIPage
;
import
com.founder.interservice.util.XdhSpUtil
;
import
com.founder.interservice.util.XdhSpUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.ArrayList
;
import
java.text.SimpleDateFormat
;
import
java.util.HashMap
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
@CrossOrigin
@CrossOrigin
@Controller
@Controller
...
@@ -27,6 +25,8 @@ public class QyphController {
...
@@ -27,6 +25,8 @@ public class QyphController {
@Autowired
@Autowired
private
QyphService
qyphService
;
private
QyphService
qyphService
;
@Autowired
private
SpatiotemporalBackTrackService
spatiotemporalBackTrackService
;
@RequestMapping
(
"/getQyphTaskList"
)
@RequestMapping
(
"/getQyphTaskList"
)
@ResponseBody
@ResponseBody
...
@@ -70,18 +70,86 @@ public class QyphController {
...
@@ -70,18 +70,86 @@ public class QyphController {
@RequestMapping
(
"/getQyphTaskResult"
)
@RequestMapping
(
"/getQyphTaskResult"
)
@ResponseBody
@ResponseBody
public
Map
<
String
,
Object
>
getQyphTaskResult
(
String
taskId
){
public
EasyUIPage
getQyphTaskResult
(
String
taskId
,
EasyUIPage
page
,
Integer
rows
){
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
page
.
setPagePara
(
rows
);
SpatiotemporalBackTrackResult
param
=
new
SpatiotemporalBackTrackResult
();
param
.
setTaskId
(
taskId
);
try
{
try
{
List
<
SpatiotemporalBackTrackResult
>
list
=
qyphService
.
getQyphTaskResult
(
taskId
);
page
=
qyphService
.
getQyphTaskResultPage
(
page
,
param
);
result
.
put
(
"state"
,
"success"
);
result
.
put
(
"data"
,
list
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
result
.
put
(
"state"
,
"error"
);
result
.
put
(
"data"
,
new
ArrayList
<>());
}
}
return
result
;
return
page
;
}
@RequestMapping
(
"/toQyphTaskResultPage"
)
public
ModelAndView
toQyphTaskResultPage
(
String
taskId
,
String
sfzh
,
String
fsrjh
){
ModelAndView
mav
=
new
ModelAndView
();
mav
.
setViewName
(
"qyph/qyphResult"
);
SpatiotemporalBackTrack
sbt
=
spatiotemporalBackTrackService
.
findByTaskId
(
taskId
);
//初始化相关字段
String
taskName
=
""
;
String
taskCaseId
=
""
;
Date
rksj
=
null
;
String
qyName
=
""
;
String
qybj
=
""
;
String
qyArea
=
""
;
Date
startTime
=
null
;
Date
endTime
=
null
;
//当获取的对象不为空时,获取相应的值
if
(
null
!=
sbt
)
{
taskName
=
sbt
.
getTaskName
();
rksj
=
sbt
.
getRksj
();
taskCaseId
=
sbt
.
getTaskCaseId
();
qyName
=
sbt
.
getQyName
();
qybj
=
sbt
.
getQybj
();
qyArea
=
sbt
.
getQyArea
();
startTime
=
sbt
.
getStartTime
();
endTime
=
sbt
.
getEndTime
();
}
//入库时间
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
(
null
!=
rksj
)
{
mav
.
addObject
(
"rksj"
,
formatter
.
format
(
rksj
));
}
else
{
mav
.
addObject
(
"rksj"
,
""
);
}
mav
.
addObject
(
"taskId"
,
taskId
);
mav
.
addObject
(
"taskName"
,
taskName
);
mav
.
addObject
(
"sfzh"
,
sfzh
);
//当前用户身份正好(用采合一、人员档案用)
mav
.
addObject
(
"fsrjh"
,
fsrjh
);
mav
.
addObject
(
"taskCaseId"
,
taskCaseId
);
mav
.
addObject
(
"qyName"
,
qyName
);
mav
.
addObject
(
"qybj"
,
qybj
);
mav
.
addObject
(
"qyArea"
,
qyArea
);
mav
.
addObject
(
"startTime"
,
startTime
);
mav
.
addObject
(
"endTime"
,
endTime
);
//获取智能推荐人员数量
SBTResultDetail
entity
=
new
SBTResultDetail
();
entity
.
setTaskId
(
taskId
);
entity
.
setIsCount
(
"true"
);
ResultMap
resultMap
=
spatiotemporalBackTrackService
.
tjry
(
entity
);
mav
.
addObject
(
"tjryCount"
,
resultMap
.
getCount
());
//获取智能推荐号码数量
entity
=
new
SBTResultDetail
();
entity
.
setTaskId
(
taskId
);
entity
.
setIsCount
(
"true"
);
resultMap
=
spatiotemporalBackTrackService
.
tjhm
(
entity
);
mav
.
addObject
(
"tjhmCount"
,
resultMap
.
getCount
());
return
mav
;
}
@RequestMapping
(
"/getQyphTaskInfo/{taskId}"
)
@ResponseBody
public
SpatiotemporalBackTrack
getQyphTaskInfo
(
@PathVariable
(
"taskId"
)
String
taskId
){
SpatiotemporalBackTrack
task
=
new
SpatiotemporalBackTrack
();
try
{
task
=
spatiotemporalBackTrackService
.
findByTaskId
(
taskId
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
task
;
}
}
}
}
src/main/java/com/founder/interservice/sksjzc/qyph/service/QyphService.java
View file @
7c8a475e
...
@@ -31,4 +31,5 @@ public interface QyphService {
...
@@ -31,4 +31,5 @@ public interface QyphService {
public
List
<
SpatiotemporalBackTrackResult
>
getQyphTaskResult
(
String
taskId
);
public
List
<
SpatiotemporalBackTrackResult
>
getQyphTaskResult
(
String
taskId
);
EasyUIPage
getQyphTaskResultPage
(
EasyUIPage
page
,
SpatiotemporalBackTrackResult
param
);
}
}
src/main/java/com/founder/interservice/sksjzc/qyph/service/impl/QyphServiceImpl.java
View file @
7c8a475e
...
@@ -130,4 +130,20 @@ public class QyphServiceImpl implements QyphService {
...
@@ -130,4 +130,20 @@ public class QyphServiceImpl implements QyphService {
}
}
return
list
;
return
list
;
}
}
@Override
public
EasyUIPage
getQyphTaskResultPage
(
EasyUIPage
page
,
SpatiotemporalBackTrackResult
param
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"startNum"
,
page
.
getBegin
());
map
.
put
(
"endNum"
,
page
.
getEnd
());
map
.
put
(
"entity"
,
param
);
int
total
=
qyphMapper
.
queryQyphTaskResultCount
(
param
);
List
<
SpatiotemporalBackTrackResult
>
list
=
new
ArrayList
<>();
if
(
total
>
0
){
list
=
qyphMapper
.
queryQyphTaskResultPage
(
param
);
}
page
.
setRows
(
list
);
return
page
;
}
}
}
src/main/java/com/founder/interservice/spatiotemporalBackTrack/model/SBTResultDetail.java
View file @
7c8a475e
...
@@ -30,6 +30,8 @@ public class SBTResultDetail extends PageBean {
...
@@ -30,6 +30,8 @@ public class SBTResultDetail extends PageBean {
private
String
csrqEnd
;
private
String
csrqEnd
;
private
String
ryzpStr
;
private
String
ryzpStr
;
private
String
type
;
private
String
type
;
private
Integer
count
;
private
String
sfCheck
;
private
int
startNum
;
private
int
startNum
;
private
int
endNum
;
private
int
endNum
;
...
...
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
View file @
7c8a475e
...
@@ -290,6 +290,7 @@
...
@@ -290,6 +290,7 @@
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_VALUE as objectValue,
t.OBJECT_VALUE as objectValue,
t.COUNT as count,
td.TASK_RESULT_ID as taskResultId,
td.TASK_RESULT_ID as taskResultId,
td.BIRTHDAY as birthday,
td.BIRTHDAY as birthday,
td.NAME as name,
td.NAME as name,
...
@@ -392,6 +393,7 @@
...
@@ -392,6 +393,7 @@
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_VALUE as objectValue,
t.OBJECT_VALUE as objectValue,
t.COUNT as count,
td.TASK_RESULT_ID as taskResultId,
td.TASK_RESULT_ID as taskResultId,
td.BIRTHDAY as birthday,
td.BIRTHDAY as birthday,
td.NAME as name,
td.NAME as name,
...
@@ -539,6 +541,7 @@
...
@@ -539,6 +541,7 @@
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE as objectType,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_TYPE_NAME as objectTypeName,
t.OBJECT_VALUE as objectValue,
t.OBJECT_VALUE as objectValue,
t.COUNT as count,
td.TASK_RESULT_ID as taskResultId,
td.TASK_RESULT_ID as taskResultId,
td.BIRTHDAY as birthday,
td.BIRTHDAY as birthday,
td.NAME as name,
td.NAME as name,
...
...
src/main/resources/static/js/qyphResult.js
0 → 100644
View file @
7c8a475e
var
dataCsrq
;
var
dataSfbs
;
var
number
;
$
(
function
()
{
loading
(
'open'
,
'页面加载中,请稍候...'
);
doQuery
();
number
=
0
;
doQueryFL
();
$
(
"input:radio[name='presentType']"
).
change
(
function
(){
//判断是列表还是区块
var
presentTypeVal
=
$
(
'input[name="presentType"]:checked'
).
val
();
if
(
presentTypeVal
==
"DList"
){
$
(
"#qkdiv"
).
hide
();
$
(
"#listdiv"
).
show
();
$
(
"#skhsjgzsTable"
).
datagrid
(
"resize"
);
//重新加载表格的宽度高度,否则隐藏显示easyui表格之后会出现表格不显示问题
}
else
if
(
presentTypeVal
==
"EZUIGrid"
)
{
$
(
"#qkdiv"
).
show
();
$
(
"#listdiv"
).
hide
();
}
else
if
(
presentTypeVal
==
"Excel"
)
{
exportExcel
();
}
});
});
function
loading
(
type
,
msg
){
var
msg
=
msg
||
'加载中...'
;
var
loading_img_url
=
'/common/layer/skin/default/loading-0.gif'
;
var
loading_html
=
'<div id="loadingMsk">'
+
'<div class="loadingPage">'
+
'<img src="'
+
loading_img_url
+
'" alt="loading">'
+
'<span class="msg">'
+
msg
+
'</span>'
+
'</div>'
+
'</div>'
;
if
(
$
(
'#loadingMsk'
).
length
==
0
){
$
(
'body'
).
append
(
loading_html
);
}
if
(
type
==
'open'
){
$
(
'#loadingMsk'
).
fadeIn
(
'fast'
);
}
else
if
(
type
==
'close'
){
$
(
'#loadingMsk'
).
fadeOut
(
'fast'
).
remove
();
}
else
{
console
.
log
(
'加载效果处理方式参数错误!'
);
return
false
;
}
}
function
doClearFl
(){
$
(
"form input[type=text]:visible,form input[class='textbox-value']"
).
val
(
""
);
//将所有可见的input和class是textbox-value的input框 即代码选择框 的值清空
$
(
"input[name='navOption']"
).
each
(
function
()
{
this
.
checked
=
false
;
});
}
var
table_title
=
[
{
title
:
'标识号'
,
field
:
'objectValue'
,
align
:
'center'
,
width
:
"20%"
,
formatter
:
function
(
val
,
row
,
index
){
return
"<span style='display:inline-block;height:18px;line-height:17px;padding:0 3px;border: 1px solid #f35d13;color:#f35d13;border-radius:5px;font-size:10px;position:relative;top:-1px;'>"
+
row
.
objectTypeName
+
"</span>"
+
getBshYchy
(
row
);
}
},
{
title
:
'号码'
,
field
:
'zjhm'
,
align
:
'center'
,
width
:
"20%"
,
formatter
:
function
(
val
,
row
,
index
){
var
hm
=
''
;
var
lx
=
getLx
(
row
);
if
(
lx
!=
'--'
){
hm
=
"<span style='display:inline-block;height:18px;line-height:17px;padding:0 3px;border: 1px solid #f35d13;color:#f35d13;border-radius:5px;font-size:10px;position:relative;top:-1px;'>"
+
lx
+
"</span>"
;
}
return
hm
+
getSfzhYchy
(
row
);
}},
{
title
:
"出现次数"
,
field
:
"count"
,
align
:
"center"
,
width
:
"8%"
},
{
title
:
"姓名"
,
field
:
"name"
,
align
:
'center'
,
width
:
'14%'
,
formatter
:
function
(
val
,
row
,
index
){
return
getRybq
(
row
);}},
{
title
:
"性别"
,
field
:
"sex"
,
align
:
'center'
,
width
:
'10%'
,
formatter
:
function
(
val
,
row
,
index
){
return
getXbmc
(
row
);}},
{
title
:
"出生日期"
,
field
:
"birthday"
,
align
:
'center'
,
width
:
'12%'
,
formatter
:
function
(
val
,
row
,
index
){
return
getBirthday
(
row
);
}}
];
function
doQuery
(){
$
(
'#skhsjgzsTable'
).
datagrid
({
url
:
"/getSkhsTaskResultDetailList"
,
onClickRow
:
clickRow
,
columns
:
[
table_title
],
queryParams
:
serializeObject
(
$
(
"form[name='skhsjgzsForm']"
)),
striped
:
true
,
fitColumns
:
true
,
singleSelect
:
true
,
pagination
:
true
,
nowrap
:
false
,
//设置是否换行 false换行 true表示不换行
pageSize
:
20
,
pageList
:
[
10
,
20
,
50
,
100
,
150
,
200
],
showFooter
:
true
,
selectOnCheck
:
false
,
checkOnSelect
:
false
,
pageNumber
:
1
,
loadFilter
:
function
(
data
){
$
(
".total"
).
html
(
data
.
total
);
return
data
;
},
onLoadSuccess
:
function
(
data
)
{
//easyui table加载成功之后再查询区块查询方法
doQueryqk
();
}
});
};
//分类导航查询按钮
function
doQueryFL
(){
//先清除所有分类查询条件
$
(
".fltj"
).
val
(
""
);
//判断是列表还是区块
var
presentTypeVal
=
$
(
'input[name="presentType"]:checked'
).
val
();
if
(
presentTypeVal
==
"DList"
){
$
(
"#qkdiv"
).
hide
();
$
(
"#listdiv"
).
show
();
}
else
if
(
presentTypeVal
==
"EZUIGrid"
)
{
$
(
"#qkdiv"
).
show
();
$
(
"#listdiv"
).
hide
();
}
//ajax 查询出所选分类的count值,并显示分类导航
var
checkVal
=
"BZHLX,RYBQ,SJHMGSD,SJHMYYS,"
;
if
(
checkVal
.
length
>
0
){
$
(
"#checkVal"
).
val
(
checkVal
);
$
.
ajax
({
method
:
'post'
,
url
:
'getSkhsFlCountList'
,
dateType
:
'json'
,
data
:
serializeObject
(
$
(
"form[name='skhsjgzsForm']"
)),
success
:
function
(
dataList
)
{
//alert(JSON.stringify(dataList));
$
(
"#fldh"
).
empty
();
$
.
each
(
dataList
,
function
(
item
,
data
){
$
.
each
(
data
,
function
(
index2
,
value2
){
$
(
"#fldh"
).
show
();
var
flStr
=
""
;
if
(
index2
==
'BZHLX'
){
flStr
=
"标识号类型"
;
}
else
if
(
index2
==
'XB'
){
flStr
=
"性别"
;
}
else
if
(
index2
==
'RYBQ'
){
flStr
=
"人员背景"
;
}
else
if
(
index2
==
'SFBS'
){
flStr
=
"是否本市"
;
}
else
if
(
index2
==
'CSRQ'
){
flStr
=
"出生日期"
;
}
else
if
(
index2
==
'SJHMGSD'
){
flStr
=
"手机号码归属地"
;
}
else
if
(
index2
==
'SJHMYYS'
){
flStr
=
"手机号码运营商"
;
}
if
(
JSON
.
stringify
(
data
[
index2
])
!=
"[]"
)
{
$
(
"#fldh"
).
append
(
"<div class='newNav newNav"
+
index2
+
"' >"
+
"<div class='newNavbody' id='newNavbody"
+
index2
+
"'>"
+
"<div class='newLayoutDiv pull-clear'>"
+
"<a onclick=
\"
goBack()
\"
href='javascript:void(0)' class='newNavA pull-left'><i class='fa fa-th-large zdyfa'></i>"
+
flStr
+
"</a>"
+
"<span class='current-icon'onclick=
\"
goBackMd(this,'m')
\"
><<<span class='current-text'></span></span></a>"
+
"<span class='current-icon'onclick=
\"
goBackMd(this,'d')
\"
><<<span class='current-text'></span></span></a>"
+
"<span class='current-icon'><<<span class='current-text'></span></span></a>"
+
"<a onclick=
\"
goSlide(this)
\"
href='javascript:void(0)' class='newNavA newNavBtn newMore newNavTools pull-right'>更多+</a>"
+
/* "<a href='javascript:void(0)' onclick='' class='newNavA newNavBtn newMultival_1 newNavTools pull-right' title='图表筛选'> 图表</a>" +*/
"<div class='fillColorCheckBox pull-right'>"
+
"</div>"
+
"</div>"
);
}
if
(
index2
==
'CSRQ'
){
//出生日期单独循环newNavInfo
//把年,年月,年月日的内容拼接出来
var
y
=
""
;
dataCsrq
=
data
[
index2
];
$
.
each
(
data
[
index2
],
function
(
i
,
item
)
{
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
if
(
item
.
VALS
.
length
==
4
){
y
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index2
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
;
}
});
if
(
y
!=
""
)
{
debugger
;
$
(
"#newNavbody"
+
index2
).
append
(
"<div class='newNavInfo' isshowed='false' id='flnr"
+
index2
+
"y'>"
+
"<div class='newClear'></div>"
+
y
+
"</div>"
);
}
}
else
if
(
index2
==
'SJHMGSD'
){
//单独循环SFBS
var
sfbs
=
""
;
dataSfbs
=
data
[
index2
];
$
.
each
(
data
[
index2
],
function
(
i
,
item
)
{
if
(
item
.
COUNTS
>
0
){
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
if
(
item
.
PARENTS
==
'无'
){
sfbs
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index2
+
"','"
+
item
.
VALS
+
"','"
+
item
.
LEVELS
+
"')>"
+
str
+
"</a>"
;
}
}
});
if
(
sfbs
!=
""
)
{
$
(
"#newNavbody"
+
index2
).
append
(
"<div class='newNavInfo' isshowed='false' id='flnr"
+
index2
+
"y'>"
+
"<div class='newClear'></div>"
+
sfbs
+
"</div>"
);
}
}
else
{
//除了出生日期外,其他分类去掉class为current-icon的第一个span的onclick事件
/* $(".newNav").each(function(){}
$(this).find(".current-icon").eq(0).removeAttr("onclick").css({"color":"#666","cursor":"default"});
)};*/
$
(
".newNav"
+
index2
).
find
(
".current-icon"
).
eq
(
0
).
removeAttr
(
"onclick"
);
$
(
".newNav"
+
index2
).
find
(
".current-icon"
).
eq
(
0
).
css
({
"color"
:
"#666"
,
"cursor"
:
"default"
});
//去掉onclick事件,则置灰内容
//除出生日期外其他分类循环部分begin
$
(
"#newNavbody"
+
index2
).
append
(
"<div class='newNavInfo' isshowed='false' id='flnr"
+
index2
+
"'>"
+
"<div class='newClear'></div>"
);
$
.
each
(
data
[
index2
],
function
(
i
,
item
)
{
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
if
(
item
.
NAMES
!=
""
&&
item
.
NAMES
!=
null
){
if
(
item
.
NAMES
.
indexOf
(
" "
)
==
-
1
)
{
}
else
{
//有空格
item
.
NAMES
=
item
.
NAMES
.
replace
(
/
\s
+/g
,
"#"
);
item
.
VALS
=
item
.
VALS
.
replace
(
/
\s
+/g
,
"#"
);
}
}
if
(
item
.
COUNTS
>
0
){
$
(
"#flnr"
+
index2
).
append
(
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index2
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
);
}
});
$
(
"#fldh"
).
append
(
"</div>"
);
//除出生日期外其他分类循环部分end
}
$
(
"#fldh"
).
append
(
"</div>"
+
"</div>"
);
})
});
if
(
number
==
0
){
//doQuery();
number
++
;
}
},
error
:
function
(
e
)
{
$
.
messager
.
alert
({
title
:
'提示'
,
msg
:
"出错:"
+
e
});
}
})
}
else
{
//$.messager.alert({title:'提示',msg:'请选择分类导航!'});
$
(
"#fldh"
).
hide
();
$
(
"#fldh"
).
empty
();
//$("#objectType").val("");
//doQuery();
}
loading
(
'close'
);
//完成后关闭...转圈
}
function
doQueryqk
(){
$
(
"#qkdiv"
).
empty
();
var
rows
=
$
(
'#skhsjgzsTable'
).
datagrid
(
'getRows'
);
//获得所有行
var
html
=
""
;
$
.
each
(
rows
,
function
(
k
,
v
)
{
//这里的函数参数是键值对的形式,k代表键名,v代表值
var
srcurl
=
""
;
if
(
rows
[
k
].
zp
==
"data:image/gif;base64,"
){
srcurl
=
"/images/no_data.jpg"
}
else
{
srcurl
=
rows
[
k
].
zp
;
}
//处理性别
var
sexValue
=
getXbmc
(
rows
[
k
]);
//处理证件类型和证件号码
var
zjlx
=
getLx
(
rows
[
k
]);
var
hmurl
=
""
;
var
zjhm
=
rows
[
k
].
zjhm
;
if
(
zjlx
==
"--"
)
{
hmurl
=
"--"
;
}
else
if
(
zjlx
==
"手机号码"
){
getPhoneCity
(
rows
[
k
].
xxzjbh
,
rows
[
k
].
sjhm
,
"2"
);
hmurl
=
rows
[
k
].
sjhm
+
'<span style="color: rgb(255, 255, 255);padding: 0 3px;font-size: 8px;border-radius: 3px;background: #228b22;height: 14px;display: none;" id="'
+
rows
[
k
].
xxzjbh
+
'"></span><img src="/images/asjxx_ychy.png" width=20 height=20 onclick="sksjzcYchy(this,
\'
'
+
rows
[
k
].
objectValue
+
'
\'
,
\'
'
+
rows
[
k
].
sjhm
+
'
\'
,
\'
'
+
rows
[
k
].
objectType
+
'
\'
,
\'
3
\'
)"/>'
;
}
else
{
hmurl
=
zjhm
+
'<img src="/images/asjxx_ychy.png" width=20 height=20 onclick="sksjzcYchy(this,
\'
'
+
rows
[
k
].
objectValue
+
'
\'
,
\'
'
+
zjhm
+
'
\'
,
\'
'
+
rows
[
k
].
objectType
+
'
\'
,
\'
1
\'
)"/>'
;
}
//姓名
var
name
=
rows
[
k
].
name
;
var
nameurl
=
name
;
var
sfFzxyr
=
rows
[
k
].
sfFzxyr
;
var
sfGwry
=
rows
[
k
].
sfGwry
;
var
qkryBq
=
""
;
//前科人员标签
var
gwryBq
=
""
;
//高位人员标签
var
zwBq
=
""
;
//暂无标签
if
(
name
==
"--"
){
nameurl
=
name
;
}
else
{
if
(
sfFzxyr
!=
null
&&
sfFzxyr
!=
""
&&
sfFzxyr
!=
undefined
)
{
qkryBq
=
"<a class='re_hqzt re_qs'>前科</a>"
;
nameurl
+=
qkryBq
;
}
if
(
sfGwry
!=
null
&&
sfGwry
!=
""
&&
sfGwry
!=
undefined
)
{
gwryBq
=
"<a class='re_hqzt re_hb'>高危</a>"
;
nameurl
+=
gwryBq
;
}
/*if (qkryBq == "" && gwryBq ==""){
zwBq = "<a class='re_hqzt re_no'>标签暂无</a>";
nameurl += zwBq;
}*/
}
html
+=
'<div class="currResult">'
+
' <p class="currResultPImg">'
+
' <img src="'
+
srcurl
+
'">'
+
' </p>'
+
' <p class="currResultP">'
+
' <span class="navSpan rtitleSpan noLinkSpan"><font class="num">'
+
(
k
+
1
)
+
'</font>.标识号:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan autoWidthSpan isLongSpan">
\
n'
+
' <a class="commonPopoverlink" search="is-ajbh" searchkey="AJ_ASJBH" onclick="" title="'
+
rows
[
k
].
objectValue
+
'">'
+
rows
[
k
].
objectValue
+
'</a><img src="/images/asjxx_ychy.png" width=20 height=20 onclick="sksjzcYchy(this,
\'
'
+
rows
[
k
].
objectValue
+
'
\'
,
\'
'
+
zjhm
+
'
\'
,
\'
'
+
rows
[
k
].
objectType
+
'
\'
,
\'
2
\'
)"/>
\
n'
+
' </span>
\
n'
+
' </p>
\
n'
+
' <p class="currResultP">
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">标识号类型:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
rows
[
k
].
objectTypeName
+
'">'
+
rows
[
k
].
objectTypeName
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">姓名:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
rows
[
k
].
name
+
'">'
+
nameurl
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">类型:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
zjlx
+
'">'
+
zjlx
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">号码:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
zjhm
+
'">'
+
hmurl
+
'</span>
\
n'
+
' </p>
\
n'
+
' <p class="currResultP">
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">性别:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
sexValue
+
'">'
+
sexValue
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">年龄:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
rows
[
k
].
age
+
'">'
+
rows
[
k
].
age
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">现住址地址:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
rows
[
k
].
xzzDzmc
+
'">'
+
rows
[
k
].
xzzDzmc
+
'</span>
\
n'
+
' <span class="navSpan rtitleSpan noLinkSpan">出生地地址:</span>
\
n'
+
' <span id="" class="navSpan noLinkSpan singleColumns" title="'
+
rows
[
k
].
csdDzmc
+
'">'
+
rows
[
k
].
csdDzmc
+
'</span>
\
n'
+
' </p>
\
n'
+
' </div>'
});
$
(
"#qkdiv"
).
append
(
html
);
}
function
flclick
(
obj
,
value
,
index
,
object_type
,
levels
){
$
(
".newNavbody"
).
addClass
(
"pb"
);
//点击之后分类框body为空固定高度
if
(
index
==
"CSRQ"
)
{
var
m
=
""
;
var
d
=
""
;
$
.
each
(
dataCsrq
,
function
(
i
,
item
)
{
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
str
=
str
.
replace
(
'年'
,
'-'
);
str
=
str
.
replace
(
'月'
,
'-'
);
if
(
item
.
VALS
.
length
==
7
&&
item
.
VALS
.
substring
(
0
,
4
)
==
value
){
m
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
;
}
else
if
(
item
.
VALS
.
length
==
10
&&
item
.
VALS
.
substring
(
0
,
7
)
==
value
){
d
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
;
}
});
if
(
m
!=
""
)
{
$
(
"#flnr"
+
index
+
"m"
).
remove
();
//删除div每次新append
$
(
"#newNavbody"
+
index
).
append
(
"<div class='newNavInfo-m' style='display: none;' id='flnr"
+
index
+
"m'>"
+
"<div class='newClear'></div>"
+
m
+
"</div>"
);
//点击年时候 显示对应的“<<值”
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
0
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
0
).
html
(
value
);
}
if
(
d
!=
""
){
$
(
"#flnr"
+
index
+
"d"
).
remove
();
$
(
"#newNavbody"
+
index
).
append
(
"<div class='newNavInfo-d' style='display: none;' id='flnr"
+
index
+
"d'>"
+
"<div class='newClear'></div>"
+
d
+
"</div>"
);
//点击月时候 显示对应的“<<值”
value
=
value
.
replace
(
"年"
,
"-"
)
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
1
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
1
).
html
(
value
);
}
if
(
value
.
length
==
10
){
//点击日时候 显示对应的“<<值”
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
2
).
show
();
value
=
value
.
replace
(
"年"
,
"-"
)
value
=
value
.
replace
(
"月"
,
"-"
)
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
2
).
html
(
value
);
}
//点击出生日期的分类时候移除固定高度
$
(
obj
).
parents
(
".newNavbody"
).
removeClass
(
"pb"
);
}
else
if
(
index
==
"SJHMGSD"
){
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
levels
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
levels
).
html
(
value
);
var
fbs
=
""
;
$
.
each
(
dataSfbs
,
function
(
i
,
item
)
{
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
if
(
item
.
PARENTS
==
object_type
){
//当数据的父类等于你点击的这个值时,则显示下级内容
fbs
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index
+
"','"
+
item
.
VALS
+
"','"
+
item
.
LEVELS
+
"')>"
+
str
+
"</a>"
;
}
});
if
(
fbs
!=
""
)
{
$
(
"#flnr"
+
index
+
"m"
).
remove
();
//删除div每次新append
$
(
"#newNavbody"
+
index
).
append
(
"<div class='newNavInfo-m' style='display: none;' id='flnr"
+
index
+
"m'>"
+
"<div class='newClear'></div>"
+
fbs
+
"</div>"
);
//如果没有onclick事件则增加onclick事件
if
(
$
(
".newNav"
+
index
).
find
(
".current-icon"
).
eq
(
levels
).
attr
(
"onclick"
)
==
undefined
){
var
backStr
=
""
;
if
(
levels
==
1
){
backStr
=
"m"
;
}
//增加onclick事件应该用levels判断参数传入goBackMd方法第二个参数处,不应该写死
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
levels
).
attr
(
"onclick"
,
"goBackMd(this,'m')"
);
//设置选中内容为蓝色
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
levels
).
css
({
"color"
:
"#359FF1"
,
"cursor"
:
"pointer"
});
}
}
else
{
$
(
"#flnr"
+
index
+
"m"
).
hide
();
//隐藏
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
levels
).
removeAttr
(
"onclick"
);
//去掉onclick
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
levels
).
css
({
"color"
:
"#666"
,
"cursor"
:
"default"
});
//颜色置灰
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-m"
).
hide
();
}
$
(
obj
).
parents
(
".newNavbody"
).
removeClass
(
"pb"
);
}
else
{
/*出生日期以外的分类选中添加'<< ' 样式*/
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
0
).
show
();
if
(
index
==
"SJHMYYS"
){
value
=
value
.
replace
(
"#"
,
" "
);
}
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
0
).
html
(
value
);
}
/**/
$
(
".newLayoutDiv"
).
siblings
().
hide
();
//分类选中之后,隐藏其他内容
if
(
index
==
"CSRQ"
||
fbs
!=
""
){
//点击年 分类框body显示对应的月份
if
(
$
(
obj
).
parents
(
".newNavInfo"
).
length
==
1
||
$
(
obj
).
parents
(
".newNavMoreInfo"
).
length
==
1
)
{
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo"
).
hide
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-m"
).
show
();
}
if
(
$
(
obj
).
parents
(
".newNavInfo-m"
).
length
==
1
){
//点击月 分类框body显示对应的日
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-m"
).
hide
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-d"
).
show
();
}
}
if
(
index
==
"BZHLX"
){
$
(
"#objectType"
).
val
(
object_type
);
}
else
if
(
index
==
"CSRQ"
){
$
(
"#birthday"
).
val
(
object_type
);
}
else
if
(
index
==
"XB"
){
$
(
"#sex"
).
val
(
object_type
);
}
else
if
(
index
==
"RYBQ"
){
var
qkgw
=
object_type
.
split
(
','
);
$
(
"#sfFzxyr"
).
val
(
qkgw
[
0
]);
$
(
"#sfGwry"
).
val
(
qkgw
[
1
]);
$
(
"#sfbs"
).
val
(
"1"
);
}
else
if
(
index
==
"SJHMGSD"
){
if
(
levels
==
"0"
){
$
(
"#sjhmgsd"
).
val
(
object_type
);
$
(
"#sjhmgsdsj"
).
val
(
0
);
}
else
{
$
(
"#sjhmgsd"
).
val
(
object_type
);
$
(
"#sjhmgsdsj"
).
val
(
1
);
}
}
else
if
(
index
==
'SJHMYYS'
){
$
(
"#sjhmyys"
).
val
(
object_type
.
replace
(
"#"
,
" "
));
}
doQuery
();
}
function
goBack
(){
$
(
".current-icon"
).
hide
();
$
(
".current-text"
).
html
(
""
);
$
(
".newLayoutDiv"
).
siblings
().
hide
();
$
(
".newNavbody"
).
removeClass
(
"pb"
);
$
(
".newNavInfo,.newNavMoreInfo"
).
show
();
//清空条件
$
(
".fltj"
).
val
(
""
);
doQuery
();
}
function
goBackMd
(
obj
,
index
){
if
(
index
==
"m"
){
//年份的“<值”点击回退 隐藏月和日的“<值”
$
(
obj
).
parent
(
".newLayoutDiv"
).
find
(
".current-icon:eq(1),.current-icon:eq(2)"
).
hide
();
$
(
obj
).
parent
(
".newLayoutDiv"
).
find
(
".current-text:eq(1),.current-text:eq(2)"
).
html
(
""
);
}
else
if
(
index
==
"d"
){
//月份的“<值”点击回退 隐藏日的“<值”
$
(
obj
).
next
(
".current-icon"
).
hide
();
$
(
obj
).
next
(
".current-icon"
).
find
(
".current-text"
).
html
(
""
);
}
$
(
".newLayoutDiv"
).
siblings
().
hide
();
$
(
".newNavInfo-"
+
index
).
show
();
var
val
=
$
(
obj
).
find
(
".current-text"
).
text
();
if
(
$
(
obj
).
prev
(
".newNavA"
).
text
()
==
'手机号码归属地导航'
){
$
(
"#sjhmgsd"
).
val
(
val
);
$
(
"#sjhmgsdsj"
).
val
(
0
);
}
else
if
(
$
(
obj
).
prev
(
".newNavA"
).
text
()
==
'出生日期导航'
){
val
=
val
.
replace
(
/-/
,
'年'
);
val
=
val
.
replace
(
'-'
,
'月'
);
$
(
"#birthday"
).
val
(
val
);
}
doQuery
();
}
//暂时不用
function
getCzColumn
(
row
){
var
str
=
"<a href=
\"
javascript:;
\"
onclick=
\"
toZstp('"
+
row
.
xzzDzmc
+
"','"
+
row
.
sjhm
+
"','"
+
row
.
age
+
"','"
+
row
.
objectValue
+
"','"
+
row
.
objectTypeName
+
"','"
+
row
.
objectType
+
"','"
+
row
.
ryzpStr
+
"','"
+
row
.
name
+
"','"
+
row
.
birthday
+
"','"
+
row
.
zjlx
+
"','"
+
row
.
zjhm
+
"','"
+
row
.
sfFzxyr
+
"','"
+
row
.
sfGwry
+
"');
\"
class=
\"
cz
\"
><span>结果显示</span></a>"
;
return
str
;
}
function
toZstp
(
xzzDzmc
,
sjhm
,
age
,
objectValue
,
objectTypeName
,
objectType
,
ryzpStrs
,
name
,
birthday
,
zjlx
,
zjhm
,
sfFzxyr
,
sfGwry
){
var
cllxArr
=
[
"6424"
,
"6422"
,
"6423"
,
"7888"
];
var
ryzpStr
=
""
;
if
(
ryzpStrs
!=
"null"
&&
ryzpStrs
!=
''
){
ryzpStr
=
"<img src=
\"
data:image/gif;base64,"
+
ryzpStrs
+
"
\"
/>"
;
}
else
{
ryzpStr
=
"<img src=
\"
/images/timg.jpg
\"
style =
\"
height:121px;width:100px;
\"
/>"
;
}
//获取人员标签
if
(
sfFzxyr
==
"1"
){
//犯罪嫌疑人
$
(
"#sf-fzxyr"
).
css
(
"display"
,
"block"
);
}
if
(
sfGwry
==
"1"
){
//高危人员
$
(
"#sf-gwry"
).
css
(
"display"
,
"block"
);
}
var
objValue
=
objectValue
==
"null"
?
""
:
objectValue
;
var
objTypeName
=
objectTypeName
==
"null"
?
""
:
objectTypeName
;
var
zjlxx
=
zjlx
==
"null"
?
""
:
zjlx
;
var
zjhmm
=
zjhm
==
"null"
?
""
:
zjhm
;
var
agee
=
age
==
"null"
?
""
:
age
;
var
namee
=
name
==
"null"
?
""
:
name
;
var
birth
=
birthday
==
"null"
?
""
:
birthday
;
var
sj
=
sjhm
==
"null"
?
""
:
sjhm
;
var
xzz
=
xzzDzmc
==
"null"
?
""
:
xzzDzmc
;
if
(
cllxArr
.
indexOf
(
objectType
)
>
-
1
){
//车辆
$
(
"#clRyzp"
).
html
(
ryzpStr
);
$
(
"#cph"
).
text
(
objValue
);
$
(
"#cllx"
).
text
(
objTypeName
);
$
(
"#clZjlx"
).
text
(
zjlxx
);
$
(
"#clZjhm"
).
text
(
zjhmm
);
openClxx
();
}
else
{
//人员
$
(
"#ryzp"
).
html
(
ryzpStr
);
$
(
"#ryName"
).
text
(
namee
);
$
(
"#ryAge"
).
text
(
agee
);
$
(
"#rySfzh"
).
text
(
zjhmm
);
$
(
"#ryCsrq"
).
text
(
birth
);
$
(
"#ryDhhm"
).
text
(
sj
);
$
(
"#imsi"
).
text
(
objValue
);
$
(
"#ryAddress"
).
text
(
xzz
);
openRyxx
();
}
}
function
openRyxx
(){
$
(
'#ryjgzs'
).
dialog
({
buttons
:[{
//确定生成表头配置信息,并重新加载表格数据
text
:
'确定'
,
handler
:
function
(){
$
(
'#ryjgzs'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
},{
text
:
'取消'
,
handler
:
function
(){
$
(
'#ryjgzs'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
}],
onClose
:
function
()
{
$
(
document
).
unbind
(
"scroll"
);
}
});
$
(
'#ryjgzs'
).
show
().
dialog
(
'open'
);
$
(
"#ryjgzs"
).
window
(
'center'
);
var
tops
=
$
(
document
).
scrollTop
();
//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$
(
document
).
bind
(
"scroll"
,
function
(){
$
(
document
).
scrollTop
(
tops
);
});
}
function
openClxx
(){
$
(
'#clxxzs'
).
dialog
({
buttons
:[{
//确定生成表头配置信息,并重新加载表格数据
text
:
'确定'
,
handler
:
function
(){
$
(
'#clxxzs'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
},{
text
:
'取消'
,
handler
:
function
(){
$
(
'#clxxzs'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
}],
onClose
:
function
()
{
$
(
document
).
unbind
(
"scroll"
);
}
});
$
(
'#clxxzs'
).
show
().
dialog
(
'open'
);
$
(
"#clxxzs"
).
window
(
'center'
);
var
tops
=
$
(
document
).
scrollTop
();
//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$
(
document
).
bind
(
"scroll"
,
function
(){
$
(
document
).
scrollTop
(
tops
);
});
}
function
exportExcel
(){
var
params
=
serializeObject
(
$
(
"form[name='skhsjgzsForm']"
));
$
.
messager
.
confirm
(
'确认'
,
"确定导出excel附件吗?"
,
function
(
r
)
{
if
(
r
)
{
window
.
open
(
"/exportSkhsTaskResultNewDetailExcel?projectName=00&yhCate=00&taskId="
+
params
.
taskId
+
"&objectValue="
+
params
.
objectValue
+
"&birthday="
+
params
.
birthday
+
"&sfbs="
+
params
.
sfbs
+
"&sex="
+
params
.
sex
+
"&objectType="
+
params
.
objectType
+
"&sjhmgsd="
+
params
.
sjhmgsd
+
"&sjhmgsdsj="
+
params
.
sjhmgsdsj
+
"&sjhmyys="
+
params
.
sjhmyys
+
"&sfFzxyr="
+
params
.
sfFzxyr
+
"&sfGwry="
+
params
.
sfGwry
);
}
});
}
//更多收起
function
goSlide
(
thisObj
){
var
newNavbody
=
$
(
thisObj
).
parents
(
".newNavbody"
),
panelObj
=
newNavbody
.
find
(
".newNavInfo"
).
length
?
newNavbody
.
find
(
".newNavInfo"
)
:
newNavbody
.
find
(
".newNavMoreInfo"
),
isShowed
=
panelObj
.
attr
(
'isShowed'
)
===
'true'
;
if
(
isShowed
){
thisObj
.
innerHTML
=
'更多+'
;
panelObj
.
attr
(
'isShowed'
,
'false'
);
panelObj
.
removeClass
(
'newNavMoreInfo'
);
panelObj
.
addClass
(
'newNavInfo'
);
}
else
{
thisObj
.
innerHTML
=
'收起-'
;
panelObj
.
attr
(
'isShowed'
,
'true'
);
panelObj
.
addClass
(
'newNavMoreInfo'
);
panelObj
.
removeClass
(
'newNavInfo'
);
}
if
(
newNavbody
.
find
(
".newNavInfo"
).
css
(
"display"
)
==
"none"
||
newNavbody
.
find
(
".newNavMoreInfo"
).
css
(
"display"
)
==
"none"
){
newNavbody
.
find
(
".newNavInfo-m"
).
toggleClass
(
"newNavMoreInfo"
);
}
}
//添加区域快点击事件
$
(
".work-mark-wrap li"
).
click
(
function
(){
$
(
this
).
addClass
(
"picked"
).
siblings
().
removeClass
(
"picked"
);
});
//行点击事件
function
clickRow
(
rowIndex
,
rowData
,
value
){
//清楚其它行添加的样式
$
(
".work-mark-wrap li"
).
removeClass
(
"picked"
);
//获取区域字段,并进行处理
var
regionlist
=
rowData
.
regionlist
;
if
(
null
!=
regionlist
&&
""
!=
regionlist
&&
regionlist
.
length
>
0
)
{
regionlist
=
regionlist
.
substring
(
1
,
regionlist
.
length
-
1
);
var
regionArr
=
regionlist
.
split
(
","
);
for
(
var
i
in
regionArr
){
var
nameValue
=
regionArr
[
i
].
replace
(
/
\"
/g
,
""
).
trim
();
//区域名称相等的时候,给li添加选中的样式
$
(
"td[name='regionName']"
).
each
(
function
(){
var
name
=
$
(
this
).
text
();
if
(
nameValue
==
name
){
$
(
this
).
parents
(
"li"
).
addClass
(
"picked"
);
}
})
}
}
}
/*推荐人员、车辆弹框*/
function
showDialog
(
tjType
)
{
var
dialogId
=
'w'
,
imgUrl
=
"/images/logo.png"
;
//alert(JSON.stringify(tjry));
var
count
=
0
;
var
width
=
0
;
if
(
tjType
==
6
){
count
=
tjryCount
;
width
=
1100
;
}
else
if
(
tjType
==
7
){
count
=
tjhmCount
;
width
=
900
;
}
else
if
(
tjType
==
8
){
count
=
tjclCount
;
width
=
900
;
}
if
(
count
!=
0
){
openUrlForm
({
id
:
dialogId
,
url
:
'/toTjDialog?taskId='
+
taskId
+
"&isCount=false&tjCount="
+
count
+
"&tjType="
+
tjType
+
"&asjbh="
+
asjbh
+
"&sfzhUser="
+
sfzhUser
+
"&fsrjh="
+
fsrjh
+
"&djsjStr="
+
djsjStr
+
"&yhCate=00&projectName=刑专智慧侦查脑图"
,
title
:
'<img src="'
+
imgUrl
+
'" style="height:25px;position:relative;top:-2px;"/><span style="color: #06532f;font-weight: 600;">智能推荐</span>'
,
width
:
width
,
height
:
408
,
cache
:
false
,
onClose
:
function
(){
$
(
document
).
unbind
(
"scroll"
);
}
},[
{
//确定生成表头配置信息,并重新加载表格数据
text
:
'确定'
,
handler
:
function
(){
$
(
'#w'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
},{
text
:
'取消'
,
handler
:
function
(){
$
(
'#w'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
}
])
var
tops
=
$
(
document
).
scrollTop
();
//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$
(
document
).
bind
(
"scroll"
,
function
(){
$
(
document
).
scrollTop
(
tops
);})
}
}
function
doQueryHm
(){
//18位查zjhm,11位查sjhm,其他查标识号
debugger
;
if
(
$
(
'#searchHm'
).
val
().
length
==
18
){
$
(
'#zjhm'
).
val
(
$
(
'#searchHm'
).
val
());
}
else
if
(
$
(
'#searchHm'
).
val
().
length
==
11
){
$
(
'#sjhm'
).
val
(
$
(
'#searchHm'
).
val
());
}
else
if
(
$
(
'#searchHm'
).
val
().
length
>
0
){
$
(
'#objectValue'
).
val
(
$
(
'#searchHm'
).
val
());
}
else
{
$
(
'#zjhm'
).
val
(
""
);
$
(
'#sjhm'
).
val
(
""
);
$
(
'#objectValue'
).
val
(
""
);
}
doQuery
();
doQueryFL
();
}
/*导航收缩事件*/
function
toggleClass
(
obj
){
if
(
$
(
obj
).
attr
(
"class"
)
==
"show-right"
){
$
(
obj
).
removeClass
(
"show-right"
).
addClass
(
"show-left"
);
$
(
".left-search"
).
animate
({
width
:
"0px"
},
1000
);
$
(
".right-list"
).
animate
({
width
:
"98%"
},
1000
);
}
else
{
$
(
obj
).
removeClass
(
"show-left"
).
addClass
(
"show-right"
);
$
(
".left-search"
).
animate
({
width
:
"25%"
},
1000
);
$
(
".right-list"
).
animate
({
width
:
"73%"
},
1000
);
}
setTimeout
(
function
(){
$
(
"#skhsjgzsTable"
).
datagrid
(
"resize"
);
},
1000
)
}
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/qyph/qyphResult.jsp
0 → 100644
View file @
7c8a475e
<
%
--
Created
by
IntelliJ
IDEA
.
User:
wushanyu
Date:
2019
/
6
/
13
Time:
11:42
To
change
this
template
use
File
|
Settings
|
File
Templates
.
--
%
>
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
pageEncoding=
"UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
uri=
"http://www.atg.com/taglibs/json"
prefix=
"json"
%
>
<
%@
taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%
>
<
%@
taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%
>
<!doctype html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
区域徘徊
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/easyui-new.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/font-awesome.min.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/bjzycx.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/style.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/base_initialize.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/common/layer/skin/layer.css"
>
<!--- 时间插件-->
<link
rel=
"stylesheet"
href=
"/common/datepicker/skin/WdatePicker.css"
>
<link
rel=
"stylesheet"
href=
"/common/datepicker/skin/default/datepicker.css"
>
<link
rel=
"stylesheet"
href=
"/css/detailStyle.css"
>
<link
rel=
"stylesheet"
href=
"/css/sksjzcCommon.css"
>
</head>
<body>
<div
class=
"w"
>
<
%
--
<
header
class=
"heade-box"
>
<img
src=
"images/title_qypzjgzs.png"
class=
"header-title-img"
alt=
""
>
</header>
--%>
<div
class=
"head clearfix"
>
<div
class=
"aj_message"
>
<span
class=
"aj_code"
>
区域徘徊
</span>
</div>
</div>
<div
class=
"cxtj box-s"
>
<!--任务信息-->
<fieldset>
<legend>
徘徊信息
</legend>
<ul
class=
"work-mark-wrap"
>
<li>
<table>
<tr>
<td
class=
"ar"
width=
"8%"
>
区域名称:
</td>
<td
width=
"17%"
>
${qyName}
</td>
<td
class=
"ar"
width=
"8%"
>
区域面积:
</td>
<td
width=
"17%"
id=
"qyArea"
></td>
<td
class=
"ar"
width=
"8%"
>
开始时间:
</td>
<td
width=
"17%"
>
<fmt:formatDate
value=
"${startTime}"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"ar"
width=
"8%"
>
结束时间:
</td>
<td
width=
"17%"
>
<fmt:formatDate
value=
"${endTime}"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
</tr>
</table>
</li>
</ul>
<
%
--
<
table
class=
"sp_table"
width=
"100%"
>
<tbody>
<tr>
<td
colspan=
"6"
style=
"height:20px;"
></td>
</tr>
<tr>
<td
class=
"ar"
width=
"13.3%"
>
案件编号:
</td>
<td
width=
"20%"
>
<span
class=
""
>
${taskCaseId}
</span>
</td>
<td
class=
"ar"
width=
"13.3%"
>
任务名称:
</td>
<td
width=
"20%"
>
<span
class=
""
>
${taskName}
</span>
</td>
<td
class=
"ar"
width=
"13.3%"
>
发起时间:
</td>
<td
width=
"20%"
>
<span
class=
""
>
${rksj}
</span>
</td>
</tr>
<tr>
<td
class=
"ar"
>
状态:
</td>
<td>
<span
class=
""
>
${state}
</span>
</td>
<
%
–
<td
class=
"ar"
>
进度:
</td>
<td>
<span
class=
""
>
${progress}
</span>
</td>
–
%
>
</tr>
</tbody>
</table>
--%>
</fieldset>
<!--查询结果-->
</div>
<
%
--
<
div
class=
"statistics"
>
查询结果
<span
class=
"st-span total"
>
0
</span>
</div>
--%>
<div
class=
"result box-s"
style=
"overflow: hidden;"
>
<!--查询条件-->
<div
class=
"cxjg"
style=
"display: none;"
>
<form
name=
"skhsjgzsForm"
style=
"margin-top:15px;"
>
<fieldset>
<legend
class=
"cursor"
onclick=
"show()"
flag=
"false"
>
查询条件
<i
class=
"fa fa-angle-double-down down"
></i><i
class=
"fa fa-angle-double-up up"
style=
"display: none"
></i>
</legend>
<input
type=
"hidden"
id =
"yhCate"
name=
"yhCate"
value=
"00"
/>
<input
type=
"hidden"
id =
"projectName"
name=
"projectName"
value=
"刑专智慧侦查脑图"
/>
<input
type=
"hidden"
id =
"objectType"
name=
"objectType"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"birthday"
name=
"birthday"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sfFzxyr"
name=
"sfFzxyr"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sfGwry"
name=
"sfGwry"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sfbs"
name=
"sfbs"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sex"
name=
"sex"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sjhmgsd"
name=
"sjhmgsd"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sjhmgsdsj"
name=
"sjhmgsdsj"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"sjhmyys"
name=
"sjhmyys"
value=
""
class=
"fltj"
/>
<input
type=
"hidden"
id =
"checkVal"
name=
"checkVal"
value=
""
/>
<input
type=
"hidden"
id =
"zjhm"
name=
"zjhm"
value=
""
/>
<input
type=
"hidden"
id =
"sjhm"
name=
"sjhm"
value=
""
/>
<input
type=
"hidden"
id =
"objectValue"
name=
"objectValue"
value=
""
/>
<table
style=
"display: none"
class=
"cxtj-table sp_table"
>
<tbody>
<input
type=
"hidden"
name=
"taskId"
value=
"${taskId}"
>
<tr>
<td
colspan=
"4"
style=
"height:20px;"
></td>
</tr>
<tr>
<td
class=
"ar"
width=
"13.3%"
>
标识号:
</td>
<td
style=
"width:20%;"
>
<span
class=
"textbox"
>
<
%
--
<
input
name=
"objectValue"
type=
"text"
id=
"objectValue"
/>
--%>
</span>
</td>
</tr>
<tr>
<td
colspan=
"4"
style=
"text-align:center;"
>
<a
class=
"btn_a btn_search"
onclick=
"doQuery()"
>
查询
</a>
<a
class=
"btn_a btn_empty"
onclick=
"doClear()"
>
清空
</a>
<
%
--
<
a
class=
"btn_a btn_add"
onclick=
"exportExcel()"
id=
"exportExcel"
>
导出Excel
</a>
--%>
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</div>
<
%
--
分类导航
--
%
>
<div
class=
"cxjg"
>
<fieldset>
<
%
--
智能推荐
--
%
>
<div
id=
"zntj"
>
<legend
style=
"color: #06532f;font-weight: 600;"
><img
src=
"/images/logo.png"
style=
"height:25px;position: relative;top: -2px;"
/>
智能推荐
</legend>
<div
class=
"zntj-wrap"
>
<div
class=
"counter col_third"
onclick=
"showDialog(6)"
>
<div
class=
"ac"
><i
class=
"fa fa-address-book fa-2x fa-fw"
></i>
推荐人员
</div>
<h2
class=
"timer count-title"
id=
"count-number"
data-to=
"${tjryCount}"
data-speed=
"1500"
></h2>
<span
class=
"tj"
></span>
</div>
<div
class=
"counter col_third"
onclick=
"showDialog(8)"
>
<div
class=
"ac"
><i
class=
"fa fa-car fa-2x fa-fw"
style=
"font-size: 18px;"
></i>
推荐车辆
</div>
<h2
class=
"timer count-title"
id=
"count-number3"
data-to=
"0"
data-speed=
"1500"
></h2>
<span
class=
"tj"
></span>
</div>
</div>
</div>
</fieldset>
<legend>
查询结果
<span
class=
"st-span total"
>
0
</span>
<li
class=
"pull-right"
style=
"margin-right: 15px; position: relative;top: -3px;cursor: pointer;"
value=
"excel"
onclick=
"exportExcel()"
><img
src=
"/images/dcexcel.png"
style=
"position: relative;top: 2px;margin-right: 4px;"
/></li>
<li
class=
"pull-right"
style=
"margin-right: 15px; position: relative;top: -3px;"
><input
type=
"radio"
showtype=
"block"
class=
"radio-inline"
name=
"presentType"
title=
""
primary=
"true"
value=
"EZUIGrid"
></li>
<li
class=
"pull-right"
style=
"margin-right: 15px; position: relative;top: -4px;"
><input
type=
"radio"
showtype=
"grid"
checked=
"checked"
class=
"radio-inline"
name=
"presentType"
value=
"DList"
></li>
</legend>
<
%
--
<
div
class=
"bootPanelHeading pull-left"
>
<span>
当前结果共
<span
class=
"countTotal red"
>
2211
</span>
条,共
<span
class=
"countTotalPage red"
>
148
</span>
页
</span>
<span><span
class=
"countTotal red"
></span><span
class=
"countTotalPage red"
></span></span>
</div>
--%>
<!--图表1-->
<
%
--
<
div
class=
"navCategory"
style=
"display: none"
id=
"fldh"
>
</div>
--%>
</div>
<div
class=
"result-wrap2"
>
<div
class=
"left-search"
>
<input
type=
"text"
class=
"search-input"
placeholder=
"标识号、身份证号、手机号码"
id=
"searchHm"
/><span
class=
"search-icon"
onclick=
"doQueryHm()"
><i
class=
"fa fa-search"
></i></span>
<!--图表1-->
<div
class=
"navCategory"
style=
"display: none"
id=
"fldh"
>
</div>
</div>
<div
class=
"icon-left"
><span
id=
"sidebar-show-btn"
onclick=
"toggleClass(this)"
class=
"show-right"
title=
"收缩"
></span></div>
<div
class=
"right-list"
>
<
%
--
区块
--
%
>
<div
id=
"qkdiv"
class=
"layoutDiv resultList"
style=
"display: none;"
>
</div>
<div
id=
"listdiv"
>
<table
class=
"easyui-datagrid"
id=
"skhsjgzsTable"
style=
"border-top:1px dashed #ccc;"
width=
"100%"
>
</table>
</div>
</div>
</div>
</div>
</div>
<!--表格设置面板-->
<div
id=
"ryjgzs"
class=
"easyui-dialog"
title=
"人员"
data-options=
"modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false"
style=
"width:520px;height:auto;padding:10px;display:none;"
>
<div
class=
'float-div'
>
<div
class=
'xx-box'
>
<div
class=
'lf-img'
id=
"ryzp"
></div>
<div
class=
'rg-xx'
>
<div
class=
'xx-line'
><span>
姓名:
<span
class=
'xx-xm'
id=
"ryName"
></span></span><span
style=
"margin-left:10px;"
>
年龄:
<span
id=
"ryAge"
></span></span><span
class=
'c125'
></span></div>
<div
class=
'xx-line'
><i
class=
'fa fa-id-card orange'
title=
'身份证号'
></i><span
id=
"rySfzh"
></span></div>
<div
class=
'xx-line'
><i
class=
'fa fa-user yellow'
title=
'出生日期'
></i><span
id=
"ryCsrq"
></span></div>
<div
class=
'xx-line'
><i
class=
'fa fa-phone'
title=
'电话号码'
></i><span
id=
"ryDhhm"
></span></div>
<div
class=
'xx-line'
><i
class=
'fa fa-commenting-o'
title=
'IMSI'
></i><span
id=
"imsi"
></span></div>
<div
class=
'xx-line'
><i
class=
'fa fa-map-marker green'
title=
'现住址'
></i><span
id=
"ryAddress"
></span></div>
<div
class=
'xx-line over'
>
<span
class=
'label'
style=
"display: none;"
id=
"sf-fzxyr"
>
犯罪嫌疑人
</span>
<span
class=
'label'
style=
"display: none;"
id=
"sf-gwry"
>
高危人员
</span>
</div>
</div>
</div>
</div>
</div>
<div
id=
"clxxzs"
class=
"easyui-dialog"
title=
"车辆"
data-options=
"modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false"
style=
"width:520px;height:auto;padding:10px;display:none;"
>
<div
class=
'float-div'
>
<div
class=
"xx-box"
style=
"height:168px;"
>
<div
class=
"lf-img"
id=
"clRyzp"
></div>
<div
class=
"rg-xx"
>
<div
class=
"top-div"
style=
"padding-top:16px;"
>
<div
class=
"xx-line"
><i
class=
"orange"
>
车牌号:
</i><span
id=
"cph"
></span></div>
<div
class=
"xx-line"
><i
class=
"orange"
>
车辆类型:
</i><span
id=
"cllx"
></span></div>
</div>
<div
class=
"bottom-div"
>
<div
class=
"xx-line"
><i
class=
"green"
>
证件类型:
</i><span
id=
"clZjlx"
></span></div>
<div
class=
"xx-line"
><i
class=
"green"
>
证件号码:
</i><span
id=
"clZjhm"
></span></div>
</div>
</div>
</div>
</div>
</div>
<!--表格设置面板-->
<div
id=
"w"
class=
"easyui-dialog dialog"
title=
"图表"
data-options=
"modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false"
style=
"width:600px;height:420px;padding:10px;overflow-y:auto;display:none;"
>
<div
id=
"echarts-wrap"
></div>
</div>
<
%
--
js
引入
--
%
>
<script
type=
"text/javascript"
src=
"/js/jquery-1.11.3.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/common/easyui-window/js/function.js"
></script>
<!--- 日期时间-->
<script
type=
"text/javascript"
src=
"/common/datepicker/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"/common/datepicker/calendar.js"
></script>
<script
src=
"/common/layer/layer.js"
type=
"text/javascript"
></script>
<!--- 页面相关js -->
<script
type=
"text/javascript"
src=
"/js/sksjzcCommon.js"
></script>
<script
type=
"text/javascript"
src=
"/js/qyphResult.js"
></script>
<script
type=
"text/javascript"
src=
"/js/dateFormat.js"
></script>
<script
type=
"text/javascript"
src=
"/js/ipUnit.js"
></script>
<!-- 用采合一 -->
<script
type=
"text/javascript"
src=
"/js/ychy.js"
></script>
<script
type=
"text/javascript"
src=
"/js/echarts.min.js"
></script>
<
%
--
智能推荐的数字
--
%
>
<script
type=
"text/javascript"
src=
"/js/zntjNum.js"
></script>
<script>
$
(
function
()
{
// 初始化内容
var
qybj
=
$
{
qybj
}
*
100
;
var
qyArea
=
qybj
*
qybj
*
3.14
;
qyArea
=
qyArea
.
toFixed
(
2
);
var
qyAreaStr
=
qyArea
+
"平方公里"
;
$
(
"#qyArea"
).
html
(
qyAreaStr
);
});
var
sfzhUser
=
"${sfzh}"
;
console
.
log
(
sfzhUser
);
var
fsrjh
=
"${fsrjh}"
;
var
asjbh
=
"${taskCaseId}"
;
var
taskId
=
"${taskId}"
;
console
.
log
(
asjbh
);
var
djsjStr
=
"${rksj}"
;
var
gdWrap_H
=
$
(
".gd-wrap"
).
height
();
var
tjryCount
=
"${tjryCount}"
;
var
tjhmCount
=
"${tjhmCount}"
;
var
tjclCount
=
0
;
$
(
window
).
scroll
(
function
(){
console
.
log
(
$
(
document
).
scrollTop
());
if
(
$
(
document
).
scrollTop
()
>=
(
gdWrap_H
-
140
)){
$
(
".btn-show"
).
css
({
"display"
:
"inline-block"
})
if
(
$
(
".ul-wrap"
).
css
(
"display"
)
!=
"none"
){
$
(
".btn-show"
).
addClass
(
"btn_zdyan"
);
}
}
else
{
$
(
".btn-show"
).
hide
()
$
(
".ul-wrap"
).
show
();
$
(
".btn-show"
).
removeClass
(
"btn_zdyan"
);
}
})
$
(
".result"
).
css
({
"margin-top"
:
gdWrap_H
+
"px"
});
$
(
".btn-show"
).
click
(
function
(){
$
(
".ul-wrap"
).
toggle
();
$
(
".btn-show"
).
toggleClass
(
"btn_zdyan"
);
})
if
(
tjryCount
==
0
&&
tjhmCount
==
0
&&
tjclCount
==
0
){
$
(
"#zntj"
).
hide
();
}
</script>
</body>
</html>
\ No newline at end of file
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