diff --git a/zheng-upms/zheng-upms-dao/src/main/java/com/zheng/upms/dao/mapper/UpmsRoleMapper.xml b/zheng-upms/zheng-upms-dao/src/main/java/com/zheng/upms/dao/mapper/UpmsRoleMapper.xml index a733eabc..5b5c169c 100644 --- a/zheng-upms/zheng-upms-dao/src/main/java/com/zheng/upms/dao/mapper/UpmsRoleMapper.xml +++ b/zheng-upms/zheng-upms-dao/src/main/java/com/zheng/upms/dao/mapper/UpmsRoleMapper.xml @@ -4,6 +4,7 @@ + @@ -67,7 +68,7 @@ - role_id, name, description, ctime, orders + role_id, name, title, description, ctime, orders +
+ + +
@@ -33,6 +37,10 @@ function createSubmit() { $('#name').focus(); return false; } + if ($('#title').val() == '') { + $('#title').focus(); + return false; + } }, success: function(result) { if (result.code != 1) { diff --git a/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/index.jsp b/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/index.jsp index 1e6a89cc..2e53ccb3 100644 --- a/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/index.jsp +++ b/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/index.jsp @@ -72,6 +72,7 @@ $(function() { {field: 'ck', checkbox: true}, {field: 'roleId', title: '编号', sortable: true, align: 'center'}, {field: 'name', title: '角色名称'}, + {field: 'title', title: '角色标题'}, {field: 'description', title: '角色描述'}, {field: 'action', title: '操作', align: 'center', formatter: 'actionFormatter', events: 'actionEvents', clickToSelect: false} ] diff --git a/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/update.jsp b/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/update.jsp index cb44767e..763aca8f 100644 --- a/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/update.jsp +++ b/zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/role/update.jsp @@ -12,6 +12,10 @@
+
+ + +
@@ -29,10 +33,14 @@ function createSubmit() { url: '${basePath}/manage/role/update/${role.roleId}', data: $('#updateForm').serialize(), beforeSend: function() { - if ($('#name').val() == '') { - $('#name').focus(); - return false; - } + if ($('#name').val() == '') { + $('#name').focus(); + return false; + } + if ($('#title').val() == '') { + $('#title').focus(); + return false; + } }, success: function(result) { if (result.code != 1) {