PanDuWeb/table_yishenhe.html

350 lines
16 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>已审核</title>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
<link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
<!-- jqgrid-->
<link href="css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css?v=4.1.0" rel="stylesheet">
<link href="css/plugins/blueimp/css/blueimp-gallery.min.css" rel="stylesheet">
<style>
/* Additional style to fix warning dialog position */
#alertmod_table_list_2 {
top: 900px !important;
}
.lightBoxGallery {
height: 348px;
overflow: auto;
padding: 10px;
border: 1px solid #f5f5f5;
border-radius: 10px;
}
.lightBoxGallery img {
margin: 5px;
width: 160px;
}
#copy-input {
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: -10;
}
</style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-12">
<div class="ibox ">
<div class="ibox-title">
<h5>已审核</h5>
</div>
<div class="ibox-content">
<div class="jqGrid_wrapper">
<table id="table_list_1"></table>
<div id="pager_list_1"></div>
</div>
</div>
</div>
<div class="modal inmodal" id="myModal" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content animated bounceInRight">
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<div class="m-b-md">
<h2>线索详情</h2>
</div>
</div>
</div>
<div class="row" id="caseDetail"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.7"></script>
<!-- Peity -->
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<!-- jqGrid -->
<script src="js/plugins/jqgrid/i18n/grid.locale-cn.js?0820"></script>
<script src="js/plugins/jqgrid/jquery.jqGrid.min.js?0820"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<script src="js/request.js"></script>
<!-- Page-Level Scripts -->
<script>
function showModal(id) {
currentCaseId = id
getAjaxRequst(
"/api/DroneCaseinfo/GetCaseInfo?id=" + id, {},
function (res) {
if (res.code == 200) {
let info = res.result.info
$('#caseDetail').empty()
let images_text = ''
if (res.result.pic_list && res.result.pic_list.length > 0) {
images_text = res.result.pic_list.map(item => `<a href="${imageURL + item}" data-gallery=""><img src="${imageURL + item}"></a>`).join('')
}
let result_text = `
<div class="row detail-dd">
<div class="col-sm-12">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>案件编号:</dt>
<dd>${info.case_no}</dd>
<dt>案件详情:</dt>
<dd>${info.case_name || '无'}</dd>
<dt>违规类型:</dt>
<dd>${info.typename || '无'}</dd>
</dl>
</div>
<div class="col-sm-5">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>县/区:</dt>
<dd>${info.countyname || '无'}</dd>
<dt>社区/村:</dt>
<dd>${info.communityname || '无'}</dd>
<dt>前影像名称:</dt>
<dd>${info.pre_phase_img || '无'}</dd>
<dt>前时相时间:</dt>
<dd>${info.pre_phase_time || '无'}</dd>
</dl>
</div>
<div class="col-sm-7">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>乡镇/街道:</dt>
<dd>${info.streetname || '无'}</dd>
<dt>详细地址:</dt>
<dd>${info.address || '无'}</dd>
<dt>后影像名称:</dt>
<dd>${info.later_phase_img || '无'}</dd>
<dt>后时相:</dt>
<dd>${info.later_phase_time || '无'}</dd>
</dl>
</div>
<div class="col-sm-12">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>备注:</dt>
<dd>${info.remark || '无'}</dd>
</dl>
</div>
<div class="col-sm-5">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>判读人:</dt>
<dd>${info.identification_user || '无'}</dd>
</dl>
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>判读时间:</dt>
<dd>${info.identification_time || '无'}</dd>
</dl>
</div>
<div class="col-sm-7">
<dl class="dl-horizontal">
<dt>经纬度:</dt>
<dd id="map" onclick="copyText()" style="cursor: pointer;color: #337ab7;">${info.lng + ',' + info.lat || '无'}</dd>
</dd>
<textarea id="copy-input"></textarea>
</dl>
</div>
</div>
<div class="row">
<dl class="dl-horizontal" style="margin-bottom: 0px;">
<dt>图片:${images_text.length ? '' : '无'}</dt>
<dd>
<div class="row lightBoxGallery">
${images_text}
<div id="blueimp-gallery" class="blueimp-gallery">
<div class="slides"></div>
<h3 class="title"></h3>
<a class="prev"></a>
<a class="next"></a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
</div>
</div>
</dd>
</dl>
</div>
<div class="row">
<div class="modal-footer" style="border-top: 0px;">
<button type="button" class="btn btn-white" data-dismiss="modal">关 闭</button>
</div>
</div>
`
$('#caseDetail').append(result_text)
} else {
toastr.error(res.message);
currentCaseId = null
}
}
);
}
function copyText() {
let text = document.getElementById("map").innerText;
let input = document.getElementById("copy-input");
input.value = text; // 修改文本框的内容
input.select(); // 选中文本
document.execCommand("copy"); // 执行浏览器复制命令
alert("复制成功");
}
$(document).ready(function () {
$.jgrid.defaults.styleUI = 'Bootstrap';
$("#table_list_1").jqGrid('clearGridData');
$("#table_list_1").jqGrid({
url: baseURL + '/api/DroneCaseinfo/LoadCaseInfoLists?is_Reviewer=1&is_examine=1',
loadBeforeSend: function (jqXHR) {
jqXHR.setRequestHeader("X-Token",localStorage.getItem('token'));
},
jsonReader: {
root: "root",
page: "page",
total: "total",
records: "totalCount"
},
datatype: "json",
height: "100%",
autowidth: true,
shrinkToFit: true,
rowNum: 10,
// rowList: [10, 20, 30],
colNames: ['案件编号', '案件名称', '案件类型', '县','镇','村', '备注', '判读人','判读时间', '是否通过','是否审核','操作'],
colModel: [
{
name: 'case_no',
index: 'case_no',
align: 'center',
width: 100,
},
{
name: 'case_name',
index: 'case_name',
align: 'center',
},
{
name: 'typename',
index: 'typename',
align: 'center',
width: 100
},
{
name: 'countyname',
index: 'countyname',
align: 'center',
width: 50,
},
{
name: 'streetname',
index: 'streetname',
align: 'center',
width: 50,
},
{
name: 'communityname',
index: 'communityname',
align: 'center',
width: 50,
},
{
name: 'remark',
index: 'remark',
width: 80,
align: 'center',
},
{
name: 'identification_user',
index: 'identification_user',
width: 80,
align: 'center',
},
{
name: 'identification_time',
index: 'identification_time',
width: 80,
align: 'center',
sorttype: "date"
},
{
name: '操作',
align: "center",
width: 50,
formatter: function (value, grid, rows) {
if (rows.is_agree) {
return `<p><span class="badge badge-primary">通过</span></p>`;
} else {
return `<p><span class="badge badge-warning">未通过</span></p>`;
}
}
},
{
name: '操作',
align: "center",
width: 50,
formatter: function (value, grid, rows) {
if (rows.is_examine == 0) {
return `<p><span class="badge badge-warning">待审核</span></p>`;
} else {
return `<p><span class="badge badge-primary">已审核</span></p>`;
}
}
},
{
name: '操作',
align: "center",
width: 50,
formatter: function (value, grid, rows) {
var id = rows.id;
return `<button type="button" onClick="showModal('${id}')" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
详情
</button>`;
}
}
],
pager: "#pager_list_1",
viewrecords: true,
caption: "",
hidegrid: false
});
// Add responsive to jqGrid
$(window).bind('resize', function () {
var width = $('.jqGrid_wrapper').width();
$('#table_list_1').setGridWidth(width);
});
});
</script>
<!-- blueimp gallery -->
<script src="js/plugins/blueimp/jquery.blueimp-gallery.min.js"></script>
</body>
</html>