Commit acb8defb by fengshuonan

完善页面和校验

parent 6951b13b
...@@ -141,6 +141,9 @@ ...@@ -141,6 +141,9 @@
@if(array.contain(plugins,"laydate")){ @if(array.contain(plugins,"laydate")){
<script src="${ctxPath}/assets/common/plugins/laydate/laydate.js"></script> <script src="${ctxPath}/assets/common/plugins/laydate/laydate.js"></script>
@} @}
@if(array.contain(plugins,"validation")){
<script src="${ctxPath}/assets/common/plugins/validation/validation.js"></script>
@}
@} @}
<!--其他业务用的js--> <!--其他业务用的js-->
......
@layout("/common/_dialog.html",{plugins:["laydate"],js:["/assets/modular/system/user/user_info.js"]}){ @layout("/common/_dialog.html",{plugins:["laydate","validation"],js:["/assets/modular/system/user/user_info.js"]}){
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
......
...@@ -211,6 +211,8 @@ function onBodyDown(event) { ...@@ -211,6 +211,8 @@ function onBodyDown(event) {
$(function () { $(function () {
$("input,select,textarea").not("[type=submit]").jqBootstrapValidation();
//初始化性别选项 //初始化性别选项
$("#sex").val($("#sexValue").val()); $("#sex").val($("#sexValue").val());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment