537 lines
23 KiB
HTML
537 lines
23 KiB
HTML
<!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">
|
||
<link rel="shortcut icon" href="favicon.ico">
|
||
<link href="css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
|
||
<!-- jqgrid-->
|
||
<link href="css/plugins/blueimp/css/blueimp-gallery.min.css" rel="stylesheet">
|
||
<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
|
||
<link href="css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">
|
||
<link href="css/plugins/iCheck/custom.css" rel="stylesheet">
|
||
<link href="css/animate.css" rel="stylesheet">
|
||
<link href="css/style.css?v=4.1.0" rel="stylesheet">
|
||
|
||
|
||
<style>
|
||
/* Additional style to fix warning dialog position */
|
||
|
||
#alertmod_table_list_2 {
|
||
top: 900px !important;
|
||
}
|
||
|
||
.lightBoxGallery {
|
||
height: 199px;
|
||
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;
|
||
}
|
||
|
||
.case-route-model {
|
||
display: flex;
|
||
width: 100%;
|
||
height: 100vh;
|
||
background-color: rgba(0, 0, 0, 0.2);
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
z-index: 22222;
|
||
}
|
||
|
||
.case-route {
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: absolute;
|
||
top: calc(50vh - 200px);
|
||
left: calc(50vw - 300px);
|
||
width: 600px;
|
||
height: 400px;
|
||
border-radius: 8px;
|
||
background-color: #fff;
|
||
}
|
||
|
||
.case-route-che {
|
||
line-height: 30px;
|
||
}
|
||
|
||
#caseRouteForm {
|
||
padding-bottom: 20px;
|
||
overflow-y: scroll;
|
||
height: 300px;
|
||
margin: 0;
|
||
}
|
||
|
||
.case-router-sub {
|
||
position: absolute;
|
||
bottom: 10px;
|
||
right: 100px;
|
||
}
|
||
|
||
.case-router-cel {
|
||
position: absolute;
|
||
bottom: 10px;
|
||
right: 30px;
|
||
}
|
||
.myModal{
|
||
display: none;
|
||
background-color: rgba(0, 0, 0, 0.5);
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100vw;
|
||
height: 100vh;
|
||
z-index: 22221;
|
||
}
|
||
</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="myModal" id="myModal">
|
||
<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 class="case-route-model" id="case-route-model" style="display: none">
|
||
<div class="case-route">
|
||
<div class="ibox float-e-margins">
|
||
<div class="ibox-title">
|
||
<h5>请选择推送地址</h5>
|
||
</div>
|
||
<form id="caseRouteFormV" role="form">
|
||
<div class="row" id="caseRouteForm"></div>
|
||
<button class="btn btn-danger case-router-sub" type="button"
|
||
onclick="handerSubmitCaseRoute(0)">取消</button>
|
||
<button class="btn btn-success case-router-cel" type="button"
|
||
onclick="handerSubmitCaseRoute(1)">提交</button>
|
||
</form>
|
||
</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>
|
||
<link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">
|
||
|
||
|
||
<!-- 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>
|
||
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
||
<script src="js/plugins/toastr/toastr.min.js"></script>
|
||
<!-- 自定义js -->
|
||
<script src="js/plugins/iCheck/icheck.min.js"></script>
|
||
<script src="js/content.js?v=1.0.0"></script>
|
||
<script src="js/request.js"></script>
|
||
<!-- Page-Level Scripts -->
|
||
<script>
|
||
var currentCaseId = null;
|
||
var currentTable = null;
|
||
function handlerShenhe(_type, id) {
|
||
// myModal
|
||
if (_type == 1) {
|
||
LoadDataBase();
|
||
$('#case-route-model').fadeIn();
|
||
} else {
|
||
swal("请输入不通过原因:", {
|
||
content: "input",
|
||
}).then((value) => {
|
||
if (value) {
|
||
let data = {
|
||
"caseid": currentCaseId,
|
||
"isagree": false,
|
||
"comments": value,
|
||
"datebaseids": []
|
||
}
|
||
// /api/DroneCaseinfo/UpdateDroneCaseInfoExamine
|
||
postAjaxRequst('/api/DroneCaseinfo/UpdateDroneCaseInfoExamine', data, function (res) {
|
||
if (res.code == 200) {
|
||
swal({
|
||
text: res.message,
|
||
icon: "success"
|
||
});
|
||
} else {
|
||
swal({
|
||
text: res.message,
|
||
icon: "error"
|
||
});
|
||
}
|
||
$('#case-route-model').fadeOut();
|
||
$('#myModal').fadeOut()
|
||
$("#table_list_1").jqGrid().trigger("reloadGrid")
|
||
currentCaseId = null
|
||
})
|
||
} else {
|
||
swal({
|
||
text: `未输入不通过原因,请重新操作`,
|
||
icon: "error"
|
||
});
|
||
return false;
|
||
}
|
||
});
|
||
}
|
||
if(_type == 3){
|
||
swal({
|
||
title:'确定要关闭该线索吗?',
|
||
icon:'warning',
|
||
buttons:{
|
||
cancel: "取消",
|
||
confirm: {
|
||
text: "确定",
|
||
value: true,
|
||
},
|
||
}
|
||
}).then(res => {
|
||
if(res !== null){
|
||
getAjaxRequst(
|
||
"/api/DroneCaseinfo/CloseDroneCaseInfo?id=" + id, {},
|
||
function (res) {
|
||
if (res.code == 200) {
|
||
$("#table_list_1")
|
||
.jqGrid("clearGridData")
|
||
.jqGrid("setGridParam", { url: baseURL + '/api/DroneCaseinfo/LoadCaseInfoLists?is_Reviewer=1&is_examine=0&is_intact=1' })
|
||
.trigger("reloadGrid");
|
||
swal('关闭成功')
|
||
}
|
||
}
|
||
)
|
||
}
|
||
})
|
||
}
|
||
}
|
||
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_description || '无'}</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>
|
||
<button type="button" onClick="handlerShenhe(3,'${info.id}')" class="btn btn-danger" data-dismiss="modal">关闭线索</button>
|
||
<button type="button" onClick="handlerShenhe(1,'${info.case_no}')" class="btn btn-primary">通 过</button>
|
||
<button type="button" onClick="handlerShenhe(2,'${info.case_no}')" class="btn btn-danger">不通过</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"); // 执行浏览器复制命令
|
||
toastr.success('复制成功')
|
||
}
|
||
//提交审核-同意
|
||
function handerSubmitCaseRoute(type) {
|
||
if (!type) {
|
||
$('#case-route-model').fadeOut();
|
||
return false;
|
||
}
|
||
let formData = $('#caseRouteFormV').serializeArray();
|
||
let data = {
|
||
"caseid": currentCaseId,
|
||
"isagree": true,
|
||
"comments": "",
|
||
"datebaseids": formData.map(item => item.value)
|
||
}
|
||
postAjaxRequst('/api/DroneCaseinfo/UpdateDroneCaseInfoExamine', data, function (res) {
|
||
if (res.code == 200) {
|
||
swal({
|
||
text: res.message,
|
||
icon: "success"
|
||
});
|
||
} else {
|
||
swal({
|
||
text: res.message,
|
||
icon: "error"
|
||
});
|
||
}
|
||
$('#case-route-model').fadeOut();
|
||
$('#myModal').fadeOut()
|
||
$("#table_list_1").jqGrid().trigger("reloadGrid")
|
||
currentCaseId = null
|
||
})
|
||
}
|
||
function LoadDataBase() {
|
||
// /api/Orgs/LoadDataBase
|
||
getAjaxRequst('/api/Orgs/LoadDataBase', {}, function (res) {
|
||
if (res.code == 200) {
|
||
$('#caseRouteForm').empty()
|
||
res.result.forEach((item) => {
|
||
$('#caseRouteForm').append(
|
||
`
|
||
<div class="checkbox i-checks case-route-che">
|
||
<label><input type="checkbox" name='caseroute' value="${item.id}"> <i></i>${item.database_name}</label>
|
||
</div>
|
||
`
|
||
)
|
||
})
|
||
$('.i-checks').iCheck({
|
||
checkboxClass: 'icheckbox_square-green',
|
||
radioClass: 'iradio_square-green',
|
||
});
|
||
|
||
}
|
||
})
|
||
}
|
||
$(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=0&is_intact=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: 14,
|
||
// rowList: [10, 20, 30],
|
||
colNames: ['案件编号', '案件描述', '案件类型', '县', '镇', '判读人', '判读时间', '状态', '操作'],
|
||
ondblClickRow: function (rowid, iRow, iCol, e) {
|
||
$('#myModal').modal('show')
|
||
showModal(rowid)
|
||
},
|
||
colModel: [
|
||
{
|
||
name: 'case_no',
|
||
index: 'case_no',
|
||
align: 'center',
|
||
width: 100,
|
||
},
|
||
{
|
||
name: 'case_description',
|
||
index: 'case_description',
|
||
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: '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_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> |