|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
<th:block th:include="include :: header('新增用户')" />
|
|
|
|
|
<th:block th:include="include :: select2-css" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
|
|
|
<th:block th:include="include :: jasny-bootstrap-css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="main-content">
|
|
|
|
@ -214,17 +215,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="font-noraml">保密协议签订书</label>
|
|
|
|
|
<div class="file-loading">
|
|
|
|
|
<input id="singleFile" name="file" type="file">
|
|
|
|
|
<input id="cee" name="cee" type="hidden" value="">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -243,6 +233,27 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label">保密协议签订书:</label>
|
|
|
|
|
<br/>
|
|
|
|
|
<div class="fileinput fileinput-new" 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="...">
|
|
|
|
|
<input type="hidden" id="fileUrl" name="confAgreement">
|
|
|
|
|
<input type="hidden" id="fileName" name="confName">
|
|
|
|
|
</span>
|
|
|
|
|
<span class="fileinput-filename"></span>
|
|
|
|
|
<a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">×</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="form-header h4">其他信息</h4>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
@ -266,8 +277,7 @@
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<th:block th:include="include :: select2-js" />
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
|
|
|
<th:block th:include="include :: bootstrap-fileinput-css" />
|
|
|
|
|
<th:block th:include="include :: bootstrap-fileinput-js" />
|
|
|
|
|
<th:block th:include="include :: jasny-bootstrap-js" />
|
|
|
|
|
<script>
|
|
|
|
|
var prefix = ctx + "system/user";
|
|
|
|
|
|
|
|
|
@ -381,25 +391,39 @@
|
|
|
|
|
allowClear: true
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$("#singleFile").fileinput({
|
|
|
|
|
uploadUrl: ctx + 'common/upload',
|
|
|
|
|
maxFileCount: 1,
|
|
|
|
|
autoReplace: true
|
|
|
|
|
}).on('fileuploaded', function (event, data, previewId, index) {
|
|
|
|
|
var rsp = data.response;
|
|
|
|
|
$("#cee").val(rsp.url);
|
|
|
|
|
log.info("return url:" + rsp.url)
|
|
|
|
|
log.info("reutrn fileName:" + rsp.fileName)
|
|
|
|
|
log.info("reutrn newFileName:" + rsp.newFileName)
|
|
|
|
|
log.info("return originalFilename:" + rsp.originalFilename)
|
|
|
|
|
}).on('fileremoved', function (event, id, index) {
|
|
|
|
|
$("input[name='" + event.currentTarget.id + "']").val('')
|
|
|
|
|
})
|
|
|
|
|
//文件上传
|
|
|
|
|
$('#fileUrlId').on('change.bs.fileinput ', function (e) {
|
|
|
|
|
debugger
|
|
|
|
|
// 处理自己的业务
|
|
|
|
|
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>
|
|
|
|
|