mirror of https://gitee.com/y_project/RuoYi.git
菜单类型必填校验
parent
372c198d13
commit
7c99e72067
|
@ -130,12 +130,12 @@ create table sys_menu (
|
|||
menu_id int(11) not null auto_increment comment '菜单ID',
|
||||
menu_name varchar(50) not null comment '菜单名称',
|
||||
parent_id int(11) default 0 comment '父菜单ID',
|
||||
order_num int(4) default null comment '显示顺序',
|
||||
url varchar(200) default '' comment '请求地址',
|
||||
order_num int(4) default 0 comment '显示顺序',
|
||||
url varchar(200) default '#' comment '请求地址',
|
||||
menu_type char(1) default '' comment '菜单类型(M目录 C菜单 F按钮)',
|
||||
visible char(1) not null comment '菜单状态(0显示 1隐藏)',
|
||||
visible char(1) default 0 comment '菜单状态(0显示 1隐藏)',
|
||||
perms varchar(100) default '' comment '权限标识',
|
||||
icon varchar(100) default '' comment '菜单图标',
|
||||
icon varchar(100) default '#' comment '菜单图标',
|
||||
create_by varchar(64) default '' comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by varchar(64) default '' comment '更新者',
|
||||
|
|
|
@ -136,6 +136,14 @@ label.error {
|
|||
padding-left: 25px
|
||||
}
|
||||
|
||||
.i-checks label.error, .check-box label.error, .radio-box label.error {
|
||||
right:auto;
|
||||
width:150px;
|
||||
left:210px;
|
||||
top:-1px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/** 遮罩层 */
|
||||
.loaderbox {
|
||||
display: inline-block;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -87,6 +87,12 @@
|
|||
required:true,
|
||||
digits:true
|
||||
},
|
||||
email:{
|
||||
email:true,
|
||||
},
|
||||
phone:{
|
||||
isPhone:true,
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
"deptName": {
|
||||
|
|
|
@ -90,6 +90,12 @@
|
|||
required:true,
|
||||
digits:true
|
||||
},
|
||||
email:{
|
||||
email:true,
|
||||
},
|
||||
phone:{
|
||||
isPhone:true,
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
"deptName": {
|
||||
|
|
|
@ -79,6 +79,9 @@
|
|||
var prefix = ctx + "system/menu"
|
||||
$("#form-menu-add").validate({
|
||||
rules:{
|
||||
menuType:{
|
||||
required:true,
|
||||
},
|
||||
menuName:{
|
||||
required:true,
|
||||
remote: {
|
||||
|
|
|
@ -86,6 +86,9 @@
|
|||
|
||||
$("#form-menu-edit").validate({
|
||||
rules:{
|
||||
menuType:{
|
||||
required:true,
|
||||
},
|
||||
menuName:{
|
||||
required:true,
|
||||
remote: {
|
||||
|
|
Loading…
Reference in New Issue