涉密文件下发,编辑,详情

master
dshclm 11 months ago
parent ace7295ce3
commit 217f40eaaa

@ -0,0 +1,158 @@
<!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" />
</head>
<style>
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
color: #000000;
}
</style>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-fileprovide-edit" th:object="${tdFileProvide}">
<input name="fileId" th:field="*{fileId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">文件编码:</label>
<div class="col-sm-8">
<input name="fileId" readonly th:field="*{fileId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文份数:</label>
<div class="col-sm-8">
<input name="provideCount" readonly th:field="*{provideCount}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文单位:</label>
<div class="col-sm-8">
<input name="provideDepart" readonly th:field="*{provideDepart}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文人员:</label>
<div class="col-sm-8">
<input name="provideUserid" readonly th:field="*{provideUserid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">发文日期:</label>
<div class="col-sm-8">
<input name="provideDate" readonly id="provideDate" th:field="*{provideDate}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">收文单位:</label>
<div class="col-sm-8">
<select name="targetDepart" disabled class="form-control select2-multiple m-b" multiple>
<option th:each="item : ${dept}" th:if="${item.deptId != 100}" th:text="${item.deptName}" th:selected="${item.delFlag}" th:value="${item.deptName}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">紧急程度:</label>
<div class="col-sm-8">
<select name="instancyExtent" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{instancyExtent}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">定密依据:</label>
<div class="col-sm-8">
<input name="allianceFile" readonly th:field="*{allianceFile}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件备注:</label>
<div class="col-sm-8">
<input name="remark" readonly th:field="*{remark}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新人员:</label>
<div class="col-sm-8">
<input name="updateUser" id="updateDate" readonly th:field="*{updateUser}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<input name="updateDate" readonly th:field="*{updateDate}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属地区:</label>
<div class="col-sm-8">
<input name="frameworkId" readonly th:field="*{frameworkId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件密级:</label>
<div class="col-sm-8">
<select name="fileSecret" disabled class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{fileSecret}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">保密期限:</label>
<div class="col-sm-8">
<input name="releaseSecretid" readonly th:field="*{releaseSecretid}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文件标题:</label>
<div class="col-sm-8">
<input name="fileName" readonly th:field="*{fileName}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">文号:</label>
<div class="col-sm-8">
<input name="fileNum" readonly th:field="*{fileNum}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属地区:</label>
<div class="col-sm-8">
<input name="areaid" readonly th:field="*{areaid}" class="form-control" type="text">
</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" />
<script th:inline="javascript">
var prefix = ctx + "system/fileprovide";
$("#form-fileprovide-edit").validate({
focusCleanup: true
});
var updateDate = document.querySelector('#updateDate').value;
var provideDate = document.querySelector('#provideDate').value;
function fileFormatDate(date){
//日期格式化
var dateObj = new Date(date);
var year = dateObj.getFullYear();
var month = dateObj.getMonth() + 1;
var day = dateObj.getDate();
return year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
}
if (updateDate != null && updateDate !== ''){
document.querySelector('#updateDate').value = fileFormatDate(updateDate)
}
if (provideDate != null && provideDate !== ''){
document.querySelector('#provideDate').value = fileFormatDate(provideDate)
}
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-fileprovide-edit').serialize());
}
}
</script>
</body>
</html>

@ -36,7 +36,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">发文日期:</label>
<div class="col-sm-8">
<input name="provideDate" th:field="*{provideDate}" class="form-control" type="text">
<input name="provideDate" id="provideDate" th:field="*{provideDate}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
@ -76,7 +76,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">更新日期:</label>
<div class="col-sm-8">
<input name="updateDate" th:field="*{updateDate}" class="form-control" type="text">
<input name="updateDate" id="updateDate" th:field="*{updateDate}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
@ -127,7 +127,22 @@
$("#form-fileprovide-edit").validate({
focusCleanup: true
});
var updateDate = document.querySelector('#updateDate').value;
var provideDate = document.querySelector('#provideDate').value;
function fileFormatDate(date){
//日期格式化
var dateObj = new Date(date);
var year = dateObj.getFullYear();
var month = dateObj.getMonth() + 1;
var day = dateObj.getDate();
return year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
}
if (updateDate != null && updateDate !== ''){
document.querySelector('#updateDate').value = fileFormatDate(updateDate)
}
if (provideDate != null && provideDate !== ''){
document.querySelector('#provideDate').value = fileFormatDate(provideDate)
}
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-fileprovide-edit').serialize());

@ -61,6 +61,7 @@
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:fileprovide:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:fileprovide:remove')}]];
var detailFlag = [[${@permission.hasPermi('system:fileprovide:detail')}]];
var instancyExtentDatas = [[${@dict.getType('sys_file_jinjichengdu')}]];
var fileSecretDatas = [[${@dict.getType('sys_file_miji')}]];
var prefix = ctx + "system/fileprovide";
@ -70,6 +71,7 @@
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
detailUrl: prefix + "/detail/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "文件下发",
@ -161,6 +163,7 @@
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.fileId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.fileId + '\')"><i class="fa fa-search"></i>详细</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.fileId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
@ -170,4 +173,4 @@
});
</script>
</body>
</html>
</html>

Loading…
Cancel
Save