必填的项增加星号

dep_wangsr
RuoYi 5 years ago committed by Limy
parent af5e977231
commit 82d17c2983

@ -322,6 +322,11 @@
} }
/** 表单验证 样式布局 **/ /** 表单验证 样式布局 **/
.control-label.is-required:before {
content: '* ';
color: red;
}
label.error { label.error {
position: absolute; position: absolute;
right: 18px; right: 18px;

@ -394,7 +394,7 @@ var table = {
var index = layer.load(2, {shade: false}); var index = layer.load(2, {shade: false});
$.modal.disable(); $.modal.disable();
var formData = new FormData(); var formData = new FormData();
formData.append("file", $('#file')[0].files[0]); formData.append("file", layero.find('#file')[0].files[0]);
formData.append("updateSupport", $("input[name='updateSupport']").is(':checked')); formData.append("updateSupport", $("input[name='updateSupport']").is(':checked'));
$.ajax({ $.ajax({
url: table.options.importUrl, url: table.options.importUrl,

@ -9,7 +9,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>用户名称:</label> <label class="col-sm-4 control-label is-required">用户名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="userName" placeholder="请输入用户名称" class="form-control" type="text"> <input name="userName" placeholder="请输入用户名称" class="form-control" type="text">
</div> </div>
@ -17,7 +17,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>归属部门:</label> <label class="col-sm-4 control-label is-required">归属部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group"> <div class="input-group">
<input name="deptName" type="text" placeholder="请选择归属部门" class="form-control"> <input name="deptName" type="text" placeholder="请选择归属部门" class="form-control">
@ -30,7 +30,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>手机号码:</label> <label class="col-sm-4 control-label is-required">手机号码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text"> <input name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text">
</div> </div>
@ -38,7 +38,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>邮箱:</label> <label class="col-sm-4 control-label is-required">邮箱:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="email" class="form-control" type="text" placeholder="请输入邮箱"> <input name="email" class="form-control" type="text" placeholder="请输入邮箱">
</div> </div>
@ -48,7 +48,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>登录账号:</label> <label class="col-sm-4 control-label is-required">登录账号:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="loginName" placeholder="请输入登录账号" class="form-control" type="text"> <input name="loginName" placeholder="请输入登录账号" class="form-control" type="text">
</div> </div>
@ -56,7 +56,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>登录密码:</label> <label class="col-sm-4 control-label is-required">登录密码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="password" placeholder="请输入登录密码" class="form-control" type="password"> <input name="password" placeholder="请输入登录密码" class="form-control" type="password">
</div> </div>

@ -77,12 +77,12 @@
}); });
initChildTable = function(index, row, $detail) { initChildTable = function(index, row, $detail) {
var cur_table = $detail.html('<table style="table-layout:fixed"></table>').find('table'); var childTable = $detail.html('<table style="table-layout:fixed"></table>').find('table');
$(cur_table).bootstrapTable({ $(childTable).bootstrapTable({
url: prefix + "/list", url: prefix + "/list",
method: 'post', method: 'post',
sidePagination: "server", sidePagination: "server",
contentType: "application/x-www-form-urlencoded", // 编码类型 contentType: "application/x-www-form-urlencoded",
queryParams : { queryParams : {
userName: '测试8' userName: '测试8'
}, },

@ -7,19 +7,19 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-config-add" name="form-config-add"> <form class="form-horizontal m" id="form-config-add" name="form-config-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数名称:</label> <label class="col-sm-3 control-label is-required">参数名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configName" name="configName" class="form-control" type="text" required> <input id="configName" name="configName" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数键名:</label> <label class="col-sm-3 control-label is-required">参数键名:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configKey" name="configKey" class="form-control" type="text" required> <input id="configKey" name="configKey" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数键值:</label> <label class="col-sm-3 control-label is-required">参数键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configValue" name="configValue" class="form-control" type="text" required> <input id="configValue" name="configValue" class="form-control" type="text" required>
</div> </div>

@ -8,19 +8,19 @@
<form class="form-horizontal m" id="form-config-edit" th:object="${config}"> <form class="form-horizontal m" id="form-config-edit" th:object="${config}">
<input id="configId" name="configId" th:field="*{configId}" type="hidden"> <input id="configId" name="configId" th:field="*{configId}" type="hidden">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数名称:</label> <label class="col-sm-3 control-label is-required">参数名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configName" name="configName" th:field="*{configName}" class="form-control" type="text" required> <input id="configName" name="configName" th:field="*{configName}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数键名:</label> <label class="col-sm-3 control-label is-required">参数键名:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configKey" name="configKey" th:field="*{configKey}" class="form-control" type="text" required> <input id="configKey" name="configKey" th:field="*{configKey}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">参数键值:</label> <label class="col-sm-3 control-label is-required">参数键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="configValue" name="configValue" th:field="*{configValue}" class="form-control" type="text" required> <input id="configValue" name="configValue" th:field="*{configValue}" class="form-control" type="text" required>
</div> </div>

@ -17,13 +17,13 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">部门名称:</label> <label class="col-sm-3 control-label is-required">部门名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="deptName" id="deptName" required> <input class="form-control" type="text" name="deptName" id="deptName" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示排序:</label> <label class="col-sm-3 control-label is-required">显示排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="orderNum" required> <input class="form-control" type="text" name="orderNum" required>
</div> </div>

@ -18,13 +18,13 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">部门名称:</label> <label class="col-sm-3 control-label is-required">部门名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="deptName" th:field="*{deptName}" id="deptName" required> <input class="form-control" type="text" name="deptName" th:field="*{deptName}" id="deptName" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示排序:</label> <label class="col-sm-3 control-label is-required">显示排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="orderNum" th:field="*{orderNum}" required> <input class="form-control" type="text" name="orderNum" th:field="*{orderNum}" required>
</div> </div>

@ -7,13 +7,13 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-dict-add"> <form class="form-horizontal m" id="form-dict-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典标签:</label> <label class="col-sm-3 control-label is-required">字典标签:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictLabel" id="dictLabel" required> <input class="form-control" type="text" name="dictLabel" id="dictLabel" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典键值:</label> <label class="col-sm-3 control-label is-required">字典键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictValue" id="dictValue" required> <input class="form-control" type="text" name="dictValue" id="dictValue" required>
</div> </div>
@ -31,7 +31,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">字典排序:</label> <label class="col-sm-3 control-label is-required">字典排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictSort" required> <input class="form-control" type="text" name="dictSort" required>
</div> </div>

@ -8,13 +8,13 @@
<form class="form-horizontal m" id="form-dict-edit" th:object="${dict}"> <form class="form-horizontal m" id="form-dict-edit" th:object="${dict}">
<input name="dictCode" type="hidden" th:field="*{dictCode}" /> <input name="dictCode" type="hidden" th:field="*{dictCode}" />
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典标签:</label> <label class="col-sm-3 control-label is-required">字典标签:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictLabel" id="dictLabel" th:field="*{dictLabel}" required> <input class="form-control" type="text" name="dictLabel" id="dictLabel" th:field="*{dictLabel}" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典键值:</label> <label class="col-sm-3 control-label is-required">字典键值:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictValue" id="dictValue" th:field="*{dictValue}" required> <input class="form-control" type="text" name="dictValue" id="dictValue" th:field="*{dictValue}" required>
</div> </div>
@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">字典排序:</label> <label class="col-sm-3 control-label is-required">字典排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictSort" th:field="*{dictSort}" required> <input class="form-control" type="text" name="dictSort" th:field="*{dictSort}" required>
</div> </div>

@ -7,13 +7,13 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-dict-add"> <form class="form-horizontal m" id="form-dict-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典名称:</label> <label class="col-sm-3 control-label is-required">字典名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictName" id="dictName" required> <input class="form-control" type="text" name="dictName" id="dictName" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">字典类型:</label> <label class="col-sm-3 control-label is-required">字典类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictType" id="dictType" required> <input class="form-control" type="text" name="dictType" id="dictType" required>
</div> </div>

@ -8,13 +8,13 @@
<form class="form-horizontal m" id="form-dict-edit" th:object="${dict}"> <form class="form-horizontal m" id="form-dict-edit" th:object="${dict}">
<input id="dictId" name="dictId" type="hidden" th:field="*{dictId}" /> <input id="dictId" name="dictId" type="hidden" th:field="*{dictId}" />
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">字典名称:</label> <label class="col-sm-3 control-label is-required">字典名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictName" id="dictName" th:field="*{dictName}" required> <input class="form-control" type="text" name="dictName" id="dictName" th:field="*{dictName}" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">字典类型:</label> <label class="col-sm-3 control-label is-required">字典类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="dictType" id="dictType" th:field="*{dictType}" required> <input class="form-control" type="text" name="dictType" id="dictType" th:field="*{dictType}" required>
</div> </div>

@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">菜单类型:</label> <label class="col-sm-3 control-label is-required">菜单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<label class="radio-box"> <input type="radio" name="menuType" value="M" /> 目录 </label> <label class="radio-box"> <input type="radio" name="menuType" value="M" /> 目录 </label>
<label class="radio-box"> <input type="radio" name="menuType" value="C" /> 菜单 </label> <label class="radio-box"> <input type="radio" name="menuType" value="C" /> 菜单 </label>
@ -25,7 +25,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">菜单名称:</label> <label class="col-sm-3 control-label is-required">菜单名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="menuName" id="menuName" required> <input class="form-control" type="text" name="menuName" id="menuName" required>
</div> </div>
@ -53,7 +53,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示排序:</label> <label class="col-sm-3 control-label is-required">显示排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="orderNum" required> <input class="form-control" type="text" name="orderNum" required>
</div> </div>

@ -18,7 +18,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">菜单类型:</label> <label class="col-sm-3 control-label is-required">菜单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<label class="radio-box"> <input type="radio" th:field="*{menuType}" name="menuType" value="M" /> 目录 </label> <label class="radio-box"> <input type="radio" th:field="*{menuType}" name="menuType" value="M" /> 目录 </label>
<label class="radio-box"> <input type="radio" th:field="*{menuType}" name="menuType" value="C" /> 菜单 </label> <label class="radio-box"> <input type="radio" th:field="*{menuType}" name="menuType" value="C" /> 菜单 </label>
@ -26,7 +26,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">菜单名称:</label> <label class="col-sm-3 control-label is-required">菜单名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="menuName" id="menuName" th:field="*{menuName}" required> <input class="form-control" type="text" name="menuName" id="menuName" th:field="*{menuName}" required>
</div> </div>
@ -54,7 +54,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示排序:</label> <label class="col-sm-3 control-label is-required">显示排序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="orderNum" th:field="*{orderNum}" required> <input class="form-control" type="text" name="orderNum" th:field="*{orderNum}" required>
</div> </div>

@ -8,7 +8,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-notice-add"> <form class="form-horizontal m" id="form-notice-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">公告标题:</label> <label class="col-sm-2 control-label is-required">公告标题:</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input id="noticeTitle" name="noticeTitle" class="form-control" type="text" required> <input id="noticeTitle" name="noticeTitle" class="form-control" type="text" required>
</div> </div>

@ -9,7 +9,7 @@
<form class="form-horizontal m" id="form-notice-edit" th:object="${notice}"> <form class="form-horizontal m" id="form-notice-edit" th:object="${notice}">
<input id="noticeId" name="noticeId" th:field="*{noticeId}" type="hidden"> <input id="noticeId" name="noticeId" th:field="*{noticeId}" type="hidden">
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">公告标题:</label> <label class="col-sm-2 control-label is-required">公告标题:</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input id="noticeTitle" name="noticeTitle" th:field="*{noticeTitle}" class="form-control" type="text" required> <input id="noticeTitle" name="noticeTitle" th:field="*{noticeTitle}" class="form-control" type="text" required>
</div> </div>

@ -7,19 +7,19 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-post-add"> <form class="form-horizontal m" id="form-post-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">岗位名称:</label> <label class="col-sm-3 control-label is-required">岗位名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postName" id="postName" required> <input class="form-control" type="text" name="postName" id="postName" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">岗位编码:</label> <label class="col-sm-3 control-label is-required">岗位编码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postCode" id="postCode" required> <input class="form-control" type="text" name="postCode" id="postCode" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示顺序:</label> <label class="col-sm-3 control-label is-required">显示顺序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postSort" id="postSort" required> <input class="form-control" type="text" name="postSort" id="postSort" required>
</div> </div>

@ -8,19 +8,19 @@
<form class="form-horizontal m" id="form-post-edit" th:object="${post}"> <form class="form-horizontal m" id="form-post-edit" th:object="${post}">
<input id="postId" name="postId" type="hidden" th:field="*{postId}"/> <input id="postId" name="postId" type="hidden" th:field="*{postId}"/>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">岗位名称:</label> <label class="col-sm-3 control-label is-required">岗位名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postName" id="postName" th:field="*{postName}" required> <input class="form-control" type="text" name="postName" id="postName" th:field="*{postName}" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">岗位编码:</label> <label class="col-sm-3 control-label is-required">岗位编码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postCode" id="postCode" th:field="*{postCode}" required> <input class="form-control" type="text" name="postCode" id="postCode" th:field="*{postCode}" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示顺序:</label> <label class="col-sm-3 control-label is-required">显示顺序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="postSort" id="postSort" th:field="*{postSort}" required> <input class="form-control" type="text" name="postSort" id="postSort" th:field="*{postSort}" required>
</div> </div>

@ -8,20 +8,20 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-role-add"> <form class="form-horizontal m" id="form-role-add">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">角色名称:</label> <label class="col-sm-3 control-label is-required">角色名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleName" id="roleName" required> <input class="form-control" type="text" name="roleName" id="roleName" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">权限字符:</label> <label class="col-sm-3 control-label is-required">权限字符:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleKey" id="roleKey" required> <input class="form-control" type="text" name="roleKey" id="roleKey" required>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 控制器中定义的权限字符,如:@RequiresRoles("")</span> <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 控制器中定义的权限字符,如:@RequiresRoles("")</span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示顺序:</label> <label class="col-sm-3 control-label is-required">显示顺序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleSort" id="roleSort" required> <input class="form-control" type="text" name="roleSort" id="roleSort" required>
</div> </div>

@ -9,20 +9,20 @@
<form class="form-horizontal m" id="form-role-edit" th:object="${role}"> <form class="form-horizontal m" id="form-role-edit" th:object="${role}">
<input id="roleId" name="roleId" type="hidden" th:field="*{roleId}"/> <input id="roleId" name="roleId" type="hidden" th:field="*{roleId}"/>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">角色名称:</label> <label class="col-sm-3 control-label is-required">角色名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleName" id="roleName" th:field="*{roleName}" required> <input class="form-control" type="text" name="roleName" id="roleName" th:field="*{roleName}" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">权限字符:</label> <label class="col-sm-3 control-label is-required">权限字符:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleKey" id="roleKey" th:field="*{roleKey}" required> <input class="form-control" type="text" name="roleKey" id="roleKey" th:field="*{roleKey}" required>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 控制器中定义的权限字符,如:@RequiresRoles("")</span> <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 控制器中定义的权限字符,如:@RequiresRoles("")</span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">显示顺序:</label> <label class="col-sm-3 control-label is-required">显示顺序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="roleSort" id="roleSort" th:field="*{roleSort}" required> <input class="form-control" type="text" name="roleSort" id="roleSort" th:field="*{roleSort}" required>
</div> </div>

@ -12,7 +12,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>用户名称:</label> <label class="col-sm-4 control-label is-required">用户名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" required> <input name="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" required>
</div> </div>
@ -20,7 +20,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>归属部门:</label> <label class="col-sm-4 control-label is-required">归属部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group"> <div class="input-group">
<input name="deptName" onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择归属部门" class="form-control" required> <input name="deptName" onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择归属部门" class="form-control" required>
@ -33,7 +33,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>手机号码:</label> <label class="col-sm-4 control-label is-required">手机号码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="phonenumber" name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text" maxlength="11" required> <input id="phonenumber" name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text" maxlength="11" required>
</div> </div>
@ -41,7 +41,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>邮箱:</label> <label class="col-sm-4 control-label is-required">邮箱:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="email" name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" required> <input id="email" name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" required>
</div> </div>
@ -51,7 +51,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>登录账号:</label> <label class="col-sm-4 control-label is-required">登录账号:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input id="loginName" name="loginName" placeholder="请输入登录账号" class="form-control" type="text" maxlength="30" required> <input id="loginName" name="loginName" placeholder="请输入登录账号" class="form-control" type="text" maxlength="30" required>
</div> </div>
@ -59,7 +59,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>登录密码:</label> <label class="col-sm-4 control-label is-required">登录密码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="password" placeholder="请输入登录密码" class="form-control" type="password" th:value="${@config.getKey('sys.user.initPassword')}" required> <input name="password" placeholder="请输入登录密码" class="form-control" type="password" th:value="${@config.getKey('sys.user.initPassword')}" required>
</div> </div>

@ -13,7 +13,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>用户名称:</label> <label class="col-sm-4 control-label is-required">用户名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" th:field="*{userName}" required> <input name="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" th:field="*{userName}" required>
</div> </div>
@ -21,7 +21,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>归属部门:</label> <label class="col-sm-4 control-label is-required">归属部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group"> <div class="input-group">
<input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" id="treeName" th:field="*{dept.deptName}" required> <input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" id="treeName" th:field="*{dept.deptName}" required>
@ -34,7 +34,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>手机号码:</label> <label class="col-sm-4 control-label is-required">手机号码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text" maxlength="11" th:field="*{phonenumber}" required> <input name="phonenumber" placeholder="请输入手机号码" class="form-control" type="text" maxlength="11" th:field="*{phonenumber}" required>
</div> </div>
@ -42,7 +42,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>邮箱:</label> <label class="col-sm-4 control-label is-required">邮箱:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" th:field="*{email}" required> <input name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" th:field="*{email}" required>
</div> </div>
@ -52,7 +52,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>登录账号:</label> <label class="col-sm-4 control-label is-required">登录账号:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" readonly="true" th:field="*{loginName}"/> <input class="form-control" type="text" readonly="true" th:field="*{loginName}"/>
</div> </div>

@ -30,7 +30,7 @@
<div class="row mt20"> <div class="row mt20">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>表名称:</label> <label class="col-sm-4 control-label is-required">表名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="tableName" class="form-control" type="text" placeholder="请输入表名称" maxlength="200" th:field="*{tableName}" required> <input name="tableName" class="form-control" type="text" placeholder="请输入表名称" maxlength="200" th:field="*{tableName}" required>
</div> </div>
@ -38,7 +38,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>表描述:</label> <label class="col-sm-4 control-label is-required">表描述:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="tableComment" class="form-control" type="text" placeholder="请输入表描述" maxlength="500" th:field="*{tableComment}" required> <input name="tableComment" class="form-control" type="text" placeholder="请输入表描述" maxlength="500" th:field="*{tableComment}" required>
</div> </div>
@ -48,7 +48,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>实体类名称:</label> <label class="col-sm-4 control-label is-required">实体类名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="className" class="form-control" type="text" placeholder="请输入实体类名称" maxlength="100" th:field="*{className}" required> <input name="className" class="form-control" type="text" placeholder="请输入实体类名称" maxlength="100" th:field="*{className}" required>
</div> </div>
@ -56,7 +56,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>作者:</label> <label class="col-sm-4 control-label is-required">作者:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="functionAuthor" class="form-control" type="text" placeholder="请输入作者" maxlength="50" th:field="*{functionAuthor}" required> <input name="functionAuthor" class="form-control" type="text" placeholder="请输入作者" maxlength="50" th:field="*{functionAuthor}" required>
</div> </div>
@ -87,7 +87,7 @@
<div class="row mt20"> <div class="row mt20">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>生成模板:</label> <label class="col-sm-4 control-label is-required">生成模板:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select class='form-control' id="tplCategory" name='tplCategory' style="width: 100%"> <select class='form-control' id="tplCategory" name='tplCategory' style="width: 100%">
<option value="crud" th:field="*{tplCategory}">单表(增删改查)</option> <option value="crud" th:field="*{tplCategory}">单表(增删改查)</option>
@ -98,7 +98,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="生成在哪个java包下例如 com.ruoyi.system"><span style="color: red; ">*</span>生成包路径:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="生成在哪个java包下例如 com.ruoyi.project.system">生成包路径:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="packageName" class="form-control" type="text" placeholder="请输入生成包路径" maxlength="100" th:field="*{packageName}" required> <input name="packageName" class="form-control" type="text" placeholder="请输入生成包路径" maxlength="100" th:field="*{packageName}" required>
</div> </div>
@ -108,7 +108,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="可理解为子系统名,例如 system"><span style="color: red; ">*</span>生成模块名:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="可理解为子系统名,例如 system">生成模块名:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="moduleName" class="form-control" type="text" placeholder="请输入生成模块名" maxlength="30" th:field="*{moduleName}" required> <input name="moduleName" class="form-control" type="text" placeholder="请输入生成模块名" maxlength="30" th:field="*{moduleName}" required>
</div> </div>
@ -116,7 +116,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="可理解为功能英文名,例如 user"><span style="color: red; ">*</span>生成业务名:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="可理解为功能英文名,例如 user">生成业务名:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="businessName" class="form-control" type="text" placeholder="请输入生成业务名" maxlength="50" th:field="*{businessName}" required> <input name="businessName" class="form-control" type="text" placeholder="请输入生成业务名" maxlength="50" th:field="*{businessName}" required>
</div> </div>
@ -126,7 +126,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="用作类描述,例如 用户"><span style="color: red; ">*</span>生成功能名:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="用作类描述,例如 用户">生成功能名:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="functionName" class="form-control" type="text" placeholder="请输入生成功能名" maxlength="50" th:field="*{functionName}" required> <input name="functionName" class="form-control" type="text" placeholder="请输入生成功能名" maxlength="50" th:field="*{functionName}" required>
</div> </div>
@ -138,7 +138,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="树显示的编码字段名, 如dept_id"><span style="color: red; ">*</span>树编码字段:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="树显示的编码字段名, 如dept_id">树编码字段:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<select class='form-control' id="treeCode" name='params[treeCode]' style="width: 100%"> <select class='form-control' id="treeCode" name='params[treeCode]' style="width: 100%">
<option value="">---请选择---</option> <option value="">---请选择---</option>
@ -149,7 +149,7 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="树显示的父编码字段名, 如parent_Id"><span style="color: red; ">*</span>树父编码字段:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="树显示的父编码字段名, 如parent_Id">树父编码字段:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<select class='form-control' id="treeParentCode" name='params[treeParentCode]' style="width: 100%"> <select class='form-control' id="treeParentCode" name='params[treeParentCode]' style="width: 100%">
<option value="">---请选择---</option> <option value="">---请选择---</option>
@ -162,7 +162,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label" title="树节点的显示名称字段名, 如dept_name"><span style="color: red; ">*</span>树名称字段:<i class="fa fa-question-circle-o"></i></label> <label class="col-sm-4 control-label is-required" title="树节点的显示名称字段名, 如dept_name">树名称字段:<i class="fa fa-question-circle-o"></i></label>
<div class="col-sm-8"> <div class="col-sm-8">
<select class='form-control' id="treeName" name='params[treeName]' style="width: 100%"> <select class='form-control' id="treeName" name='params[treeName]' style="width: 100%">
<option value="">---请选择---</option> <option value="">---请选择---</option>

@ -38,7 +38,7 @@
</div> </div>
#elseif($column.htmlType == "input") #elseif($column.htmlType == "input")
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">${comment}</label> <label class="col-sm-3 control-label#if($column.required) is-required#end">${comment}</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="${field}" class="form-control" type="text"#if($column.required) required#end> <input name="${field}" class="form-control" type="text"#if($column.required) required#end>
</div> </div>

@ -38,7 +38,7 @@
</div> </div>
#elseif($column.htmlType == "input") #elseif($column.htmlType == "input")
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">${comment}</label> <label class="col-sm-3 control-label#if($column.required) is-required#end">${comment}</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="${field}" th:field="*{${field}}" class="form-control" type="text"#if($column.required) required#end> <input name="${field}" th:field="*{${field}}" class="form-control" type="text"#if($column.required) required#end>
</div> </div>

@ -8,7 +8,7 @@
<form class="form-horizontal m" id="form-job-add"> <form class="form-horizontal m" id="form-job-add">
<input type="hidden" name="createBy" th:value="${@permission.getPrincipalProperty('loginName')}"> <input type="hidden" name="createBy" th:value="${@permission.getPrincipalProperty('loginName')}">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">任务名称:</label> <label class="col-sm-3 control-label is-required">任务名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="jobName" id="jobName" required> <input class="form-control" type="text" name="jobName" id="jobName" required>
</div> </div>
@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">调用目标字符串:</label> <label class="col-sm-3 control-label is-required">调用目标字符串:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="invokeTarget" id="invokeTarget" required> <input class="form-control" type="text" name="invokeTarget" id="invokeTarget" required>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> Bean调用示例ryTask.ryParams('ry')</span> <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> Bean调用示例ryTask.ryParams('ry')</span>
@ -31,7 +31,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">cron表达式</label> <label class="col-sm-3 control-label is-required">cron表达式</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="cronExpression" id="cronExpression" required> <input class="form-control" type="text" name="cronExpression" id="cronExpression" required>
</div> </div>

@ -9,7 +9,7 @@
<input id="jobId" name="jobId" type="hidden" th:field="*{jobId}"/> <input id="jobId" name="jobId" type="hidden" th:field="*{jobId}"/>
<input type="hidden" name="updateBy" th:value="${@permission.getPrincipalProperty('loginName')}"> <input type="hidden" name="updateBy" th:value="${@permission.getPrincipalProperty('loginName')}">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">任务名称:</label> <label class="col-sm-3 control-label is-required">任务名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="jobName" id="jobName" th:field="*{jobName}" required> <input class="form-control" type="text" name="jobName" id="jobName" th:field="*{jobName}" required>
</div> </div>
@ -23,7 +23,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">调用目标字符串:</label> <label class="col-sm-3 control-label is-required">调用目标字符串:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="invokeTarget" id="invokeTarget" th:field="*{invokeTarget}" required> <input class="form-control" type="text" name="invokeTarget" id="invokeTarget" th:field="*{invokeTarget}" required>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> Bean调用示例ryTask.ryParams('ry')</span> <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> Bean调用示例ryTask.ryParams('ry')</span>
@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label ">cron表达式</label> <label class="col-sm-3 control-label is-required">cron表达式</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input class="form-control" type="text" name="cronExpression" id="cronExpression" th:field="*{cronExpression}" required> <input class="form-control" type="text" name="cronExpression" id="cronExpression" th:field="*{cronExpression}" required>
</div> </div>

Loading…
Cancel
Save