PanDuWeb/table_yishenhe.html

342 lines
15 KiB
HTML
Raw Normal View History

2024-07-16 15:18:17 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-07-18 17:18:42 +08:00
<title>已审核</title>
2024-07-16 15:18:17 +08:00
<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">
2024-07-16 16:49:16 +08:00
<link href="css/plugins/blueimp/css/blueimp-gallery.min.css" rel="stylesheet">
2024-07-16 15:18:17 +08:00
<style>
/* Additional style to fix warning dialog position */
#alertmod_table_list_2 {
top: 900px !important;
}
2024-07-18 10:15:29 +08:00
.lightBoxGallery {
2024-07-16 16:49:16 +08:00
height: 348px;
overflow: auto;
2024-07-17 09:41:53 +08:00
padding: 10px;
border: 1px solid #f5f5f5;
border-radius: 10px;
2024-07-16 16:49:16 +08:00
}
2024-07-18 10:15:29 +08:00
2024-07-16 16:49:16 +08:00
.lightBoxGallery img {
margin: 5px;
width: 160px;
}
2024-07-18 10:15:29 +08:00
#copy-input {
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: -10;
}
2024-07-16 15:18:17 +08:00
</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">
2024-07-18 10:15:29 +08:00
<h5>已审核</h5>
2024-07-16 15:18:17 +08:00
</div>
<div class="ibox-content">
<div class="jqGrid_wrapper">
<table id="table_list_1"></table>
<div id="pager_list_1"></div>
</div>
</div>
</div>
2024-07-18 10:15:29 +08:00
<div class="modal inmodal" id="myModal" role="dialog" aria-hidden="true">
2024-07-16 15:18:17 +08:00
<div class="modal-dialog">
<div class="modal-content animated bounceInRight">
2024-07-17 09:41:53 +08:00
<div class="ibox-content">
<div class="row">
<div class="col-sm-12">
<div class="m-b-md">
2024-07-18 15:26:40 +08:00
<h2>线索详情</h2>
2024-07-17 09:41:53 +08:00
</div>
</div>
2024-07-16 16:49:16 +08:00
</div>
2024-07-18 15:26:40 +08:00
<div class="row" id="caseDetail"></div>
2024-07-16 16:49:16 +08:00
</div>
2024-07-16 15:18:17 +08:00
</div>
2024-07-18 10:15:29 +08:00
2024-07-16 15:18:17 +08:00
</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>
2024-07-18 10:15:29 +08:00
<script src="js/request.js"></script>
2024-07-16 15:18:17 +08:00
<!-- Page-Level Scripts -->
<script>
2024-07-18 15:26:40 +08:00
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
}
}
);
}
2024-07-18 10:15:29 +08:00
function copyText() {
2024-07-17 11:17:20 +08:00
let text = document.getElementById("map").innerText;
let input = document.getElementById("copy-input");
input.value = text; // 修改文本框的内容
input.select(); // 选中文本
document.execCommand("copy"); // 执行浏览器复制命令
alert("复制成功");
}
2024-07-16 15:18:17 +08:00
$(document).ready(function () {
$.jgrid.defaults.styleUI = 'Bootstrap';
2024-07-18 10:15:29 +08:00
$("#table_list_1").jqGrid('clearGridData');
$("#table_list_1").jqGrid({
2024-07-18 15:26:40 +08:00
url: baseURL + '/api/DroneCaseinfo/LoadCaseInfoLists?is_Reviewer=1&is_examine=1',
2024-07-18 10:15:29 +08:00
loadBeforeSend: function (jqXHR) {
jqXHR.setRequestHeader("X-Token",localStorage.getItem('token'));
2024-07-16 15:18:17 +08:00
},
2024-07-18 10:15:29 +08:00
jsonReader: {
root: "root",
page: "page",
total: "total",
records: "totalCount"
2024-07-16 15:18:17 +08:00
},
2024-07-18 10:15:29 +08:00
datatype: "json",
2024-07-16 15:18:17 +08:00
height: "100%",
autowidth: true,
shrinkToFit: true,
2024-07-18 10:15:29 +08:00
rowNum: 10,
// rowList: [10, 20, 30],
2024-07-19 09:36:11 +08:00
ondblClickRow: function (rowid, iRow, iCol, e) {
$('#myModal').modal('show')
showModal(rowid)
},
2024-07-19 09:24:29 +08:00
colNames: ['案件编号', '案件名称', '案件类型', '县','镇', '判读人','判读时间', '是否通过','是否审核','操作'],
2024-07-16 15:18:17 +08:00
colModel: [
{
2024-07-18 10:15:29 +08:00
name: 'case_no',
index: 'case_no',
align: 'center',
2024-07-18 15:44:27 +08:00
width: 100,
2024-07-16 15:18:17 +08:00
},
{
2024-07-18 10:15:29 +08:00
name: 'case_name',
index: 'case_name',
align: 'center',
2024-07-16 15:18:17 +08:00
},
{
2024-07-18 10:15:29 +08:00
name: 'typename',
index: 'typename',
align: 'center',
2024-07-16 15:18:17 +08:00
width: 100
},
{
2024-07-18 10:15:29 +08:00
name: 'countyname',
index: 'countyname',
align: 'center',
2024-07-18 15:44:27 +08:00
width: 50,
2024-07-18 10:15:29 +08:00
},
{
name: 'streetname',
index: 'streetname',
align: 'center',
2024-07-18 15:44:27 +08:00
width: 50,
2024-07-18 10:15:29 +08:00
},
2024-07-16 15:18:17 +08:00
{
2024-07-18 10:15:29 +08:00
name: 'identification_user',
index: 'identification_user',
2024-07-16 15:18:17 +08:00
width: 80,
2024-07-18 10:15:29 +08:00
align: 'center',
2024-07-16 15:18:17 +08:00
},
{
2024-07-18 10:15:29 +08:00
name: 'identification_time',
index: 'identification_time',
2024-07-16 15:18:17 +08:00
width: 80,
2024-07-18 10:15:29 +08:00
align: 'center',
sorttype: "date"
2024-07-16 15:18:17 +08:00
},
2024-07-18 15:39:00 +08:00
{
name: '操作',
align: "center",
2024-07-18 15:44:27 +08:00
width: 50,
2024-07-18 15:39:00 +08:00
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>`;
}
}
},
2024-07-18 15:26:40 +08:00
{
name: '操作',
align: "center",
2024-07-18 15:44:27 +08:00
width: 50,
2024-07-18 15:26:40 +08:00
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>`;
}
2024-07-16 15:18:17 +08:00
2024-07-18 15:26:40 +08:00
}
},
2024-07-16 15:18:17 +08:00
{
2024-07-18 10:15:29 +08:00
name: '操作',
align: "center",
2024-07-18 15:44:27 +08:00
width: 50,
2024-07-18 10:15:29 +08:00
formatter: function (value, grid, rows) {
2024-07-16 15:18:17 +08:00
var id = rows.id;
2024-07-18 15:26:40 +08:00
return `<button type="button" onClick="showModal('${id}')" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
2024-07-18 10:15:29 +08:00
详情
</button>`;
2024-07-16 15:18:17 +08:00
}
}
],
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>
2024-07-16 16:49:16 +08:00
<!-- blueimp gallery -->
<script src="js/plugins/blueimp/jquery.blueimp-gallery.min.js"></script>
2024-07-18 10:15:29 +08:00
2024-07-16 15:18:17 +08:00
</body>
</html>