<!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-troubleshootType-add">
|
<div class="form-group">
|
<label class="col-sm-3 control-label is-required">类型名称:</label>
|
<div class="col-sm-8">
|
<textarea name="typeName" class="form-control" required></textarea>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label is-required">隐患排查周期数:</label>
|
<div class="col-sm-8">
|
<input name="typeCycleNum" class="form-control" type="text" required>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label is-required">隐患排查周期类型:</label>
|
<div class="col-sm-8">
|
<select name="typeCycleType" class="form-control m-b" th:with="type=${@dict.getType('tr_cycle_type')}" required>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</div>
|
</div>
|
</form>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script type="text/javascript">
|
var prefix = ctx + "tr/troubleshootType";
|
$("#form-troubleshootType-add").validate({
|
focusCleanup: true
|
});
|
|
function submitHandler() {
|
if ($.validate.form()) {
|
$.operate.save(prefix + "/add", $('#form-troubleshootType-add').serialize());
|
}
|
}
|
</script>
|
</body>
|
</html>
|