'已审核'
commit
4ded74b151
|
|
@ -405,7 +405,7 @@
|
|||
autowidth: true,
|
||||
shrinkToFit: true,
|
||||
rowNum: 14,
|
||||
rowList: [10, 20, 30],
|
||||
// rowList: [10, 20, 30],
|
||||
colNames: ['案件编号', '案件名称', '案件类型', '县', '镇', '村', '备注', '判读人', '判读时间', '状态', '操作'],
|
||||
colModel: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,18 +21,27 @@
|
|||
#alertmod_table_list_2 {
|
||||
top: 900px !important;
|
||||
}
|
||||
.lightBoxGallery{
|
||||
|
||||
.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;}
|
||||
|
||||
#copy-input {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
z-index: -10;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
|
@ -43,7 +52,7 @@
|
|||
<div class="col-sm-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>线索审核</h5>
|
||||
<h5>已审核</h5>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="jqGrid_wrapper">
|
||||
|
|
@ -53,7 +62,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal inmodal" id="myModal" role="dialog" aria-hidden="true">
|
||||
<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">
|
||||
|
|
@ -120,7 +129,8 @@
|
|||
<div class="col-sm-12">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>图斑:</dt>
|
||||
<dd id="map" onclick="copyText()" style="cursor: pointer;">啊手动阀手动阀啊手动阀啊手动阀</dd>
|
||||
<dd id="map" onclick="copyText()" style="cursor: pointer;">啊手动阀手动阀啊手动阀啊手动阀
|
||||
</dd>
|
||||
<textarea id="copy-input"></textarea>
|
||||
</dl>
|
||||
</div>
|
||||
|
|
@ -129,43 +139,79 @@
|
|||
<dt>图片:</dt>
|
||||
<dd>
|
||||
<div class="lightBoxGallery">
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img src="img/p3.jpg"></a>
|
||||
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
<a href="img/p_big1.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p1.jpg"></a>
|
||||
<a href="img/p_big2.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p2.jpg"></a>
|
||||
<a href="img/p_big3.jpg" title="图片" data-gallery=""><img
|
||||
src="img/p3.jpg"></a>
|
||||
|
||||
<div id="blueimp-gallery" class="blueimp-gallery">
|
||||
<div class="slides"></div>
|
||||
<h3 class="title"></h3>
|
||||
|
|
@ -186,7 +232,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -207,10 +253,10 @@
|
|||
|
||||
<!-- 自定义js -->
|
||||
<script src="js/content.js?v=1.0.0"></script>
|
||||
|
||||
<script src="js/request.js"></script>
|
||||
<!-- Page-Level Scripts -->
|
||||
<script>
|
||||
function copyText(){
|
||||
function copyText() {
|
||||
let text = document.getElementById("map").innerText;
|
||||
let input = document.getElementById("copy-input");
|
||||
input.value = text; // 修改文本框的内容
|
||||
|
|
@ -220,309 +266,91 @@
|
|||
}
|
||||
$(document).ready(function () {
|
||||
$.jgrid.defaults.styleUI = 'Bootstrap';
|
||||
var mydata = [
|
||||
{
|
||||
id: "1",
|
||||
invdate: "2010-05-24",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "2111.00"
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
invdate: "2010-05-25",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "21.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
invdate: "2007-10-01",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
invdate: "2007-10-02",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "13",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "14",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "15",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "16",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "17",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "18",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "19",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "21",
|
||||
invdate: "2007-10-01",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "22",
|
||||
invdate: "2007-10-02",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "23",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "24",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "25",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "26",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "27",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "28",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "29",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
}
|
||||
];
|
||||
|
||||
$("#table_list_1").jqGrid('clearGridData');
|
||||
$("#table_list_1").jqGrid({
|
||||
data: mydata,
|
||||
datatype: "local",
|
||||
url: baseURL + '/api/DroneCaseinfo/LoadCaseInfoLists?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: 14,
|
||||
rowList: [10, 20, 30],
|
||||
colNames: ['序号', '日期', '客户', '金额', '运费', '总额', '备注'],
|
||||
rowNum: 10,
|
||||
// rowList: [10, 20, 30],
|
||||
colNames: ['案件编号', '案件名称', '案件类型', '县','镇','村', '备注', '判读人','判读时间', '操作'],
|
||||
colModel: [
|
||||
{
|
||||
name: 'id',
|
||||
index: 'id',
|
||||
align:'center',
|
||||
name: 'case_no',
|
||||
index: 'case_no',
|
||||
align: 'center',
|
||||
width: 60,
|
||||
sorttype: "int"
|
||||
},
|
||||
{
|
||||
name: 'invdate',
|
||||
index: 'invdate',
|
||||
align:'center',
|
||||
name: 'case_name',
|
||||
index: 'case_name',
|
||||
align: 'center',
|
||||
width: 90,
|
||||
sorttype: "date",
|
||||
formatter: "date"
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
index: 'name',
|
||||
align:'center',
|
||||
name: 'typename',
|
||||
index: 'typename',
|
||||
align: 'center',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
name: 'amount',
|
||||
index: 'amount',
|
||||
align:'center',
|
||||
name: 'countyname',
|
||||
index: 'countyname',
|
||||
align: 'center',
|
||||
width: 80,
|
||||
sorttype: "float",
|
||||
formatter: "number"
|
||||
},
|
||||
{
|
||||
name: 'tax',
|
||||
index: 'tax',
|
||||
name: 'streetname',
|
||||
index: 'streetname',
|
||||
align: 'center',
|
||||
width: 80,
|
||||
align:'center',
|
||||
sorttype: "float"
|
||||
},
|
||||
{
|
||||
name: 'total',
|
||||
index: 'total',
|
||||
name: 'communityname',
|
||||
index: 'communityname',
|
||||
align: 'center',
|
||||
width: 80,
|
||||
align:'center',
|
||||
sorttype: "float"
|
||||
},
|
||||
{
|
||||
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: "right",
|
||||
width: 80, formatter: function (value, grid, rows) {
|
||||
name: '操作',
|
||||
align: "center",
|
||||
width: 80,
|
||||
formatter: function (value, grid, rows) {
|
||||
var id = rows.id;
|
||||
var button1 = "agree('" + id + "')";
|
||||
var button2 = "disagree('" + id + "')";
|
||||
return `<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
|
||||
打开示例窗口
|
||||
</button>`;
|
||||
详情
|
||||
</button>`;
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -531,18 +359,16 @@
|
|||
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>
|
||||
|
|
@ -14,6 +14,9 @@
|
|||
<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">
|
||||
<script src="js/request.js"></script>
|
||||
<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
|
||||
<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
|
||||
|
||||
<style>
|
||||
/* Additional style to fix warning dialog position */
|
||||
|
|
@ -35,6 +38,13 @@
|
|||
.modal-content{
|
||||
position: relative;
|
||||
}
|
||||
#show-user-list .checkbox-inline{
|
||||
margin: 0 38px 0 0;
|
||||
width: 76px;
|
||||
}
|
||||
#show-user-list .checkbox-inline input{
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
|
@ -67,36 +77,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10">
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="张三">张三</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="李四">李四</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="王五">王五</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="赵六">赵六</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="钱七">钱七</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="张三">张三</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="李四">李四</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="王五">王五</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="赵六">赵六</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="钱七">钱七</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="张三">张三</label>
|
||||
<label class="checkbox-inline i-checks">
|
||||
<input type="checkbox" value="李四">李四</label>
|
||||
</div>
|
||||
<div class="col-sm-10" id="show-user-list"></div>
|
||||
</div>
|
||||
<div class="modal-footer" style="border-top: 0px;position: absolute;bottom: 10px; right:10px;">
|
||||
<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary">保存</button>
|
||||
<button type="button" onClick="saveValue()" class="btn btn-primary">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -126,307 +111,95 @@
|
|||
|
||||
<!-- Page-Level Scripts -->
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass: 'icheckbox_square-green',
|
||||
radioClass: 'iradio_square-green',
|
||||
});
|
||||
});
|
||||
let selectUserId = '';
|
||||
let selectUserList = [];
|
||||
function showModal(id) {
|
||||
selectUserList = [];
|
||||
selectUserId = id;
|
||||
getAjaxRequst(
|
||||
"/api/Users/Loads?page=1&limit=99999", {},
|
||||
function (res){
|
||||
if (res.code == 200) {
|
||||
getAjaxRequst("/api/AccessObjs/GetIntactUsers?audituserid="+selectUserId, {},function(response){
|
||||
if (response.code == 200) {
|
||||
let data = res.root
|
||||
let result_text = ''
|
||||
$('#show-user-list').empty()
|
||||
data.forEach(item => {
|
||||
result_text += `<label class="checkbox-inline i-checks"><input type="checkbox" value="${item.id}">${item.name}</label>`
|
||||
})
|
||||
$('#show-user-list').append(result_text)
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass: 'icheckbox_square-green',
|
||||
radioClass: 'iradio_square-green',
|
||||
})
|
||||
// 回显
|
||||
let showList = response.result
|
||||
let resultMap = $('#show-user-list').find('input').map(function(){
|
||||
if(showList.includes($(this).val())){
|
||||
$(this).iCheck('check')
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
function saveValue(){
|
||||
selectUserList = $('#show-user-list').find('input:checked').map(function(){
|
||||
return $(this).val()
|
||||
}).get()
|
||||
postAjaxRequst(
|
||||
"/api/AccessObjs/AssignAuditUsers", {auditUserId: selectUserId, userIds: selectUserList},
|
||||
function (res){
|
||||
console.log(res)
|
||||
if (res.code == 200) {
|
||||
swal('保存成功');
|
||||
$('#myModal').modal('hide')
|
||||
selectUserId = ''
|
||||
selectUserList = []
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$.jgrid.defaults.styleUI = 'Bootstrap';
|
||||
var mydata = [
|
||||
{
|
||||
id: "1",
|
||||
invdate: "2010-05-24",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "2111.00"
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
invdate: "2010-05-25",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "21.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
invdate: "2007-10-01",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
invdate: "2007-10-02",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "13",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "14",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "15",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "16",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "17",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "18",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "19",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "21",
|
||||
invdate: "2007-10-01",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "22",
|
||||
invdate: "2007-10-02",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "23",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "24",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "25",
|
||||
invdate: "2007-10-05",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "26",
|
||||
invdate: "2007-09-06",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
},
|
||||
{
|
||||
id: "27",
|
||||
invdate: "2007-10-04",
|
||||
name: "test",
|
||||
note: "note",
|
||||
amount: "200.00",
|
||||
tax: "10.00",
|
||||
total: "210.00"
|
||||
},
|
||||
{
|
||||
id: "28",
|
||||
invdate: "2007-10-03",
|
||||
name: "test2",
|
||||
note: "note2",
|
||||
amount: "300.00",
|
||||
tax: "20.00",
|
||||
total: "320.00"
|
||||
},
|
||||
{
|
||||
id: "29",
|
||||
invdate: "2007-09-01",
|
||||
name: "test3",
|
||||
note: "note3",
|
||||
amount: "400.00",
|
||||
tax: "30.00",
|
||||
total: "430.00"
|
||||
}
|
||||
];
|
||||
|
||||
$("#table_list_1").jqGrid({
|
||||
data: mydata,
|
||||
datatype: "local",
|
||||
url: baseURL + '/api/Users/Loads',
|
||||
loadBeforeSend: function (jqXHR) {
|
||||
jqXHR.setRequestHeader("X-Token",localStorage.getItem('token'));
|
||||
},
|
||||
datatype: "json",
|
||||
height: "100%",
|
||||
jsonReader: {
|
||||
root: "root",
|
||||
page: "page",
|
||||
total: "total",
|
||||
records: "totalCount"
|
||||
},
|
||||
autowidth: true,
|
||||
shrinkToFit: true,
|
||||
rowNum: 14,
|
||||
rowList: [10, 20, 30],
|
||||
colNames: ['序号', '日期', '客户', '金额', '运费', '总额', '备注'],
|
||||
rowNum: 10,
|
||||
// rowList: [10, 20, 30],
|
||||
colNames: ['账号', '名称', '创建时间', '操作'],
|
||||
colModel: [
|
||||
{
|
||||
name: 'id',
|
||||
index: 'id',
|
||||
name: 'account',
|
||||
index: 'account',
|
||||
align:'center',
|
||||
width: 60,
|
||||
sorttype: "int"
|
||||
},
|
||||
{
|
||||
name: 'invdate',
|
||||
index: 'invdate',
|
||||
align:'center',
|
||||
width: 90,
|
||||
sorttype: "date",
|
||||
formatter: "date"
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
index: 'name',
|
||||
align:'center',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
name: 'amount',
|
||||
index: 'amount',
|
||||
name: 'createTime',
|
||||
index: 'createTime',
|
||||
align:'center',
|
||||
width: 80,
|
||||
sorttype: "float",
|
||||
formatter: "number"
|
||||
},
|
||||
{
|
||||
name: 'tax',
|
||||
index: 'tax',
|
||||
width: 80,
|
||||
align:'center',
|
||||
sorttype: "float"
|
||||
},
|
||||
{
|
||||
name: 'total',
|
||||
index: 'total',
|
||||
width: 80,
|
||||
align:'center',
|
||||
sorttype: "float"
|
||||
},
|
||||
|
||||
{
|
||||
name: '操作',
|
||||
align: "right",
|
||||
|
|
@ -434,8 +207,8 @@
|
|||
var id = rows.id;
|
||||
var button1 = "agree('" + id + "')";
|
||||
var button2 = "disagree('" + id + "')";
|
||||
return `<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
|
||||
打开示例窗口
|
||||
return `<button type="button" onClick="showModal('${id}')" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
|
||||
分配人员
|
||||
</button>`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue