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.

161 lines
6.9 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增涉密会议')" />
<th:block th:include="include :: datetimepicker-css" />
<th:block th:include="include :: jasny-bootstrap-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
<form class="form-horizontal m" id="form-meeting-add">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">会议主题:</label>
<div class="col-sm-10">
<input name="meetingTitle" required placeholder="请输入会议主题" class="form-control m-b" 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 type="text" class="form-control m-b" placeholder="请选择会议时间" name="meetingTime"></input>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">会议地点:</label>
<div class="col-sm-8">
<input type="text" class="form-control m-b" placeholder="请输入会议地点" name="meetingAddress"></input>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">参会人数:</label>
<div class="col-sm-8">
<input type="text" class="form-control m-b" digits="true" placeholder="请输入参会人数" name="meetingUsernum"></input>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">主办方:</label>
<div class="col-sm-8">
<input type="text" class="form-control m-b" placeholder="请输入主办方" name="meetingHost"></input>
</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">
<select name="meetingType" required class="form-control m-b" th:with="type=${@dict.getType('sys_meeting_type')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</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">
<select name="meetingState" required class="form-control m-b" th:with="type=${@dict.getType('sys_meeting_state')}">
<option value="">---请选择---</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label is-required">上传文件:</label>
<div class="fileinput fileinput-new col-sm-10" data-provides="fileinput">
<span class="btn btn-white btn-file">
<span class="fileinput-new">选择文件</span>
<span class="fileinput-exists">更改</span>
<input type="file" id="fileUrlId" name="..." required>
<input type="hidden" id="fileUrl" name="fileUrl">
<input type="hidden" id="fileName" name="fileName">
</span>
<span class="fileinput-filename"></span>
<a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">&times;</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">会议纪要:</label>
<div class="col-sm-10">
<textarea name="summary" placeholder="请输入会议纪要" class="form-control"></textarea>
</div>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: jasny-bootstrap-js" />
<script th:inline="javascript">
var prefix = ctx + "system/tdmeeting"
$("#form-meeting-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-meeting-add').serialize());
}
}
$("input[name='meetingTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
//文件上传
$('#fileUrlId').on('change.bs.fileinput ', function (e) {
// 处理自己的业务
var file = e.target.files[0];
var data = new FormData();
data.append("file", file);
$.ajax({
type: "POST",
url: ctx + "common/upload",
data: data,
cache: false,
contentType: false,
processData: false,
dataType: 'json',
success: function(result) {
if (result.code == web_status.SUCCESS) {
$("#fileUrl").val(result.url);
$("#fileName").val(result.originalFilename);
} else {
$("#fileUrl").val("");
$("#fileName").val("");
}
},
error: function(error) {
$.modal.alertWarning("文件上传失败。");
}
});
});
</script>
</body>
</html>