|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">案件名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="caseName" th:field="*{caseName}" required placeholder="请输入案件名称" class="form-control" type="text">
|
|
|
|
|
<input name="caseName" maxlength="50" th:field="*{caseName}" required placeholder="请输入案件名称" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label">案件编号:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="caseAssum" th:field="*{caseAssum}" placeholder="请输入案件编号" class="form-control" type="text">
|
|
|
|
|
<input name="caseAssum" maxlength="50" th:field="*{caseAssum}" placeholder="请输入案件编号" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -44,7 +44,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">发生地点:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="caseAddress" th:field="*{caseAddress}" required placeholder="请输入案件发生地点" class="form-control"></input>
|
|
|
|
|
<input name="caseAddress" maxlength="50" th:field="*{caseAddress}" required placeholder="请输入案件发生地点" class="form-control"></input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -78,7 +78,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">涉案人员名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="involvedName" required placeholder="请输入涉案人员名称" class="form-control" th:field="*{involvedName}"></input>
|
|
|
|
|
<input name="involvedName" maxlength="25" required placeholder="请输入涉案人员名称" class="form-control" th:field="*{involvedName}"></input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -86,7 +86,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">涉案人员联系方式:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="involvedTel" required placeholder="请输入涉案人员联系方式" class="form-control" th:field="*{involvedTel}" maxlength="11"></input>
|
|
|
|
|
<input name="involvedTel" id="involvedTel" maxlength="11" required placeholder="请输入涉案人员联系方式" class="form-control" th:field="*{involvedTel}"></input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -132,8 +132,24 @@
|
|
|
|
|
<th:block th:include="include :: bootstrap-select-js" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var prefix = ctx + "system/tdCase"
|
|
|
|
|
$("#form-tdCase-edit").validate({
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
$.validator.addMethod("phone", function(value, element) {
|
|
|
|
|
return this.optional(element) || /^1[3-9]\d{9}$/.test(value);
|
|
|
|
|
}, "请输入有效的手机号码");
|
|
|
|
|
$("#form-tdCase-add").validate({
|
|
|
|
|
focusCleanup: true,
|
|
|
|
|
rules: {
|
|
|
|
|
involvedTel: {
|
|
|
|
|
isPhone:true,
|
|
|
|
|
required: true,
|
|
|
|
|
phone: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
messages: {
|
|
|
|
|
involvedTel: {
|
|
|
|
|
required: "手机号码不能为空",
|
|
|
|
|
phone: "请输入有效的手机号码"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("input[name='caseTime']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd hh:ii",
|
|
|
|
|