You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
5.1 KiB
140 lines
5.1 KiB
8 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||
|
<head>
|
||
|
<th:block th:include="include :: header('载体下发列表')" />
|
||
|
</head>
|
||
|
<body class="gray-bg">
|
||
|
<div class="container-div" id="app">
|
||
|
<div class="row">
|
||
|
<div class="col-sm-12 search-collapse">
|
||
|
<form id="formId">
|
||
|
<div class="select-list">
|
||
|
<ul>
|
||
|
<input type="hidden" name="status" th:value="2"/>
|
||
|
<li>
|
||
|
<label>接收人员:</label>
|
||
|
<input type="text" name="receivingUser"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>发放人员:</label>
|
||
|
<input type="text" name="issuingUser"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>接收时间:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择接收时间" name="receivingTime"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>发放时间:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择发放时间" name="issuingTime"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="col-sm-12 select-table table-striped">
|
||
|
<table id="bootstrap-table"></table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<th:block th:include="include :: footer" />
|
||
|
<script th:inline="javascript">
|
||
|
var editFlag = [[${@permission.hasPermi('system:recCarrier:edit')}]];
|
||
|
var removeFlag = [[${@permission.hasPermi('system:recCarrier:remove')}]];
|
||
|
var detailFlag = [[${@permission.hasPermi('system:recCarrier:detail')}]];
|
||
|
var prefix = ctx + "system/recCarrier";
|
||
|
let datas = []
|
||
|
$.ajax({
|
||
|
url: ctx + "system/area/getAllList",
|
||
|
type: 'GET',
|
||
|
data:{parentId:''} ,
|
||
|
success:((res)=>{
|
||
|
datas = res.data
|
||
|
}) ,
|
||
|
});
|
||
|
$(function() {
|
||
|
var options = {
|
||
|
url: prefix + "/list",
|
||
|
updateUrl: prefix + "/edit/{id}",
|
||
|
modalName: "国家秘密载体收发",
|
||
|
columns: [
|
||
|
{
|
||
|
checkbox: true
|
||
|
},
|
||
|
{
|
||
|
field: 'id',
|
||
|
title: 'id',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'areaCity',
|
||
|
title: '所属市州',
|
||
|
formatter: function(value, row, index) {
|
||
|
return getCity(datas, value)
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'receivingUnits',
|
||
|
title: '接收单位'
|
||
|
},
|
||
|
{
|
||
|
field: 'receivingTime',
|
||
|
title: '接收时间'
|
||
|
},
|
||
|
{
|
||
|
field: 'receivingUser',
|
||
|
title: '接收人员',
|
||
|
},
|
||
|
{
|
||
|
field: 'issuingUnit',
|
||
|
title: '发放单位',
|
||
|
},
|
||
|
{
|
||
|
field: 'issuingTime',
|
||
|
title: '发放时间',
|
||
|
},
|
||
|
{
|
||
|
field: 'issuingUser',
|
||
|
title: '发放人员',
|
||
|
},
|
||
|
{
|
||
|
field: 'deliveryMethod',
|
||
|
title: '传递方式',
|
||
|
},
|
||
|
{
|
||
|
field: 'carrierVehicle',
|
||
|
title: '交通工具',
|
||
|
},
|
||
|
{
|
||
|
title: '操作',
|
||
|
align: 'center',
|
||
|
formatter: function(value, row, index) {
|
||
|
var actions = [];
|
||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||
|
return actions.join('');
|
||
|
}
|
||
|
}]
|
||
|
};
|
||
|
$.table.init(options);
|
||
|
});
|
||
|
function openSubmit(id){
|
||
|
$.modal.confirm("确定要执行此操作吗?", function() {
|
||
|
$.ajax({
|
||
|
url: ctx + "system/carrier/updateStatus/" + id +'/' + '2',
|
||
|
type: "GET",
|
||
|
dataType: "json",
|
||
|
success: function(result) {
|
||
|
$.modal.msgSuccess(result.msg)
|
||
|
}
|
||
|
})
|
||
|
}, function() {
|
||
|
$.modal.msgWarning('取消操作')
|
||
|
});
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|