<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<head>
|
<th:block th:include="include :: header('指纹')" />
|
</head>
|
<body class="white-bg">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<form class="form-horizontal m" id="form-finger-add">
|
<input id="id" name="id" type="hidden" th:value="*{id}"/>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">指纹索引录入:</label>
|
<div class="col-sm-8">
|
<div class="col-sm-8">
|
<select class="form-control" name="fingerprint" th:with="type=${@dict.getType('mj_finger_index')}">
|
<option value="">请选择</option>
|
<option th:selected="${dict.dictValue}" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script th:inline="javascript">
|
var prefix = ctx + "station/workUser"
|
$("#form-finger-add").validate({
|
focusCleanup: true
|
});
|
function submitHandler() {
|
if ($.validate.form()) {
|
var fingerprint = $("[name = fingerprint] option:selected").val();
|
var userId = $("#id").val();
|
window.parent.document.getElementById("fingerIndex").value = fingerprint;
|
window.parent.document.getElementById("fingerIndexUserId").value = userId;
|
$.operate.save(prefix + "/pushUserInfo", $('#form-finger-add').serialize());
|
}
|
|
}
|
</script>
|
</body>
|
</html>
|