Commit c37de23a by lishuzhen

人案筛查页面,嫌疑人证件号码下添加人员档案的跳转链接

parent c6dc4f11
...@@ -397,7 +397,7 @@ var navCategory = { ...@@ -397,7 +397,7 @@ var navCategory = {
return val+"<img src='static/images/asjxx_ychy.png' width=20 height=20 title='用采合一' onclick=\"layerxz_tips(this,'"+row.asjbh+"','"+row.zcjddm+"','"+row.ajlbdm+"');\" />"; return val+"<img src='static/images/asjxx_ychy.png' width=20 height=20 title='用采合一' onclick=\"layerxz_tips(this,'"+row.asjbh+"','"+row.zcjddm+"','"+row.ajlbdm+"');\" />";
}, },
ryychy:function(val,row){ ryychy:function(val,row){
return val+"<img src='static/images/asjxx_ychy.png' width=20 height=20 title='用采合一' onclick=\"layerxz_tips(this,'"+row.id+"','','','"+row.cyzj_zjhm+"')\" />"; return val+"<img src='static/images/asjxx_ychy.png' width=20 height=20 title='用采合一' onclick=\"layerxz_tipsRy(this,'"+row.id+"','','','"+row.cyzj_zjhm+"','1')\" />";
}, },
myListLoadError: function(mess){ myListLoadError: function(mess){
utils.hideLoadMask(); utils.hideLoadMask();
......
...@@ -49,6 +49,33 @@ function layerxz_tips(obj,id,zcjddm,ajlbdm,cyzj_zjhm) { ...@@ -49,6 +49,33 @@ function layerxz_tips(obj,id,zcjddm,ajlbdm,cyzj_zjhm) {
layer.tips(htmlChild, that,{time:15000,tips:[2,'#f3f7f8'],width:380}); //在元素的事件回调体中,follow直接赋予this即可 layer.tips(htmlChild, that,{time:15000,tips:[2,'#f3f7f8'],width:380}); //在元素的事件回调体中,follow直接赋予this即可
} }
function layerxz_tipsRy(obj,id,zcjddm,ajlbdm,cyzj_zjhm,flag) {
asjbhObj=id;
zcjddmObj=zcjddm;
ajlbdmObj=ajlbdm;
zjhmObj=cyzj_zjhm;
var that=$(obj);
var A = id.indexOf("A");
var P = id.indexOf("P");
var S = id.indexOf("S");
var htmlChild="";
htmlChild += "<ul class='popUl' style='position:absolute;_left:40px;_top:-10px;'>";
htmlChild += "<h4><b onclick='closeLayer();' style='float:right; margin-right:5px; cursor: pointer; font-size:12px; color:#f60;'><span style='position:relative; top:-4px;'>关闭</span></b></h4>";
htmlChild +="<h4>"+id+"</h4>";
if(A>-1){
htmlChild +="<li onclick='toajxq(this);'><img src='./static/images/bcws.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>案件详情</span></li>";
}else if(P>-1){
htmlChild +="<li data-act='toZyryzb.action' onclick='goRyzbAction(this);'><img src='./static/images/rygtfx.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>人员侦办</span></li>";
if ( flag == '1') {
htmlChild += "<li onclick='toRyda(this);'>" +
"<img src='./static/images/bcws.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>人员档案</span></li>";
}
}else if(S>-1){
htmlChild +="<li data-act='toZyryzb.action' onclick='goRyzbAction(this);'><img src='./static/images/rygtfx.png' width='16px;' style='float:left; position:relative; top:6px;'/><span>人员侦办</span></li>";
}
htmlChild += "</ul>";
layer.tips(htmlChild, that,{time:15000,tips:[2,'#f3f7f8'],width:380}); //在元素的事件回调体中,follow直接赋予this即可
}
//案件档案 //案件档案
function toajda(obj) { function toajda(obj) {
closeLayer(); closeLayer();
...@@ -70,3 +97,34 @@ function goRyzbAction(obj){ ...@@ -70,3 +97,34 @@ function goRyzbAction(obj){
function closeLayer(){ function closeLayer(){
layer.closeAll("tips"); layer.closeAll("tips");
} }
//人员档案
function toRyda(obj) {
closeLayer();
var url="http://68.174.25.90:8101/ryxx/getRydaUrl";
var data = {"zjhm":zjhmObj,"policemanId":"00000000000012"};
var index = layer.load(1, {
content: '数据加载中...',
shade: [0.35, '#fff'],
success: function (layero) {
/*layero.css('padding-left', '30px');*/
layero.find('.layui-layer-content').css({
'padding-top': '40px',
'width': '70px',
'background-position-x': '16px'
});
}
});
$.ajax({
url: url,
data: data,
type: 'POST',
success: function (data) {
layer.close(index);
window.open(data);
},
error: function () {
layer.close(index);
layer.alert("服务器异常跳转人员档案失败","提示");
}
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment