parent
8554de17a9
commit
b6b97f5fc8
@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增载体制作')" />
|
||||
<th:block th:include="include :: select2-css" />
|
||||
<th:block th:include="include :: bootstrap-select-css" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<input name="status" th:value="3" type="hidden">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">接收单位:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="receivingUnits" th:field="*{receivingUnits}" placeholder="请输入接收单位" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">接收时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="receivingTime" required class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">接收人员:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="receivingUser" th:field="*{receivingUser}" placeholder="请输入接收人员" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">发放单位:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="issuingUnit" th:field="*{issuingUnit}" placeholder="请输入发放单位" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">发放时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="issuingTime" required class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">发放人员:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="issuingUser" th:field="*{issuingUser}" placeholder="请输入发放人员" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">传递方式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deliveryMethod" placeholder="请输入传递方式" th:field="*{deliveryMethod}" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label is-required">交通工具:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="carrierVehicle" placeholder="请输入交通工具" th:field="*{carrierVehicle}" required class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: select2-js" />
|
||||
<th:block th:include="include :: bootstrap-select-js" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/carrier"
|
||||
$("#form-fileprovide-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
|
||||
}
|
||||
}
|
||||
$("input[name='receivingTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
$("input[name='issuingTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,139 @@
|
||||
<!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>
|
Loading…
Reference in new issue