├── README.md ├── wyait-manage-1.2.0 ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── wyait │ │ │ └── manage │ │ │ ├── ServletInitializer.java │ │ │ ├── WyaitManageApplication.java │ │ │ ├── config │ │ │ ├── DataSourceConfig.java │ │ │ ├── DruidConfiguration.java │ │ │ ├── HttpClientConfig.java │ │ │ ├── MultipleDataSource.java │ │ │ ├── MyWebMvcConfig.java │ │ │ ├── ShiroConfig.java │ │ │ └── TestDataSourceConfig.java │ │ │ ├── dao │ │ │ ├── PermissionMapper.java │ │ │ ├── RoleMapper.java │ │ │ ├── RolePermissionMapper.java │ │ │ ├── UserMapper.java │ │ │ └── UserRoleMapper.java │ │ │ ├── entity │ │ │ ├── PermissionVO.java │ │ │ ├── ResponseResult.java │ │ │ ├── RoleVO.java │ │ │ ├── UserDTO.java │ │ │ ├── UserRoleDTO.java │ │ │ ├── UserRolesVO.java │ │ │ └── UserSearchDTO.java │ │ │ ├── filter │ │ │ └── KickoutSessionFilter.java │ │ │ ├── interceptor │ │ │ └── UserActionInterceptor.java │ │ │ ├── pojo │ │ │ ├── Permission.java │ │ │ ├── Role.java │ │ │ ├── RolePermissionKey.java │ │ │ ├── User.java │ │ │ └── UserRoleKey.java │ │ │ ├── service │ │ │ ├── AuthService.java │ │ │ ├── AuthServiceImpl.java │ │ │ ├── UserService.java │ │ │ └── UserServiceImpl.java │ │ │ ├── shiro │ │ │ ├── RetryLimitHashedCredentialsMatcher.java │ │ │ └── ShiroRealm.java │ │ │ ├── utils │ │ │ ├── ExceptionEnum.java │ │ │ ├── HttpResult.java │ │ │ ├── HttpService.java │ │ │ ├── IStatusMessage.java │ │ │ ├── PageDataResult.java │ │ │ ├── Result.java │ │ │ ├── SendMsgServer.java │ │ │ └── ShiroFilterUtils.java │ │ │ └── web │ │ │ ├── IndexController.java │ │ │ ├── error │ │ │ └── GlobalErrorController.java │ │ │ └── user │ │ │ ├── AuthController.java │ │ │ └── UserController.java │ └── resources │ │ ├── application-dev.properties │ │ ├── application-prod.properties │ │ ├── application-test.properties │ │ ├── application.properties │ │ ├── config │ │ └── ehcache.xml │ │ ├── log4j2.xml │ │ ├── mapper │ │ ├── PermissionMapper.xml │ │ ├── RoleMapper.xml │ │ ├── RolePermissionMapper.xml │ │ ├── UserMapper.xml │ │ └── UserRoleMapper.xml │ │ ├── static │ │ ├── 0.jpg │ │ ├── css │ │ │ └── login.css │ │ ├── images │ │ │ ├── bk.gif │ │ │ ├── bkLogo.png │ │ │ ├── login.png │ │ │ ├── logo.png │ │ │ └── logoa.png │ │ ├── js │ │ │ ├── auth │ │ │ │ ├── permList.js │ │ │ │ ├── role.js │ │ │ │ ├── roleList.js │ │ │ │ ├── roleManage.js │ │ │ │ ├── roleUpdate.js │ │ │ │ └── userList.js │ │ │ ├── checkParam.js │ │ │ ├── common.js │ │ │ ├── date-utils.js │ │ │ ├── dateUtils.js │ │ │ ├── error.js │ │ │ ├── head.js │ │ │ ├── jquery-2.1.1.min.js │ │ │ ├── jquery.cookie.js │ │ │ ├── jquery.serializejson.min.js │ │ │ ├── login.js │ │ │ ├── updateUser.js │ │ │ ├── validate.js │ │ │ └── ztree │ │ │ │ ├── css │ │ │ │ ├── demo.css │ │ │ │ └── zTreeStyle │ │ │ │ │ ├── img │ │ │ │ │ ├── diy │ │ │ │ │ │ ├── 1_close.png │ │ │ │ │ │ ├── 1_open.png │ │ │ │ │ │ ├── 2.png │ │ │ │ │ │ ├── 3.png │ │ │ │ │ │ ├── 4.png │ │ │ │ │ │ ├── 5.png │ │ │ │ │ │ ├── 6.png │ │ │ │ │ │ ├── 7.png │ │ │ │ │ │ ├── 8.png │ │ │ │ │ │ └── 9.png │ │ │ │ │ ├── line_conn.gif │ │ │ │ │ ├── loading.gif │ │ │ │ │ ├── zTreeStandard.gif │ │ │ │ │ └── zTreeStandard.png │ │ │ │ │ └── zTreeStyle.css │ │ │ │ ├── img │ │ │ │ ├── diy │ │ │ │ │ ├── 1_close.png │ │ │ │ │ ├── 1_open.png │ │ │ │ │ ├── 2.png │ │ │ │ │ ├── 3.png │ │ │ │ │ ├── 4.png │ │ │ │ │ ├── 5.png │ │ │ │ │ ├── 6.png │ │ │ │ │ ├── 7.png │ │ │ │ │ ├── 8.png │ │ │ │ │ └── 9.png │ │ │ │ ├── line_conn.gif │ │ │ │ ├── loading.gif │ │ │ │ ├── zTreeStandard.gif │ │ │ │ └── zTreeStandard.png │ │ │ │ └── jquery.ztree.all.js │ │ ├── layui │ │ │ ├── 0.jpg │ │ │ ├── css │ │ │ │ ├── layui.css │ │ │ │ ├── layui.mobile.css │ │ │ │ └── modules │ │ │ │ │ ├── code.css │ │ │ │ │ ├── laydate │ │ │ │ │ └── default │ │ │ │ │ │ └── laydate.css │ │ │ │ │ └── layer │ │ │ │ │ └── default │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ ├── icon.png │ │ │ │ │ ├── layer.css │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ └── loading-2.gif │ │ │ ├── font │ │ │ │ ├── iconfont.eot │ │ │ │ ├── iconfont.svg │ │ │ │ ├── iconfont.ttf │ │ │ │ └── iconfont.woff │ │ │ ├── images │ │ │ │ └── face │ │ │ │ │ ├── 0.gif │ │ │ │ │ ├── 1.gif │ │ │ │ │ ├── 10.gif │ │ │ │ │ ├── 11.gif │ │ │ │ │ ├── 12.gif │ │ │ │ │ ├── 13.gif │ │ │ │ │ ├── 14.gif │ │ │ │ │ ├── 15.gif │ │ │ │ │ ├── 16.gif │ │ │ │ │ ├── 17.gif │ │ │ │ │ ├── 18.gif │ │ │ │ │ ├── 19.gif │ │ │ │ │ ├── 2.gif │ │ │ │ │ ├── 20.gif │ │ │ │ │ ├── 21.gif │ │ │ │ │ ├── 22.gif │ │ │ │ │ ├── 23.gif │ │ │ │ │ ├── 24.gif │ │ │ │ │ ├── 25.gif │ │ │ │ │ ├── 26.gif │ │ │ │ │ ├── 27.gif │ │ │ │ │ ├── 28.gif │ │ │ │ │ ├── 29.gif │ │ │ │ │ ├── 3.gif │ │ │ │ │ ├── 30.gif │ │ │ │ │ ├── 31.gif │ │ │ │ │ ├── 32.gif │ │ │ │ │ ├── 33.gif │ │ │ │ │ ├── 34.gif │ │ │ │ │ ├── 35.gif │ │ │ │ │ ├── 36.gif │ │ │ │ │ ├── 37.gif │ │ │ │ │ ├── 38.gif │ │ │ │ │ ├── 39.gif │ │ │ │ │ ├── 4.gif │ │ │ │ │ ├── 40.gif │ │ │ │ │ ├── 41.gif │ │ │ │ │ ├── 42.gif │ │ │ │ │ ├── 43.gif │ │ │ │ │ ├── 44.gif │ │ │ │ │ ├── 45.gif │ │ │ │ │ ├── 46.gif │ │ │ │ │ ├── 47.gif │ │ │ │ │ ├── 48.gif │ │ │ │ │ ├── 49.gif │ │ │ │ │ ├── 5.gif │ │ │ │ │ ├── 50.gif │ │ │ │ │ ├── 51.gif │ │ │ │ │ ├── 52.gif │ │ │ │ │ ├── 53.gif │ │ │ │ │ ├── 54.gif │ │ │ │ │ ├── 55.gif │ │ │ │ │ ├── 56.gif │ │ │ │ │ ├── 57.gif │ │ │ │ │ ├── 58.gif │ │ │ │ │ ├── 59.gif │ │ │ │ │ ├── 6.gif │ │ │ │ │ ├── 60.gif │ │ │ │ │ ├── 61.gif │ │ │ │ │ ├── 62.gif │ │ │ │ │ ├── 63.gif │ │ │ │ │ ├── 64.gif │ │ │ │ │ ├── 65.gif │ │ │ │ │ ├── 66.gif │ │ │ │ │ ├── 67.gif │ │ │ │ │ ├── 68.gif │ │ │ │ │ ├── 69.gif │ │ │ │ │ ├── 7.gif │ │ │ │ │ ├── 70.gif │ │ │ │ │ ├── 71.gif │ │ │ │ │ ├── 8.gif │ │ │ │ │ └── 9.gif │ │ │ ├── lay │ │ │ │ └── modules │ │ │ │ │ ├── carousel.js │ │ │ │ │ ├── code.js │ │ │ │ │ ├── element.js │ │ │ │ │ ├── flow.js │ │ │ │ │ ├── form.js │ │ │ │ │ ├── jquery.js │ │ │ │ │ ├── laydate.js │ │ │ │ │ ├── layedit.js │ │ │ │ │ ├── layer.js │ │ │ │ │ ├── laypage.js │ │ │ │ │ ├── laytpl.js │ │ │ │ │ ├── mobile.js │ │ │ │ │ ├── table.js │ │ │ │ │ ├── tree.js │ │ │ │ │ ├── upload.js │ │ │ │ │ └── util.js │ │ │ ├── layui.all.js │ │ │ └── layui.js │ │ └── treegrid │ │ │ ├── css │ │ │ └── grid.css │ │ │ ├── grid.js │ │ │ ├── img │ │ │ ├── collapse.png │ │ │ ├── expand.png │ │ │ ├── loading.gif │ │ │ └── wrong.png │ │ │ └── treeGrid.js │ │ └── templates │ │ ├── 403.html │ │ ├── auth │ │ ├── permList.html │ │ ├── permission.html │ │ ├── role.html │ │ ├── roleList.html │ │ ├── roleManage.html │ │ ├── roleUpdate.html │ │ └── userList.html │ │ ├── checkbox.html │ │ ├── error.html │ │ ├── error │ │ ├── 403.html │ │ ├── 404.html │ │ └── 501.html │ │ ├── fragments │ │ ├── content.html │ │ ├── footer.html │ │ └── head.html │ │ ├── home.html │ │ ├── index.html │ │ ├── index2.html │ │ ├── layout.html │ │ ├── login.html │ │ ├── toLogin.html │ │ ├── treetable.html │ │ └── validate.html │ └── test │ └── java │ └── com │ └── wyait │ └── manage │ └── WyaitManageApplicationTests.java ├── wyait-manage ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── wyait │ │ │ └── manage │ │ │ ├── ServletInitializer.java │ │ │ ├── WyaitManageApplication.java │ │ │ ├── config │ │ │ ├── DataSourceConfig.java │ │ │ ├── DruidConfiguration.java │ │ │ ├── HttpClientConfig.java │ │ │ ├── MultipleDataSource.java │ │ │ ├── MyWebMvcConfig.java │ │ │ ├── ShiroConfig.java │ │ │ ├── TestDataSourceConfig.java │ │ │ └── error │ │ │ │ └── GlobalExceptionHandler.java │ │ │ ├── dao │ │ │ ├── PermissionMapper.java │ │ │ ├── RoleMapper.java │ │ │ ├── RolePermissionMapper.java │ │ │ ├── UserMapper.java │ │ │ └── UserRoleMapper.java │ │ │ ├── entity │ │ │ ├── PermissionVO.java │ │ │ ├── ResponseResult.java │ │ │ ├── RoleVO.java │ │ │ ├── UserDTO.java │ │ │ ├── UserRoleDTO.java │ │ │ ├── UserRolesVO.java │ │ │ └── UserSearchDTO.java │ │ │ ├── interceptor │ │ │ └── UserActionInterceptor.java │ │ │ ├── pojo │ │ │ ├── Permission.java │ │ │ ├── Role.java │ │ │ ├── RolePermissionKey.java │ │ │ ├── User.java │ │ │ └── UserRoleKey.java │ │ │ ├── service │ │ │ ├── AuthService.java │ │ │ ├── AuthServiceImpl.java │ │ │ ├── UserService.java │ │ │ └── UserServiceImpl.java │ │ │ ├── shiro │ │ │ ├── RetryLimitHashedCredentialsMatcher.java │ │ │ └── ShiroRealm.java │ │ │ ├── utils │ │ │ ├── ExceptionEnum.java │ │ │ ├── HttpResult.java │ │ │ ├── HttpService.java │ │ │ ├── IStatusMessage.java │ │ │ ├── PageDataResult.java │ │ │ ├── Result.java │ │ │ ├── SendMsgServer.java │ │ │ └── ShiroFilterUtils.java │ │ │ └── web │ │ │ ├── IndexController.java │ │ │ ├── error │ │ │ ├── ErrorHandlerController.java │ │ │ └── IndexErrorController.java │ │ │ └── user │ │ │ ├── AuthController.java │ │ │ └── UserController.java │ └── resources │ │ ├── application-dev.properties │ │ ├── application-prod.properties │ │ ├── application-test.properties │ │ ├── application.properties │ │ ├── config │ │ └── ehcache.xml │ │ ├── log4j2.xml │ │ ├── mapper │ │ ├── PermissionMapper.xml │ │ ├── RoleMapper.xml │ │ ├── RolePermissionMapper.xml │ │ ├── UserMapper.xml │ │ └── UserRoleMapper.xml │ │ ├── static │ │ ├── 0.jpg │ │ ├── css │ │ │ └── login.css │ │ ├── images │ │ │ ├── bk.gif │ │ │ ├── bkLogo.png │ │ │ ├── login.png │ │ │ ├── logo.png │ │ │ └── logoa.png │ │ ├── js │ │ │ ├── auth │ │ │ │ ├── permList.js │ │ │ │ ├── role.js │ │ │ │ ├── roleList.js │ │ │ │ ├── roleManage.js │ │ │ │ ├── roleUpdate.js │ │ │ │ └── userList.js │ │ │ ├── checkParam.js │ │ │ ├── common.js │ │ │ ├── date-utils.js │ │ │ ├── dateUtils.js │ │ │ ├── error.js │ │ │ ├── head.js │ │ │ ├── jquery-2.1.1.min.js │ │ │ ├── jquery.cookie.js │ │ │ ├── jquery.serializejson.min.js │ │ │ ├── login.js │ │ │ ├── updateUser.js │ │ │ ├── validate.js │ │ │ └── ztree │ │ │ │ ├── css │ │ │ │ ├── demo.css │ │ │ │ └── zTreeStyle │ │ │ │ │ ├── img │ │ │ │ │ ├── diy │ │ │ │ │ │ ├── 1_close.png │ │ │ │ │ │ ├── 1_open.png │ │ │ │ │ │ ├── 2.png │ │ │ │ │ │ ├── 3.png │ │ │ │ │ │ ├── 4.png │ │ │ │ │ │ ├── 5.png │ │ │ │ │ │ ├── 6.png │ │ │ │ │ │ ├── 7.png │ │ │ │ │ │ ├── 8.png │ │ │ │ │ │ └── 9.png │ │ │ │ │ ├── line_conn.gif │ │ │ │ │ ├── loading.gif │ │ │ │ │ ├── zTreeStandard.gif │ │ │ │ │ └── zTreeStandard.png │ │ │ │ │ └── zTreeStyle.css │ │ │ │ ├── img │ │ │ │ ├── diy │ │ │ │ │ ├── 1_close.png │ │ │ │ │ ├── 1_open.png │ │ │ │ │ ├── 2.png │ │ │ │ │ ├── 3.png │ │ │ │ │ ├── 4.png │ │ │ │ │ ├── 5.png │ │ │ │ │ ├── 6.png │ │ │ │ │ ├── 7.png │ │ │ │ │ ├── 8.png │ │ │ │ │ └── 9.png │ │ │ │ ├── line_conn.gif │ │ │ │ ├── loading.gif │ │ │ │ ├── zTreeStandard.gif │ │ │ │ └── zTreeStandard.png │ │ │ │ └── jquery.ztree.all.js │ │ ├── layui │ │ │ ├── 0.jpg │ │ │ ├── css │ │ │ │ ├── layui.css │ │ │ │ ├── layui.mobile.css │ │ │ │ └── modules │ │ │ │ │ ├── code.css │ │ │ │ │ ├── laydate │ │ │ │ │ └── default │ │ │ │ │ │ └── laydate.css │ │ │ │ │ └── layer │ │ │ │ │ └── default │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ ├── icon.png │ │ │ │ │ ├── layer.css │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ └── loading-2.gif │ │ │ ├── font │ │ │ │ ├── iconfont.eot │ │ │ │ ├── iconfont.svg │ │ │ │ ├── iconfont.ttf │ │ │ │ └── iconfont.woff │ │ │ ├── images │ │ │ │ └── face │ │ │ │ │ ├── 0.gif │ │ │ │ │ ├── 1.gif │ │ │ │ │ ├── 10.gif │ │ │ │ │ ├── 11.gif │ │ │ │ │ ├── 12.gif │ │ │ │ │ ├── 13.gif │ │ │ │ │ ├── 14.gif │ │ │ │ │ ├── 15.gif │ │ │ │ │ ├── 16.gif │ │ │ │ │ ├── 17.gif │ │ │ │ │ ├── 18.gif │ │ │ │ │ ├── 19.gif │ │ │ │ │ ├── 2.gif │ │ │ │ │ ├── 20.gif │ │ │ │ │ ├── 21.gif │ │ │ │ │ ├── 22.gif │ │ │ │ │ ├── 23.gif │ │ │ │ │ ├── 24.gif │ │ │ │ │ ├── 25.gif │ │ │ │ │ ├── 26.gif │ │ │ │ │ ├── 27.gif │ │ │ │ │ ├── 28.gif │ │ │ │ │ ├── 29.gif │ │ │ │ │ ├── 3.gif │ │ │ │ │ ├── 30.gif │ │ │ │ │ ├── 31.gif │ │ │ │ │ ├── 32.gif │ │ │ │ │ ├── 33.gif │ │ │ │ │ ├── 34.gif │ │ │ │ │ ├── 35.gif │ │ │ │ │ ├── 36.gif │ │ │ │ │ ├── 37.gif │ │ │ │ │ ├── 38.gif │ │ │ │ │ ├── 39.gif │ │ │ │ │ ├── 4.gif │ │ │ │ │ ├── 40.gif │ │ │ │ │ ├── 41.gif │ │ │ │ │ ├── 42.gif │ │ │ │ │ ├── 43.gif │ │ │ │ │ ├── 44.gif │ │ │ │ │ ├── 45.gif │ │ │ │ │ ├── 46.gif │ │ │ │ │ ├── 47.gif │ │ │ │ │ ├── 48.gif │ │ │ │ │ ├── 49.gif │ │ │ │ │ ├── 5.gif │ │ │ │ │ ├── 50.gif │ │ │ │ │ ├── 51.gif │ │ │ │ │ ├── 52.gif │ │ │ │ │ ├── 53.gif │ │ │ │ │ ├── 54.gif │ │ │ │ │ ├── 55.gif │ │ │ │ │ ├── 56.gif │ │ │ │ │ ├── 57.gif │ │ │ │ │ ├── 58.gif │ │ │ │ │ ├── 59.gif │ │ │ │ │ ├── 6.gif │ │ │ │ │ ├── 60.gif │ │ │ │ │ ├── 61.gif │ │ │ │ │ ├── 62.gif │ │ │ │ │ ├── 63.gif │ │ │ │ │ ├── 64.gif │ │ │ │ │ ├── 65.gif │ │ │ │ │ ├── 66.gif │ │ │ │ │ ├── 67.gif │ │ │ │ │ ├── 68.gif │ │ │ │ │ ├── 69.gif │ │ │ │ │ ├── 7.gif │ │ │ │ │ ├── 70.gif │ │ │ │ │ ├── 71.gif │ │ │ │ │ ├── 8.gif │ │ │ │ │ └── 9.gif │ │ │ ├── lay │ │ │ │ └── modules │ │ │ │ │ ├── carousel.js │ │ │ │ │ ├── code.js │ │ │ │ │ ├── element.js │ │ │ │ │ ├── flow.js │ │ │ │ │ ├── form.js │ │ │ │ │ ├── jquery.js │ │ │ │ │ ├── laydate.js │ │ │ │ │ ├── layedit.js │ │ │ │ │ ├── layer.js │ │ │ │ │ ├── laypage.js │ │ │ │ │ ├── laytpl.js │ │ │ │ │ ├── mobile.js │ │ │ │ │ ├── table.js │ │ │ │ │ ├── tree.js │ │ │ │ │ ├── upload.js │ │ │ │ │ └── util.js │ │ │ ├── layui.all.js │ │ │ └── layui.js │ │ └── treegrid │ │ │ ├── css │ │ │ └── grid.css │ │ │ ├── grid.js │ │ │ ├── img │ │ │ ├── collapse.png │ │ │ ├── expand.png │ │ │ ├── loading.gif │ │ │ └── wrong.png │ │ │ └── treeGrid.js │ │ └── templates │ │ ├── 403.html │ │ ├── auth │ │ ├── permList.html │ │ ├── permission.html │ │ ├── role.html │ │ ├── roleList.html │ │ ├── roleManage.html │ │ ├── roleUpdate.html │ │ └── userList.html │ │ ├── checkbox.html │ │ ├── error.html │ │ ├── error │ │ ├── 403.html │ │ ├── 404.html │ │ └── 501.html │ │ ├── fragments │ │ ├── content.html │ │ ├── footer.html │ │ └── head.html │ │ ├── home.html │ │ ├── index.html │ │ ├── index2.html │ │ ├── layout.html │ │ ├── login.html │ │ ├── toLogin.html │ │ ├── treetable.html │ │ └── validate.html │ └── test │ └── java │ └── com │ └── wyait │ └── manage │ └── WyaitManageApplicationTests.java └── wyait.sql /README.md: -------------------------------------------------------------------------------- 1 | # admin 2 | springboot 2.1 + shiro + redis + layUI 后台权限管理系统 3 | 4 | 【一直以来,欠大家的升级版,终于来了】 5 | springboot 2.1版本 6 | 7 | wyait-admin :【博客】[spring boot 2.1 + mybatis + shiro + layui 搭建的后台权限管理系统;https://www.toutiao.com/i6857783244210110983/](https://www.toutiao.com/i6857783244210110983/) 8 | 9 | # manage 10 | spring boot 1.5 + mybatis + shiro + layui 搭建的后台权限管理系统 11 | 12 | [ **wyait-manage** ](https://github.com/wyait/manage.git):【博客】[spring boot 1.5 + mybatis + shiro + layui 搭建的后台权限管理系统;http://blog.51cto.com/wyait/2082803](http://blog.51cto.com/wyait/2082803); 13 | 14 | [ **wyait-manage-1.2.0** ](https://github.com/wyait/manage.git):【博客】[springboot 1.5 + shiro之登录人数限制、登录判断重定向、session时间设置;http://blog.51cto.com/wyait/2107423](http://blog.51cto.com/wyait/2107423); 15 | 本项目是基于[spring boot 1.5 + mybatis + shiro + layui 后台权限管理系统](http://blog.51cto.com/wyait/2082803)开发的,新增功能: 16 | 1. shiro并发登陆人数控制(超出登录用户最大配置数量,清理用户)功能; 17 | 2. 解决在父子页面中,判断用户未登录之后,重定向到登录页面嵌套显示问题; 18 | 3. 解决ajax请求,判断用户未登录之后,如何重定向到登录页面问题; 19 | 4. 解决使用并完成了功能1,导致的session有效时间冲突问题。 20 | 21 | 【博客】[spring boot 1.5 + shiro 动态更新用户信息:http://blog.51cto.com/wyait/2112200](http://blog.51cto.com/wyait/2112200); 22 | 23 | 5. 更新用户操作,通过version字段来保证数据一致; 24 | 6. 新增通过拦截器实现动态更新用户信息(同步更新在线用户信息); 25 | 7. 新增登录成功后默认页面home.html; 26 | 27 | 【博客】[springboot 1.5 + shiro 权限注解、统一异常处理、请求乱码解决 :http://blog.51cto.com/wyait/2125708](http://blog.51cto.com/wyait/2125708); 28 | 29 | 8. 新增shiro权限注解; 30 | 9. 请求乱码问题解决; 31 | 10. 统一异常处理。 32 | 33 | **wyait.sql**: sql数据库语句源码 34 | 35 | 36 | 37 | 38 | **2018-11-23补充**:spring boot高版本中,关于redis、druid、自定义error配置都有更新变动,大家更新版本的时候注意!!! 39 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/ServletInitializer.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.springframework.boot.builder.SpringApplicationBuilder; 4 | import org.springframework.boot.web.support.SpringBootServletInitializer; 5 | 6 | public class ServletInitializer extends SpringBootServletInitializer { 7 | 8 | @Override 9 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 10 | return application.sources(WyaitManageApplication.class); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/WyaitManageApplication.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | @SpringBootApplication 9 | public class WyaitManageApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication sa=new SpringApplication(WyaitManageApplication.class); 13 | // 禁用devTools热部署 14 | //System.setProperty("spring.devtools.restart.enabled", "false"); 15 | // 禁用命令行更改application.properties属性 16 | sa.setAddCommandLineProperties(false); 17 | sa.run(args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/config/DruidConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.config; 2 | 3 | import com.alibaba.druid.support.http.StatViewServlet; 4 | import com.alibaba.druid.support.http.WebStatFilter; 5 | import org.springframework.boot.web.servlet.FilterRegistrationBean; 6 | import org.springframework.boot.web.servlet.ServletRegistrationBean; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | import java.util.HashMap; 11 | import java.util.Map; 12 | 13 | /** 14 | * 15 | * @项目名称:wyait-manage 16 | * @类名称:DruidConfiguration 17 | * @类描述:Druid监控servelet和filter配置 18 | * @创建人:wyait 19 | * @创建时间:2017年11月28日15:19:40 20 | * @version: 21 | */ 22 | @Configuration 23 | public class DruidConfiguration { 24 | 25 | @Bean 26 | public ServletRegistrationBean druidServlet() { 27 | ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(); 28 | servletRegistrationBean.setServlet(new StatViewServlet()); 29 | servletRegistrationBean.addUrlMappings("/druid/*"); 30 | Map initParameters = new HashMap(); 31 | initParameters.put("loginUsername", "admin");// 用户名 32 | initParameters.put("loginPassword", "admin");// 密码 33 | initParameters.put("resetEnable", "false");// 禁用HTML页面上的“Reset All”功能 34 | initParameters.put("allow", ""); // IP白名单 (没有配置或者为空,则允许所有访问) 35 | // initParameters.put("deny", "192.168.20.38");// IP黑名单 36 | // (存在共同时,deny优先于allow) 37 | servletRegistrationBean.setInitParameters(initParameters); 38 | return servletRegistrationBean; 39 | } 40 | 41 | @Bean 42 | public FilterRegistrationBean filterRegistrationBean() { 43 | FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(); 44 | filterRegistrationBean.setFilter(new WebStatFilter()); 45 | filterRegistrationBean.addUrlPatterns("/*"); 46 | // @WebInitParam(name="exclusions",value="*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*")// 47 | // 忽略资源 48 | filterRegistrationBean.addInitParameter("exclusions", 49 | "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"); 50 | return filterRegistrationBean; 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/config/MyWebMvcConfig.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; 7 | 8 | import com.wyait.manage.interceptor.UserActionInterceptor; 9 | 10 | /** 11 | * 12 | * @项目名称:wyait-manage 13 | * @类名称:MyWebMvcConfig 14 | * @类描述:自定义静态资源映射路径和静态资源存放路径 15 | * @创建人:wyait 16 | * @创建时间:2017年11月29日18:40:08 17 | * @修改时间:2018年5月3日09:55:23 18 | * @version: 19 | */ 20 | @Configuration 21 | public class MyWebMvcConfig extends WebMvcConfigurerAdapter { 22 | /** 23 | * 24 | * @描述:在Spring添加拦截器之前先创建拦截器对象,这样就能在Spring映射这个拦截器前,把拦截器中的依赖注入的对象给初始化完成了。 25 | *
避免拦截器中注入的对象为null问题。 26 | * @创建人:wyait 27 | * @创建时间:2018年5月3日 上午10:07:36 28 | * @return 29 | */ 30 | @Bean 31 | public UserActionInterceptor userActionInterceptor(){ 32 | return new UserActionInterceptor(); 33 | } 34 | /** 35 | * 添加自定义静态资源映射路径和静态资源存放路径 36 | */ 37 | /*@Override 38 | public void addResourceHandlers(ResourceHandlerRegistry registry) { 39 | registry.addResourceHandler("/js/**").addResourceLocations("/js/"); 40 | registry.addResourceHandler("/layui/**") 41 | .addResourceLocations("/layui/"); 42 | super.addResourceHandlers(registry); 43 | }*/ 44 | 45 | /** 46 | * 添加拦截器 47 | */ 48 | @Override 49 | public void addInterceptors(InterceptorRegistry registry) { 50 | // 路径根据后期项目的扩展,进行调整 51 | registry.addInterceptor(userActionInterceptor()) 52 | .addPathPatterns("/user/**", "/auth/**") 53 | .excludePathPatterns("/user/sendMsg", "/user/login"); 54 | super.addInterceptors(registry); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/dao/PermissionMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.PermissionVO; 4 | import com.wyait.manage.pojo.Permission; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface PermissionMapper { 11 | int deleteByPrimaryKey(Integer id); 12 | 13 | int insert(Permission record); 14 | 15 | int insertSelective(Permission record); 16 | 17 | Permission selectByPrimaryKey(Integer id); 18 | 19 | int updateByPrimaryKeySelective(Permission record); 20 | 21 | int updateByPrimaryKey(Permission record); 22 | 23 | /** 24 | * 查找所有权限数据 25 | * @return 26 | */ 27 | List findAll(); 28 | 29 | /** 30 | * 查找所有子节点 31 | * @param pid 32 | * @return 33 | */ 34 | List findChildPerm(int pid); 35 | 36 | /** 37 | * 查询权限树列表 38 | * @return 39 | */ 40 | List findPerms(); 41 | 42 | /** 43 | * 根据角色id获取权限数据 44 | * @param roleId 45 | * @return 46 | */ 47 | List findPermsByRole(Integer roleId); 48 | 49 | List getUserPerms(Integer userId); 50 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/dao/RoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.RoleVO; 4 | import com.wyait.manage.pojo.Role; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface RoleMapper { 11 | int deleteByPrimaryKey(Integer id); 12 | 13 | int insert(Role record); 14 | 15 | int insertSelective(Role record); 16 | 17 | Role selectByPrimaryKey(Integer id); 18 | 19 | int updateByPrimaryKeySelective(Role record); 20 | 21 | int updateByPrimaryKey(Role record); 22 | 23 | /** 24 | * 分页查询所有的角色列表 25 | * @return 26 | */ 27 | List findList(); 28 | 29 | /** 30 | * 获取角色相关的数据 31 | * @param id 32 | * @return 33 | */ 34 | RoleVO findRoleAndPerms(Integer id); 35 | 36 | /** 37 | * 根据用户id获取角色数据 38 | * @param userId 39 | * @return 40 | */ 41 | List getRoleByUserId(Integer userId); 42 | 43 | List getRoles(); 44 | 45 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/dao/RolePermissionMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.pojo.RolePermissionKey; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface RolePermissionMapper { 10 | int deleteByPrimaryKey(RolePermissionKey key); 11 | 12 | int insert(RolePermissionKey record); 13 | 14 | int insertSelective(RolePermissionKey record); 15 | 16 | List findByRole(int roleId); 17 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/dao/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.UserRoleDTO; 4 | import com.wyait.manage.entity.UserRolesVO; 5 | import com.wyait.manage.entity.UserSearchDTO; 6 | import com.wyait.manage.pojo.User; 7 | import org.apache.ibatis.annotations.Mapper; 8 | import org.apache.ibatis.annotations.Param; 9 | 10 | import java.util.List; 11 | 12 | @Mapper 13 | public interface UserMapper { 14 | int deleteByPrimaryKey(Integer id); 15 | 16 | int insert(User record); 17 | 18 | int insertSelective(User record); 19 | 20 | User selectByPrimaryKey(Integer id); 21 | 22 | int updateByPrimaryKeySelective(User record); 23 | 24 | int updateByPrimaryKey(User record); 25 | 26 | /** 27 | * 分页查询用户数据 28 | * @return 29 | */ 30 | List getUsers(@Param("userSearch") UserSearchDTO userSearch); 31 | 32 | /** 33 | * 删除用户 34 | * @param id 35 | * @param isDel 36 | * @return 37 | */ 38 | int setDelUser(@Param("id") Integer id, @Param("isDel") Integer isDel, 39 | @Param("insertUid") Integer insertUid); 40 | 41 | /** 42 | * 设置用户是否离职 43 | * @param id 44 | * @param isJob 45 | * @return 46 | */ 47 | int setJobUser(@Param("id") Integer id, @Param("isJob") Integer isJob, 48 | @Param("insertUid") Integer insertUid); 49 | 50 | /** 51 | * 查询用户及对应的角色 52 | * @param id 53 | * @return 54 | */ 55 | UserRolesVO getUserAndRoles(Integer id); 56 | 57 | /** 58 | * 根据用户名和密码查找用户 59 | * @param username 60 | * @param password 61 | * @return 62 | */ 63 | User findUser(@Param("username") String username, 64 | @Param("password") String password); 65 | 66 | /** 67 | * 根据手机号获取用户数据 68 | * @param mobile 69 | * @return 70 | */ 71 | User findUserByMobile(String mobile); 72 | 73 | /** 74 | * 根据用户名获取用户数据 75 | * @param username 76 | * @return 77 | */ 78 | User findUserByName(String username); 79 | 80 | /** 81 | * 修改用户密码 82 | * @param id 83 | * @param password 84 | * @return 85 | */ 86 | int updatePwd(@Param("id") Integer id, @Param("password") String password); 87 | 88 | /** 89 | * 是否锁定用户 90 | * @param id 91 | * @param isLock 92 | * @return 93 | */ 94 | int setUserLockNum(@Param("id") Integer id, @Param("isLock") int isLock); 95 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/dao/UserRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.pojo.UserRoleKey; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface UserRoleMapper { 10 | int deleteByPrimaryKey(UserRoleKey key); 11 | 12 | int insert(UserRoleKey record); 13 | 14 | int insertSelective(UserRoleKey record); 15 | 16 | /** 17 | * 根据用户获取用户角色中间表数据 18 | * @param userId 19 | * @return 20 | */ 21 | List findByUserId(int userId); 22 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/entity/ResponseResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | import com.wyait.manage.utils.IStatusMessage; 4 | 5 | import java.io.Serializable; 6 | 7 | /** 8 | * @项目名称: wyait-manage 9 | * @类名称: ResponseResult 10 | * @类描述: 前端请求响应结果,code:编码,message:描述,obj对象,可以是单个数据对象,数据列表或者PageInfo 11 | * @创建时间: 2018年1月4日10:57:24 12 | * @version: 13 | */ 14 | public class ResponseResult implements Serializable { 15 | 16 | private static final long serialVersionUID = 7285065610386199394L; 17 | 18 | private String code; 19 | private String message; 20 | private Object obj; 21 | 22 | public ResponseResult() { 23 | this.code = IStatusMessage.SystemStatus.SUCCESS.getCode(); 24 | this.message = IStatusMessage.SystemStatus.SUCCESS.getMessage(); 25 | } 26 | 27 | public ResponseResult(IStatusMessage statusMessage){ 28 | this.code = statusMessage.getCode(); 29 | this.message = statusMessage.getMessage(); 30 | 31 | } 32 | 33 | public String getCode() { 34 | return code; 35 | } 36 | 37 | public void setCode(String code) { 38 | this.code = code; 39 | } 40 | 41 | public String getMessage() { 42 | return message; 43 | } 44 | 45 | public void setMessage(String message) { 46 | this.message = message; 47 | } 48 | 49 | public Object getObj() { 50 | return obj; 51 | } 52 | 53 | public void setObj(Object obj) { 54 | this.obj = obj; 55 | } 56 | 57 | @Override public String toString() { 58 | return "ResponseResult{" + "code='" + code + '\'' + ", message='" 59 | + message + '\'' + ", obj=" + obj + '}'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/entity/RoleVO.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | import com.wyait.manage.pojo.RolePermissionKey; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @项目名称:wyait-manage 9 | * @包名:com.wyait.manage.entity 10 | * @类描述: 11 | * @创建人:wyait 12 | * @创建时间:2017-12-28 19:57 13 | * @version:V1.0 14 | */ 15 | public class RoleVO { 16 | 17 | private Integer id; 18 | 19 | private String roleName; 20 | 21 | private String descpt; 22 | 23 | private String code; 24 | 25 | private Integer insertUid; 26 | 27 | private String insertTime; 28 | //角色下的权限ids 29 | private List rolePerms; 30 | 31 | public Integer getId() { 32 | return id; 33 | } 34 | 35 | public String getRoleName() { 36 | return roleName; 37 | } 38 | 39 | public String getDescpt() { 40 | return descpt; 41 | } 42 | 43 | public String getCode() { 44 | return code; 45 | } 46 | 47 | public Integer getInsertUid() { 48 | return insertUid; 49 | } 50 | 51 | public void setId(Integer id) { 52 | this.id = id; 53 | } 54 | 55 | public void setRoleName(String roleName) { 56 | this.roleName = roleName; 57 | } 58 | 59 | public void setDescpt(String descpt) { 60 | this.descpt = descpt; 61 | } 62 | 63 | public void setCode(String code) { 64 | this.code = code; 65 | } 66 | 67 | public void setInsertUid(Integer insertUid) { 68 | this.insertUid = insertUid; 69 | } 70 | 71 | public List getRolePerms() { 72 | return rolePerms; 73 | } 74 | 75 | public void setRolePerms(List rolePerms) { 76 | this.rolePerms = rolePerms; 77 | } 78 | 79 | public String getInsertTime() { 80 | return insertTime; 81 | } 82 | 83 | public void setInsertTime(String insertTime) { 84 | this.insertTime = insertTime; 85 | } 86 | 87 | @Override public String toString() { 88 | return "RoleVO{" + "id=" + id + ", roleName='" + roleName + '\'' 89 | + ", descpt='" + descpt + '\'' + ", code='" + code + '\'' 90 | + ", insertUid=" + insertUid + ", insertTime=" + insertTime 91 | + ", rolePerms=" + rolePerms + '}'; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/entity/UserSearchDTO.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | /** 4 | * @项目名称:wyait-manage 5 | * @包名:com.wyait.manage.entity 6 | * @类描述: 7 | * @创建人:wyait 8 | * @创建时间:2018-01-02 17:10 9 | * @version:V1.0 10 | */ 11 | public class UserSearchDTO { 12 | 13 | private Integer page; 14 | 15 | private Integer limit; 16 | 17 | private String uname; 18 | 19 | private String umobile; 20 | 21 | private String insertTimeStart; 22 | 23 | private String insertTimeEnd; 24 | 25 | public Integer getPage() { 26 | return page; 27 | } 28 | 29 | public void setPage(Integer page) { 30 | this.page = page; 31 | } 32 | 33 | public Integer getLimit() { 34 | return limit; 35 | } 36 | 37 | public void setLimit(Integer limit) { 38 | this.limit = limit; 39 | } 40 | 41 | public String getUname() { 42 | return uname; 43 | } 44 | 45 | public void setUname(String uname) { 46 | this.uname = uname; 47 | } 48 | 49 | public String getUmobile() { 50 | return umobile; 51 | } 52 | 53 | public void setUmobile(String umobile) { 54 | this.umobile = umobile; 55 | } 56 | 57 | public String getInsertTimeStart() { 58 | return insertTimeStart; 59 | } 60 | 61 | public void setInsertTimeStart(String insertTimeStart) { 62 | this.insertTimeStart = insertTimeStart; 63 | } 64 | 65 | public String getInsertTimeEnd() { 66 | return insertTimeEnd; 67 | } 68 | 69 | public void setInsertTimeEnd(String insertTimeEnd) { 70 | this.insertTimeEnd = insertTimeEnd; 71 | } 72 | 73 | @Override public String toString() { 74 | return "UserSearchDTO{" + "page=" + page + ", limit=" + limit 75 | + ", uname='" + uname + '\'' + ", umobile='" + umobile + '\'' 76 | + ", insertTimeStart='" + insertTimeStart + '\'' 77 | + ", insertTimeEnd='" + insertTimeEnd + '\'' + '}'; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/pojo/Role.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class Role { 6 | private Integer id; 7 | 8 | private String roleName; 9 | 10 | private String descpt; 11 | 12 | private String code; 13 | 14 | private Integer insertUid; 15 | 16 | private Date insertTime; 17 | 18 | private Date updateTime; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public String getRoleName() { 29 | return roleName; 30 | } 31 | 32 | public void setRoleName(String roleName) { 33 | this.roleName = roleName == null ? null : roleName.trim(); 34 | } 35 | 36 | public String getDescpt() { 37 | return descpt; 38 | } 39 | 40 | public void setDescpt(String descpt) { 41 | this.descpt = descpt == null ? null : descpt.trim(); 42 | } 43 | 44 | public String getCode() { 45 | return code; 46 | } 47 | 48 | public void setCode(String code) { 49 | this.code = code == null ? null : code.trim(); 50 | } 51 | 52 | public Integer getInsertUid() { 53 | return insertUid; 54 | } 55 | 56 | public void setInsertUid(Integer insertUid) { 57 | this.insertUid = insertUid; 58 | } 59 | 60 | public Date getInsertTime() { 61 | return insertTime; 62 | } 63 | 64 | public void setInsertTime(Date insertTime) { 65 | this.insertTime = insertTime; 66 | } 67 | 68 | public Date getUpdateTime() { 69 | return updateTime; 70 | } 71 | 72 | public void setUpdateTime(Date updateTime) { 73 | this.updateTime = updateTime; 74 | } 75 | 76 | @Override public String toString() { 77 | return "Role{" + "id=" + id + ", roleName='" + roleName + '\'' 78 | + ", descpt='" + descpt + '\'' + ", code='" + code + '\'' 79 | + ", insertUid=" + insertUid + ", insertTime=" + insertTime 80 | + ", updateTime=" + updateTime + '}'; 81 | } 82 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/pojo/RolePermissionKey.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | public class RolePermissionKey { 4 | private Integer permitId; 5 | 6 | private Integer roleId; 7 | 8 | public Integer getPermitId() { 9 | return permitId; 10 | } 11 | 12 | public void setPermitId(Integer permitId) { 13 | this.permitId = permitId; 14 | } 15 | 16 | public Integer getRoleId() { 17 | return roleId; 18 | } 19 | 20 | public void setRoleId(Integer roleId) { 21 | this.roleId = roleId; 22 | } 23 | 24 | @Override public String toString() { 25 | return "RolePermissionKey{" + "permitId=" + permitId + ", roleId=" 26 | + roleId + '}'; 27 | } 28 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/pojo/UserRoleKey.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | public class UserRoleKey { 4 | private Integer userId; 5 | 6 | private Integer roleId; 7 | 8 | public Integer getUserId() { 9 | return userId; 10 | } 11 | 12 | public void setUserId(Integer userId) { 13 | this.userId = userId; 14 | } 15 | 16 | public Integer getRoleId() { 17 | return roleId; 18 | } 19 | 20 | public void setRoleId(Integer roleId) { 21 | this.roleId = roleId; 22 | } 23 | 24 | @Override public String toString() { 25 | return "UserRoleKey{" + "userId=" + userId + ", roleId=" + roleId + '}'; 26 | } 27 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/service/AuthService.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.service; 2 | 3 | import com.wyait.manage.entity.PermissionVO; 4 | import com.wyait.manage.entity.RoleVO; 5 | import com.wyait.manage.pojo.Permission; 6 | import com.wyait.manage.pojo.Role; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @项目名称:wyait-manage 12 | * @包名:com.wyait.manage.service 13 | * @类描述: 14 | * @创建人:wyait 15 | * @创建时间:2017-12-20 15:52 16 | * @version:V1.0 17 | */ 18 | public interface AuthService { 19 | int addPermission(Permission permission); 20 | 21 | List permList(); 22 | 23 | int updatePerm(Permission permission); 24 | 25 | Permission getPermission(int id); 26 | 27 | String delPermission(int id); 28 | 29 | /** 30 | * 查询所有角色 31 | * @return 32 | */ 33 | List roleList(); 34 | 35 | /** 36 | * 关联查询权限树列表 37 | * @return 38 | */ 39 | List findPerms(); 40 | 41 | /** 42 | * 添加角色 43 | * @param role 44 | * @param permIds 45 | * @return 46 | */ 47 | String addRole(Role role, String permIds); 48 | 49 | RoleVO findRoleAndPerms(Integer id); 50 | 51 | /** 52 | * 更新角色并授权 53 | * @param role 54 | * @param permIds 55 | * @return 56 | */ 57 | String updateRole(Role role, String permIds); 58 | 59 | /** 60 | * 删除角色以及它对应的权限 61 | * @param id 62 | * @return 63 | */ 64 | String delRole(int id); 65 | 66 | /** 67 | * 查找所有角色 68 | * @return 69 | */ 70 | List getRoles(); 71 | 72 | /** 73 | * 根据用户获取角色列表 74 | * @param userId 75 | * @return 76 | */ 77 | List getRoleByUser(Integer userId); 78 | 79 | /** 80 | * 根据角色id获取权限数据 81 | * @param id 82 | * @return 83 | */ 84 | List findPermsByRoleId(Integer id); 85 | 86 | /** 87 | * 根据用户id获取权限数据 88 | * @param id 89 | * @return 90 | */ 91 | List getUserPerms(Integer id); 92 | } 93 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.service; 2 | 3 | import com.wyait.manage.entity.UserDTO; 4 | import com.wyait.manage.entity.UserRolesVO; 5 | import com.wyait.manage.entity.UserSearchDTO; 6 | import com.wyait.manage.pojo.User; 7 | import com.wyait.manage.utils.PageDataResult; 8 | 9 | /** 10 | * @项目名称:wyait-manage 11 | * @包名:com.wyait.manage.service 12 | * @类描述: 13 | * @创建人:wyait 14 | * @创建时间:2017-12-20 15:52 15 | * @version:V1.0 16 | */ 17 | public interface UserService { 18 | /** 19 | * 分页查询用户列表 20 | * @param page 21 | * @param limit 22 | * @return 23 | */ 24 | PageDataResult getUsers(UserSearchDTO userSearch, int page, int limit); 25 | 26 | /** 27 | * 设置用户【新增或更新】 28 | * @param user 29 | * @param roleIds 30 | * @return 31 | */ 32 | String setUser(User user, String roleIds); 33 | 34 | /** 35 | * 设置用户是否离职 36 | * @param id 37 | * @param isJob 38 | * @param insertUid 39 | * @return 40 | */ 41 | String setJobUser(Integer id, Integer isJob, Integer insertUid, 42 | Integer version); 43 | 44 | /** 45 | * 删除用户 46 | * @param id 47 | * @param isDel 48 | * @return 49 | */ 50 | String setDelUser(Integer id, Integer isDel, Integer insertUid, 51 | Integer version); 52 | 53 | /** 54 | * 查询用户数据 55 | * @param id 56 | * @return 57 | */ 58 | UserRolesVO getUserAndRoles(Integer id); 59 | 60 | /** 61 | * 发送短信验证码 62 | * @param user 63 | * @return 64 | */ 65 | String sendMsg(UserDTO user); 66 | 67 | /** 68 | * 根据手机号查询用户数据 69 | * @param mobile 70 | * @return 71 | */ 72 | User findUserByMobile(String mobile); 73 | 74 | /** 75 | * 根据手机号发送短信验证码 76 | * @param mobile 77 | * @return 78 | */ 79 | String sendMessage(int userId, String mobile); 80 | 81 | /** 82 | * 修改用户手机号 83 | * @param id 84 | * @param password 85 | * @return 86 | */ 87 | int updatePwd(Integer id, String password); 88 | 89 | /** 90 | * 锁定用户 91 | * @param id 92 | * @param isLock 0:解锁;1:锁定 93 | * @return 94 | */ 95 | int setUserLockNum(Integer id, int isLock); 96 | } 97 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/ExceptionEnum.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | /** 3 | * 4 | * @项目名称:wyait-manage 5 | * @类名称:ExceptionEnum 6 | * @类描述:自定义异常枚举类 7 | * @创建人:wyait 8 | * @创建时间:2018年5月30日 下午2:33:08 9 | * @version: 10 | */ 11 | public enum ExceptionEnum { 12 | UNKNOW_ERROR(-1,"UnknowError","未知错误"), 13 | USER_NOT_FIND(-101,"UserNotFind","用户不存在"), 14 | BAD_REQUEST(400,"BadRequest","请求有误"), 15 | FORBIDDEN(403,"Forbidden","权限不足"), 16 | NOT_FOUND(404,"NotFound","您所访问的资源不存在"), 17 | SERVER_EPT(500,"ServerEpt","操作异常,请稍后再试"); 18 | 19 | private Integer type; 20 | private String code; 21 | private String msg; 22 | 23 | ExceptionEnum(Integer type,String code, String msg) { 24 | this.type = type; 25 | this.code = code; 26 | this.msg = msg; 27 | } 28 | 29 | public Integer getType() { 30 | return type; 31 | } 32 | public String getCode() { 33 | return code; 34 | } 35 | 36 | public String getMsg() { 37 | return msg; 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/HttpResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import org.apache.commons.lang3.StringUtils; 4 | 5 | /** 6 | * 7 | * @项目名称:common 8 | * @类名称:HttpResult 9 | * @类描述:客户端:封装接收到的http请求返回结果 10 | * @创建人:wyait 11 | * @创建时间:2015年10月13日 下午2:53:09 12 | * @version:1.0.0 13 | */ 14 | public class HttpResult { 15 | 16 | // 响应状态码 17 | private Integer code; 18 | 19 | // 响应体 20 | private String body; 21 | 22 | public HttpResult() { 23 | 24 | } 25 | 26 | public HttpResult(Integer code, String body) { 27 | super(); 28 | this.code = code; 29 | if (StringUtils.isNotEmpty(body)) { 30 | this.body = body; 31 | } 32 | 33 | } 34 | 35 | public Integer getCode() { 36 | return code; 37 | } 38 | 39 | public void setCode(Integer code) { 40 | this.code = code; 41 | } 42 | 43 | public String getBody() { 44 | return body; 45 | } 46 | 47 | public void setBody(String body) { 48 | this.body = body; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return "HttpResult [code=" + code + ", body=" + body + "]"; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/IStatusMessage.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | /** 4 | * @项目名称: wyait-manage 5 | * @类名称: IStatusMessage 6 | * @类描述:响应状态信息 7 | * @创建时间: 2018年1月4日11:04:17 8 | * @version: 9 | */ 10 | public interface IStatusMessage { 11 | 12 | String getCode(); 13 | 14 | String getMessage(); 15 | 16 | public enum SystemStatus implements IStatusMessage{ 17 | 18 | SUCCESS("1000","SUCCESS"), //请求成功 19 | ERROR("1001","ERROR"), //请求失败 20 | PARAM_ERROR("1002","PARAM_ERROR"), //请求参数有误 21 | SUCCESS_MATCH("1003","SUCCESS_MATCH"), //表示成功匹配 22 | NO_LOGIN("1100","NO_LOGIN"), //未登录 23 | MANY_LOGINS("1101","MANY_LOGINS"), //多用户在线(踢出用户) 24 | UPDATE("1102","UPDATE"), //用户信息或权限已更新(退出重新登录) 25 | LOCK("1111","LOCK"); //用户已锁定 26 | private String code; 27 | private String message; 28 | 29 | private SystemStatus(String code,String message){ 30 | this.code = code; 31 | this.message = message; 32 | } 33 | 34 | public String getCode(){ 35 | return this.code; 36 | } 37 | 38 | public String getMessage(){ 39 | return this.message; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/PageDataResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * 7 | * @项目名称:wyait-manage 8 | * @类名称:PageDateResult 9 | * @类描述:封装DTO分页数据(记录数和所有记录) 10 | * @创建人:wyait 11 | * @创建时间:2017年12月31日14:49:34 12 | * @version:2.0.0 13 | */ 14 | public class PageDataResult { 15 | 16 | //总记录数量 17 | private Integer totals; 18 | //当前页数据列表 19 | private List list; 20 | 21 | private Integer code=200; 22 | 23 | public PageDataResult() { 24 | } 25 | 26 | public PageDataResult( Integer totals, 27 | List list) { 28 | this.totals = totals; 29 | this.list = list; 30 | } 31 | 32 | public Integer getTotals() { 33 | return totals; 34 | } 35 | 36 | public void setTotals(Integer totals) { 37 | this.totals = totals; 38 | } 39 | 40 | public List getList() { 41 | return list; 42 | } 43 | 44 | public void setList(List list) { 45 | this.list = list; 46 | } 47 | 48 | public Integer getCode() { 49 | return code; 50 | } 51 | 52 | public void setCode(Integer code) { 53 | this.code = code; 54 | } 55 | 56 | @Override public String toString() { 57 | return "PageDataResult{" + "totals=" + totals + ", list=" + list 58 | + ", code=" + code + '}'; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/Result.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | /** 4 | * 5 | * @项目名称:wyait-manage 6 | * @类名称:Result 7 | * @类描述:http请求返回的对象 8 | * @创建人:wyait 9 | * @创建时间:2018年6月5日 下午4:40:52 10 | * @version: 11 | */ 12 | public class Result { 13 | 14 | private String status;// 响应状态编码 15 | private String message;// 响应信息 16 | private T data;// 返回成功信息 17 | 18 | private Result() { 19 | // 单例 20 | } 21 | 22 | private static final Result ME = new Result(); 23 | 24 | public static Result getInstance() { 25 | return ME; 26 | } 27 | 28 | /** 29 | * 响应status和message 30 | * @param status 31 | * @param message 32 | */ 33 | public Result(String status, String message) { 34 | this.status = status; 35 | this.message = message; 36 | } 37 | 38 | /** 39 | * 响应status、message和result 40 | * @param status 41 | * @param message 42 | * @param data 43 | */ 44 | public Result(String status, String message, T data) { 45 | this.status = status; 46 | this.message = message; 47 | this.data = data; 48 | } 49 | 50 | public String getStatus() { 51 | return status; 52 | } 53 | 54 | public void setStatus(String status) { 55 | this.status = status; 56 | } 57 | 58 | public String getMessage() { 59 | return message; 60 | } 61 | 62 | public void setMessage(String message) { 63 | this.message = message; 64 | } 65 | 66 | public T getData() { 67 | return data; 68 | } 69 | 70 | public void setData(T data) { 71 | this.data = data; 72 | } 73 | 74 | @Override 75 | public String toString() { 76 | return "Result [status=" + status + ", message=" + message + ", data=" 77 | + data + "]"; 78 | } 79 | 80 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/utils/SendMsgServer.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | 6 | /** 7 | * 发送短信验证码 8 | */ 9 | public class SendMsgServer { 10 | 11 | private static final Logger logger = LoggerFactory 12 | .getLogger(SendMsgServer.class); 13 | 14 | /** 15 | * 16 | * @描述:(公共)发送短消息: 17 | * @创建人: 18 | * @创建时间:2016年7月22日 上午10:33:20 19 | * @param messageStr 发送的消息 20 | * @param phoneNum 发送的手机号 21 | * @return 发送成功返回:ok,发送失败返回:no 22 | */ 23 | public static String SendMsg(String messageStr, String phoneNum) { 24 | //TODO 25 | return "ok"; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/java/com/wyait/manage/web/IndexController.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.web; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.stereotype.Controller; 6 | import org.springframework.web.bind.annotation.PathVariable; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | 9 | /** 10 | * @项目名称:lyd-channel 11 | * @包名:com.lyd.channel.web 12 | * @类描述: 13 | * @创建人:wyait 14 | * @创建时间:2017-11-28 18:52 15 | * @version:V1.0 16 | */ 17 | @Controller 18 | @RequestMapping("/") 19 | public class IndexController { 20 | private static final Logger logger = LoggerFactory 21 | .getLogger(IndexController.class); 22 | 23 | @RequestMapping("/index") public String index() { 24 | logger.debug("-------------index------------"); 25 | return "index"; 26 | } 27 | 28 | @RequestMapping("/home") public String toHome() { 29 | logger.debug("===111-------------home------------"); 30 | return "home"; 31 | } 32 | @RequestMapping("/login") 33 | public String toLogin() { 34 | logger.debug("===111-------------login------------"); 35 | return "login"; 36 | } 37 | 38 | @RequestMapping("/{page}") public String toPage( 39 | @PathVariable("page") String page) { 40 | logger.debug("-------------toindex------------" + page); 41 | return page; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/application-prod.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/application-prod.properties -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/application-test.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/application-test.properties -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #关闭thymeleaf缓存 2 | spring.thymeleaf.cache=false 3 | # 加载指定配置文件 4 | spring.profiles.active=dev -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/mapper/RolePermissionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | delete from role_permission 10 | where permit_id = #{permitId,jdbcType=INTEGER} 11 | and role_id = #{roleId,jdbcType=INTEGER} 12 | 13 | 14 | insert into role_permission (permit_id, role_id) 15 | values (#{permitId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}) 16 | 17 | 18 | insert into role_permission 19 | 20 | 21 | permit_id, 22 | 23 | 24 | role_id, 25 | 26 | 27 | 28 | 29 | #{permitId,jdbcType=INTEGER}, 30 | 31 | 32 | #{roleId,jdbcType=INTEGER}, 33 | 34 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/mapper/UserRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | delete from user_role 10 | where user_id = #{userId,jdbcType=INTEGER} 11 | and role_id = #{roleId,jdbcType=INTEGER} 12 | 13 | 14 | insert into user_role (user_id, role_id) 15 | values (#{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}) 16 | 17 | 18 | insert into user_role 19 | 20 | 21 | user_id, 22 | 23 | 24 | role_id, 25 | 26 | 27 | 28 | 29 | #{userId,jdbcType=INTEGER}, 30 | 31 | 32 | #{roleId,jdbcType=INTEGER}, 33 | 34 | 35 | 36 | 37 | 38 | 43 | 44 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/0.jpg -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/images/bk.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/images/bk.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/images/bkLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/images/bkLogo.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/images/login.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/images/logo.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/images/logoa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/images/logoa.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/auth/roleList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 角色列表 3 | */ 4 | $(function() { 5 | layui.use('table', function(){ 6 | var table = layui.table; 7 | var tbody=$("#tbody"); 8 | $.get("/auth/getRoleList",function(data){ 9 | if(data!=null){ 10 | tbody.empty(); 11 | $.each(data, function (index, item) { 12 | var td=$(""+item.code+"" 13 | +""+item.roleName+"" 14 | +""+item.descpt+"" 15 | +""+DateUtils.formatDate(item.insertTime)+"" 16 | +"" 17 | +"" 18 | +""); 19 | tbody.append(td); 20 | }); 21 | } 22 | }); 23 | }); 24 | }); 25 | 26 | function updateRole(id) { 27 | //isNaN是数字返回false 28 | if(id!=null && !isNaN(id)){ 29 | window.location.href="/auth/updateRole/"+id+"?callback="+getCallback(); 30 | }else{ 31 | layer.alert("请求参数有误,请您稍后再试"); 32 | } 33 | } 34 | function delRole(id) { 35 | if(null!=id){ 36 | layer.confirm('您确定要删除'+name+'角色吗?', { 37 | btn: ['确认','返回'] //按钮 38 | }, function(){ 39 | $.post("/auth/delRole",{"id":id},function(data){ 40 | if(data=="ok"){ 41 | //回调弹框 42 | layer.alert("删除成功!",function(){ 43 | layer.closeAll(); 44 | //加载load方法 45 | load();//自定义 46 | }); 47 | }else{ 48 | layer.alert(data);//弹出错误提示 49 | } 50 | }); 51 | }, function(){ 52 | layer.closeAll(); 53 | }); 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/auth/roleManage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 角色管理 3 | */ 4 | $(function() { 5 | $("#roleListLi").click(function () { 6 | $("#setRoleLi").removeClass("layui-this"); 7 | $("#setRoleDiv").removeClass("layui-show"); 8 | 9 | $("#updateRoleLi").css("display","none"); 10 | $("#updateRoleDiv").css("display","none"); 11 | $("#roleListLi").addClass("layui-this"); 12 | $("#roleListDiv").addClass("layui-show"); 13 | }); 14 | $("#setRoleLi").click(function () { 15 | $("#roleListLi").removeClass("layui-this"); 16 | $("#roleListDiv").removeClass("layui-show"); 17 | 18 | $("#updateRoleLi").css("display","none"); 19 | $("#updateRoleDiv").css("display","none"); 20 | $("#setRoleLi").addClass("layui-this"); 21 | $("#setRoleDiv").addClass("layui-show"); 22 | }); 23 | if(flag=="updateRole"){ 24 | $("#roleListLi").removeClass("layui-this"); 25 | $("#setRoleLi").removeClass("layui-this"); 26 | $("#roleListDiv").removeClass("layui-show"); 27 | $("#setRoleDiv").removeClass("layui-show"); 28 | 29 | $("#updateRoleLi").addClass("layui-this"); 30 | $("#updateRoleDiv").addClass("layui-show"); 31 | $("#updateRoleLi").css("display","inline-block"); 32 | $("#updateRoleDiv").css("display","inline-block"); 33 | } 34 | }); 35 | 36 | /** 37 | * 进入角色管理界面 38 | */ 39 | function load(){ 40 | window.location.href="/auth/roleManage"; 41 | } -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/auth/roleUpdate.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 角色授权 3 | */ 4 | $(function() { 5 | 6 | if(flag=="updateRole"){ 7 | // zTree 的参数配置 8 | var setting = { 9 | check: { 10 | enable: true, 11 | chkboxType:{ "Y":"p", "N":"s"} 12 | }, 13 | data: { 14 | simpleData: { 15 | enable: true 16 | } 17 | } 18 | }; 19 | $.fn.zTree.init($("#treeDemo"), setting, permIdList); 20 | } 21 | 22 | layui.use(['form' ,'layer'], function(){ 23 | var form = layui.form; 24 | var layer=layui.layer; 25 | 26 | //监听提交 27 | form.on('submit(updateRoleSumbit)', function(data){ 28 | //获取选中的权限 29 | var treeObj = $.fn.zTree.getZTreeObj("treeDemo"); 30 | var nodes = treeObj.getCheckedNodes(true); 31 | //选中的复选框 32 | var nodeIds =new Array(); 33 | for (var i = 0; i < nodes.length; i++) { 34 | nodeIds.push(nodes[i].id); 35 | } 36 | //校验是否授权 37 | var permList = nodeIds.join(","); 38 | // console.log("permList:"+permList) 39 | if(permList==null || permList==''){ 40 | layer.alert("请给该角色添加权限菜单!") 41 | return false; 42 | } 43 | $("#rolePermIds").val(permList); 44 | $.ajax({ 45 | type: "POST", 46 | data: $("#updateRoleForm").serialize(), 47 | url: "/auth/setRole", 48 | success: function (data) { 49 | if (data == "ok") { 50 | layer.alert("操作成功",function(){ 51 | layer.closeAll(); 52 | load(); 53 | }); 54 | } else { 55 | layer.alert(data); 56 | } 57 | }, 58 | error: function (data) { 59 | layer.alert("操作请求错误,请您稍后再试"); 60 | } 61 | }); 62 | return false; 63 | }); 64 | form.render(); 65 | }); 66 | }); 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/error.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ajax异常 3 | * */ 4 | function ajaxError(){ 5 | /*$.get("/error/ajaxError",function(data,status){ 6 | console.log("status:"+status); 7 | console.log("data:"+data); 8 | layer.alert(data); 9 | });*/ 10 | 11 | $.ajax({ 12 | url: "/error/ajaxError", 13 | data:"", 14 | type: "GET", 15 | success:function(data){ 16 | //异常过滤处理 17 | if(isError(data)){ 18 | alert(data); 19 | } 20 | }, 21 | error:function(e){ 22 | //也可通过error控制请求失败的情况 23 | console.log("e:"+e); 24 | } 25 | }); 26 | } 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_close.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_open.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/2.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/3.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/4.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/5.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/6.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/7.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/8.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/9.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/line_conn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/line_conn.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/1_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/1_close.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/1_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/1_open.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/2.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/3.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/4.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/5.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/6.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/7.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/8.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/diy/9.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/line_conn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/line_conn.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/zTreeStandard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/zTreeStandard.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/zTreeStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/js/ztree/img/zTreeStandard.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/0.jpg -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/treegrid/img/collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/treegrid/img/collapse.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/treegrid/img/expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/treegrid/img/expand.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/treegrid/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/treegrid/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/static/treegrid/img/wrong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage-1.2.0/src/main/resources/static/treegrid/img/wrong.png -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 403友情提示 6 | 7 | 8 |

没有权限,请联系服务人员(403)

9 | 10 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/auth/role.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 8 |
9 |
10 | 11 |
12 | 13 |
14 |
15 |
16 |
17 |
18 | 19 |
20 | 21 |
22 |
23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |
31 |
32 | 33 |
34 |
    35 |
    36 |
    37 | 38 |
    39 |
    40 | 41 | 42 |
    43 |
    44 |
    45 | 46 | 47 |
    48 | 49 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/auth/roleList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
    5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
    角色编号角色名称角色描述添加时间操作
    19 | 20 | 21 | 22 |
    23 | 24 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/auth/roleManage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
    8 | 9 |
    10 |
    11 |
    12 |
      13 |
    • 角色列表
    • 14 |
    • 开通角色
    • 15 | 16 |
    17 |
    18 |
    19 |
    20 |
    21 |
    22 |
    23 |
    24 | 27 |
    28 |
    29 |
    30 | 31 | 32 |
    33 | 34 | 37 |
    38 | 39 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

    出错了

    9 |

    10 | 11 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/error/403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 403友情提示 6 | 7 | 8 |

    没有权限,请联系服务人员(403)

    9 | 10 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/error/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404友情提示 6 | 7 | 8 |

    访问的资源未找到(404)

    9 | 10 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/error/501.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 500友情提示 6 | 7 | 8 |

    请求出错,请您稍后再试(500)

    9 | 10 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/fragments/content.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 | 8 |
    内容主体区域 9 |

    10 | 渠道 11 |
    12 |
    13 |
    14 | 15 | 17 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
    8 | 9 |
    10 | 11 | 12 | 13 | 14 |
    15 |
    16 |
    17 |
    18 |   19 |

    ,欢迎您登录 20 | 后台管理系统

    21 |

    博客链接:http://blog.51cto.com/wyait 22 |

    23 |

    24 | 普通请求异常: 25 | 点击 26 |

    27 |

    28 | ajax异步请求异常: 29 | 点击 30 |

    31 |
    32 |
    33 |
    34 |
    35 | 36 | 37 | 38 |
    39 |
    40 | 41 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | jQuery注册登录改密表单代码 - 站长素材 7 | 8 | 9 | 10 | 11 | 12 |
    13 |
    14 |
      15 |
    • 登录
    • 16 |
    • 注册
    • 17 |
    • 忘记密码
    • 18 |
    19 | 20 | 21 | 22 | 23 | 24 |
    25 |
    26 | 27 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/index2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | wyait 管理 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
    14 | 你也可以单独打开后台布局的例子: 15 | 单独打开 16 |
    17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 后台管理系统 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/toLogin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/main/resources/templates/treetable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
    Parenttitle
    Childdesc
    Parenttitle
    Childdesc
    30 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wyait-manage-1.2.0/src/test/java/com/wyait/manage/WyaitManageApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class WyaitManageApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/ServletInitializer.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.springframework.boot.builder.SpringApplicationBuilder; 4 | import org.springframework.boot.web.support.SpringBootServletInitializer; 5 | 6 | public class ServletInitializer extends SpringBootServletInitializer { 7 | 8 | @Override 9 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 10 | return application.sources(WyaitManageApplication.class); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/WyaitManageApplication.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | @SpringBootApplication 9 | public class WyaitManageApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication sa=new SpringApplication(WyaitManageApplication.class); 13 | // 禁用devTools热部署 14 | //System.setProperty("spring.devtools.restart.enabled", "false"); 15 | // 禁用命令行更改application.properties属性 16 | sa.setAddCommandLineProperties(false); 17 | sa.run(args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/config/DruidConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.config; 2 | 3 | import com.alibaba.druid.support.http.StatViewServlet; 4 | import com.alibaba.druid.support.http.WebStatFilter; 5 | import org.springframework.boot.web.servlet.FilterRegistrationBean; 6 | import org.springframework.boot.web.servlet.ServletRegistrationBean; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | import java.util.HashMap; 11 | import java.util.Map; 12 | 13 | /** 14 | * 15 | * @项目名称:wyait-manage 16 | * @类名称:DruidConfiguration 17 | * @类描述:Druid监控servelet和filter配置 18 | * @创建人:wyait 19 | * @创建时间:2017年11月28日15:19:40 20 | * @version: 21 | */ 22 | @Configuration 23 | public class DruidConfiguration { 24 | 25 | @Bean 26 | public ServletRegistrationBean druidServlet() { 27 | ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(); 28 | servletRegistrationBean.setServlet(new StatViewServlet()); 29 | servletRegistrationBean.addUrlMappings("/druid/*"); 30 | Map initParameters = new HashMap(); 31 | initParameters.put("loginUsername", "admin");// 用户名 32 | initParameters.put("loginPassword", "admin");// 密码 33 | initParameters.put("resetEnable", "false");// 禁用HTML页面上的“Reset All”功能 34 | initParameters.put("allow", ""); // IP白名单 (没有配置或者为空,则允许所有访问) 35 | // initParameters.put("deny", "192.168.20.38");// IP黑名单 36 | // (存在共同时,deny优先于allow) 37 | servletRegistrationBean.setInitParameters(initParameters); 38 | return servletRegistrationBean; 39 | } 40 | 41 | @Bean 42 | public FilterRegistrationBean filterRegistrationBean() { 43 | FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(); 44 | filterRegistrationBean.setFilter(new WebStatFilter()); 45 | filterRegistrationBean.addUrlPatterns("/*"); 46 | // @WebInitParam(name="exclusions",value="*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*")// 47 | // 忽略资源 48 | filterRegistrationBean.addInitParameter("exclusions", 49 | "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"); 50 | return filterRegistrationBean; 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/dao/PermissionMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.PermissionVO; 4 | import com.wyait.manage.pojo.Permission; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface PermissionMapper { 11 | int deleteByPrimaryKey(Integer id); 12 | 13 | int insert(Permission record); 14 | 15 | int insertSelective(Permission record); 16 | 17 | Permission selectByPrimaryKey(Integer id); 18 | 19 | int updateByPrimaryKeySelective(Permission record); 20 | 21 | int updateByPrimaryKey(Permission record); 22 | 23 | /** 24 | * 查找所有权限数据 25 | * @return 26 | */ 27 | List findAll(); 28 | 29 | /** 30 | * 查找所有子节点 31 | * @param pid 32 | * @return 33 | */ 34 | List findChildPerm(int pid); 35 | 36 | /** 37 | * 查询权限树列表 38 | * @return 39 | */ 40 | List findPerms(); 41 | 42 | /** 43 | * 根据角色id获取权限数据 44 | * @param roleId 45 | * @return 46 | */ 47 | List findPermsByRole(Integer roleId); 48 | 49 | List getUserPerms(Integer userId); 50 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/dao/RoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.RoleVO; 4 | import com.wyait.manage.pojo.Role; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface RoleMapper { 11 | int deleteByPrimaryKey(Integer id); 12 | 13 | int insert(Role record); 14 | 15 | int insertSelective(Role record); 16 | 17 | Role selectByPrimaryKey(Integer id); 18 | 19 | int updateByPrimaryKeySelective(Role record); 20 | 21 | int updateByPrimaryKey(Role record); 22 | 23 | /** 24 | * 分页查询所有的角色列表 25 | * @return 26 | */ 27 | List findList(); 28 | 29 | /** 30 | * 获取角色相关的数据 31 | * @param id 32 | * @return 33 | */ 34 | RoleVO findRoleAndPerms(Integer id); 35 | 36 | /** 37 | * 根据用户id获取角色数据 38 | * @param userId 39 | * @return 40 | */ 41 | List getRoleByUserId(Integer userId); 42 | 43 | List getRoles(); 44 | 45 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/dao/RolePermissionMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.pojo.RolePermissionKey; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface RolePermissionMapper { 10 | int deleteByPrimaryKey(RolePermissionKey key); 11 | 12 | int insert(RolePermissionKey record); 13 | 14 | int insertSelective(RolePermissionKey record); 15 | 16 | List findByRole(int roleId); 17 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/dao/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.entity.UserRoleDTO; 4 | import com.wyait.manage.entity.UserRolesVO; 5 | import com.wyait.manage.entity.UserSearchDTO; 6 | import com.wyait.manage.pojo.User; 7 | import org.apache.ibatis.annotations.Mapper; 8 | import org.apache.ibatis.annotations.Param; 9 | 10 | import java.util.List; 11 | 12 | @Mapper 13 | public interface UserMapper { 14 | int deleteByPrimaryKey(Integer id); 15 | 16 | int insert(User record); 17 | 18 | int insertSelective(User record); 19 | 20 | User selectByPrimaryKey(Integer id); 21 | 22 | int updateByPrimaryKeySelective(User record); 23 | 24 | int updateByPrimaryKey(User record); 25 | 26 | /** 27 | * 分页查询用户数据 28 | * @return 29 | */ 30 | List getUsers(@Param("userSearch") UserSearchDTO userSearch); 31 | 32 | /** 33 | * 删除用户 34 | * @param id 35 | * @param isDel 36 | * @return 37 | */ 38 | int setDelUser(@Param("id") Integer id, @Param("isDel") Integer isDel, 39 | @Param("insertUid") Integer insertUid); 40 | 41 | /** 42 | * 设置用户是否离职 43 | * @param id 44 | * @param isJob 45 | * @return 46 | */ 47 | int setJobUser(@Param("id") Integer id, @Param("isJob") Integer isJob, 48 | @Param("insertUid") Integer insertUid); 49 | 50 | /** 51 | * 查询用户及对应的角色 52 | * @param id 53 | * @return 54 | */ 55 | UserRolesVO getUserAndRoles(Integer id); 56 | 57 | /** 58 | * 根据用户名和密码查找用户 59 | * @param username 60 | * @param password 61 | * @return 62 | */ 63 | User findUser(@Param("username") String username, 64 | @Param("password") String password); 65 | 66 | /** 67 | * 根据手机号获取用户数据 68 | * @param mobile 69 | * @return 70 | */ 71 | User findUserByMobile(String mobile); 72 | 73 | /** 74 | * 根据用户名获取用户数据 75 | * @param username 76 | * @return 77 | */ 78 | User findUserByName(String username); 79 | 80 | /** 81 | * 修改用户密码 82 | * @param id 83 | * @param password 84 | * @return 85 | */ 86 | int updatePwd(@Param("id") Integer id, @Param("password") String password); 87 | 88 | /** 89 | * 是否锁定用户 90 | * @param id 91 | * @param isLock 92 | * @return 93 | */ 94 | int setUserLockNum(@Param("id") Integer id, @Param("isLock") int isLock); 95 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/dao/UserRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.dao; 2 | 3 | import com.wyait.manage.pojo.UserRoleKey; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface UserRoleMapper { 10 | int deleteByPrimaryKey(UserRoleKey key); 11 | 12 | int insert(UserRoleKey record); 13 | 14 | int insertSelective(UserRoleKey record); 15 | 16 | /** 17 | * 根据用户获取用户角色中间表数据 18 | * @param userId 19 | * @return 20 | */ 21 | List findByUserId(int userId); 22 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/entity/ResponseResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | import com.wyait.manage.utils.IStatusMessage; 4 | 5 | import java.io.Serializable; 6 | 7 | /** 8 | * @项目名称: wyait-manage 9 | * @类名称: ResponseResult 10 | * @类描述: 前端请求响应结果,code:编码,message:描述,obj对象,可以是单个数据对象,数据列表或者PageInfo 11 | * @创建时间: 2018年1月4日10:57:24 12 | * @version: 13 | */ 14 | public class ResponseResult implements Serializable { 15 | 16 | private static final long serialVersionUID = 7285065610386199394L; 17 | 18 | private String code; 19 | private String message; 20 | private Object obj; 21 | 22 | public ResponseResult() { 23 | this.code = IStatusMessage.SystemStatus.SUCCESS.getCode(); 24 | this.message = IStatusMessage.SystemStatus.SUCCESS.getMessage(); 25 | } 26 | 27 | public ResponseResult(IStatusMessage statusMessage){ 28 | this.code = statusMessage.getCode(); 29 | this.message = statusMessage.getMessage(); 30 | 31 | } 32 | 33 | public String getCode() { 34 | return code; 35 | } 36 | 37 | public void setCode(String code) { 38 | this.code = code; 39 | } 40 | 41 | public String getMessage() { 42 | return message; 43 | } 44 | 45 | public void setMessage(String message) { 46 | this.message = message; 47 | } 48 | 49 | public Object getObj() { 50 | return obj; 51 | } 52 | 53 | public void setObj(Object obj) { 54 | this.obj = obj; 55 | } 56 | 57 | @Override public String toString() { 58 | return "ResponseResult{" + "code='" + code + '\'' + ", message='" 59 | + message + '\'' + ", obj=" + obj + '}'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/entity/RoleVO.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | import com.wyait.manage.pojo.RolePermissionKey; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @项目名称:wyait-manage 9 | * @包名:com.wyait.manage.entity 10 | * @类描述: 11 | * @创建人:wyait 12 | * @创建时间:2017-12-28 19:57 13 | * @version:V1.0 14 | */ 15 | public class RoleVO { 16 | 17 | private Integer id; 18 | 19 | private String roleName; 20 | 21 | private String descpt; 22 | 23 | private String code; 24 | 25 | private Integer insertUid; 26 | 27 | private String insertTime; 28 | //角色下的权限ids 29 | private List rolePerms; 30 | 31 | public Integer getId() { 32 | return id; 33 | } 34 | 35 | public String getRoleName() { 36 | return roleName; 37 | } 38 | 39 | public String getDescpt() { 40 | return descpt; 41 | } 42 | 43 | public String getCode() { 44 | return code; 45 | } 46 | 47 | public Integer getInsertUid() { 48 | return insertUid; 49 | } 50 | 51 | public void setId(Integer id) { 52 | this.id = id; 53 | } 54 | 55 | public void setRoleName(String roleName) { 56 | this.roleName = roleName; 57 | } 58 | 59 | public void setDescpt(String descpt) { 60 | this.descpt = descpt; 61 | } 62 | 63 | public void setCode(String code) { 64 | this.code = code; 65 | } 66 | 67 | public void setInsertUid(Integer insertUid) { 68 | this.insertUid = insertUid; 69 | } 70 | 71 | public List getRolePerms() { 72 | return rolePerms; 73 | } 74 | 75 | public void setRolePerms(List rolePerms) { 76 | this.rolePerms = rolePerms; 77 | } 78 | 79 | public String getInsertTime() { 80 | return insertTime; 81 | } 82 | 83 | public void setInsertTime(String insertTime) { 84 | this.insertTime = insertTime; 85 | } 86 | 87 | @Override public String toString() { 88 | return "RoleVO{" + "id=" + id + ", roleName='" + roleName + '\'' 89 | + ", descpt='" + descpt + '\'' + ", code='" + code + '\'' 90 | + ", insertUid=" + insertUid + ", insertTime=" + insertTime 91 | + ", rolePerms=" + rolePerms + '}'; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/entity/UserSearchDTO.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.entity; 2 | 3 | /** 4 | * @项目名称:wyait-manage 5 | * @包名:com.wyait.manage.entity 6 | * @类描述: 7 | * @创建人:wyait 8 | * @创建时间:2018-01-02 17:10 9 | * @version:V1.0 10 | */ 11 | public class UserSearchDTO { 12 | 13 | private Integer page; 14 | 15 | private Integer limit; 16 | 17 | private String uname; 18 | 19 | private String umobile; 20 | 21 | private String insertTimeStart; 22 | 23 | private String insertTimeEnd; 24 | 25 | public Integer getPage() { 26 | return page; 27 | } 28 | 29 | public void setPage(Integer page) { 30 | this.page = page; 31 | } 32 | 33 | public Integer getLimit() { 34 | return limit; 35 | } 36 | 37 | public void setLimit(Integer limit) { 38 | this.limit = limit; 39 | } 40 | 41 | public String getUname() { 42 | return uname; 43 | } 44 | 45 | public void setUname(String uname) { 46 | this.uname = uname; 47 | } 48 | 49 | public String getUmobile() { 50 | return umobile; 51 | } 52 | 53 | public void setUmobile(String umobile) { 54 | this.umobile = umobile; 55 | } 56 | 57 | public String getInsertTimeStart() { 58 | return insertTimeStart; 59 | } 60 | 61 | public void setInsertTimeStart(String insertTimeStart) { 62 | this.insertTimeStart = insertTimeStart; 63 | } 64 | 65 | public String getInsertTimeEnd() { 66 | return insertTimeEnd; 67 | } 68 | 69 | public void setInsertTimeEnd(String insertTimeEnd) { 70 | this.insertTimeEnd = insertTimeEnd; 71 | } 72 | 73 | @Override public String toString() { 74 | return "UserSearchDTO{" + "page=" + page + ", limit=" + limit 75 | + ", uname='" + uname + '\'' + ", umobile='" + umobile + '\'' 76 | + ", insertTimeStart='" + insertTimeStart + '\'' 77 | + ", insertTimeEnd='" + insertTimeEnd + '\'' + '}'; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/pojo/Role.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | import java.util.Date; 4 | 5 | public class Role { 6 | private Integer id; 7 | 8 | private String roleName; 9 | 10 | private String descpt; 11 | 12 | private String code; 13 | 14 | private Integer insertUid; 15 | 16 | private Date insertTime; 17 | 18 | private Date updateTime; 19 | 20 | public Integer getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Integer id) { 25 | this.id = id; 26 | } 27 | 28 | public String getRoleName() { 29 | return roleName; 30 | } 31 | 32 | public void setRoleName(String roleName) { 33 | this.roleName = roleName == null ? null : roleName.trim(); 34 | } 35 | 36 | public String getDescpt() { 37 | return descpt; 38 | } 39 | 40 | public void setDescpt(String descpt) { 41 | this.descpt = descpt == null ? null : descpt.trim(); 42 | } 43 | 44 | public String getCode() { 45 | return code; 46 | } 47 | 48 | public void setCode(String code) { 49 | this.code = code == null ? null : code.trim(); 50 | } 51 | 52 | public Integer getInsertUid() { 53 | return insertUid; 54 | } 55 | 56 | public void setInsertUid(Integer insertUid) { 57 | this.insertUid = insertUid; 58 | } 59 | 60 | public Date getInsertTime() { 61 | return insertTime; 62 | } 63 | 64 | public void setInsertTime(Date insertTime) { 65 | this.insertTime = insertTime; 66 | } 67 | 68 | public Date getUpdateTime() { 69 | return updateTime; 70 | } 71 | 72 | public void setUpdateTime(Date updateTime) { 73 | this.updateTime = updateTime; 74 | } 75 | 76 | @Override public String toString() { 77 | return "Role{" + "id=" + id + ", roleName='" + roleName + '\'' 78 | + ", descpt='" + descpt + '\'' + ", code='" + code + '\'' 79 | + ", insertUid=" + insertUid + ", insertTime=" + insertTime 80 | + ", updateTime=" + updateTime + '}'; 81 | } 82 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/pojo/RolePermissionKey.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | public class RolePermissionKey { 4 | private Integer permitId; 5 | 6 | private Integer roleId; 7 | 8 | public Integer getPermitId() { 9 | return permitId; 10 | } 11 | 12 | public void setPermitId(Integer permitId) { 13 | this.permitId = permitId; 14 | } 15 | 16 | public Integer getRoleId() { 17 | return roleId; 18 | } 19 | 20 | public void setRoleId(Integer roleId) { 21 | this.roleId = roleId; 22 | } 23 | 24 | @Override public String toString() { 25 | return "RolePermissionKey{" + "permitId=" + permitId + ", roleId=" 26 | + roleId + '}'; 27 | } 28 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/pojo/UserRoleKey.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.pojo; 2 | 3 | public class UserRoleKey { 4 | private Integer userId; 5 | 6 | private Integer roleId; 7 | 8 | public Integer getUserId() { 9 | return userId; 10 | } 11 | 12 | public void setUserId(Integer userId) { 13 | this.userId = userId; 14 | } 15 | 16 | public Integer getRoleId() { 17 | return roleId; 18 | } 19 | 20 | public void setRoleId(Integer roleId) { 21 | this.roleId = roleId; 22 | } 23 | 24 | @Override public String toString() { 25 | return "UserRoleKey{" + "userId=" + userId + ", roleId=" + roleId + '}'; 26 | } 27 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/service/AuthService.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.service; 2 | 3 | import com.wyait.manage.entity.PermissionVO; 4 | import com.wyait.manage.entity.RoleVO; 5 | import com.wyait.manage.pojo.Permission; 6 | import com.wyait.manage.pojo.Role; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @项目名称:wyait-manage 12 | * @包名:com.wyait.manage.service 13 | * @类描述: 14 | * @创建人:wyait 15 | * @创建时间:2017-12-20 15:52 16 | * @version:V1.0 17 | */ 18 | public interface AuthService { 19 | int addPermission(Permission permission); 20 | 21 | List permList(); 22 | 23 | int updatePerm(Permission permission); 24 | 25 | Permission getPermission(int id); 26 | 27 | String delPermission(int id); 28 | 29 | /** 30 | * 查询所有角色 31 | * @return 32 | */ 33 | List roleList(); 34 | 35 | /** 36 | * 关联查询权限树列表 37 | * @return 38 | */ 39 | List findPerms(); 40 | 41 | /** 42 | * 添加角色 43 | * @param role 44 | * @param permIds 45 | * @return 46 | */ 47 | String addRole(Role role, String permIds); 48 | 49 | RoleVO findRoleAndPerms(Integer id); 50 | 51 | /** 52 | * 更新角色并授权 53 | * @param role 54 | * @param permIds 55 | * @return 56 | */ 57 | String updateRole(Role role, String permIds); 58 | 59 | /** 60 | * 删除角色以及它对应的权限 61 | * @param id 62 | * @return 63 | */ 64 | String delRole(int id); 65 | 66 | /** 67 | * 查找所有角色 68 | * @return 69 | */ 70 | List getRoles(); 71 | 72 | /** 73 | * 根据用户获取角色列表 74 | * @param userId 75 | * @return 76 | */ 77 | List getRoleByUser(Integer userId); 78 | 79 | /** 80 | * 根据角色id获取权限数据 81 | * @param id 82 | * @return 83 | */ 84 | List findPermsByRoleId(Integer id); 85 | 86 | /** 87 | * 根据用户id获取权限数据 88 | * @param id 89 | * @return 90 | */ 91 | List getUserPerms(Integer id); 92 | } 93 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.service; 2 | 3 | import com.wyait.manage.entity.UserDTO; 4 | import com.wyait.manage.entity.UserRolesVO; 5 | import com.wyait.manage.entity.UserSearchDTO; 6 | import com.wyait.manage.pojo.User; 7 | import com.wyait.manage.utils.PageDataResult; 8 | 9 | /** 10 | * @项目名称:wyait-manage 11 | * @包名:com.wyait.manage.service 12 | * @类描述: 13 | * @创建人:wyait 14 | * @创建时间:2017-12-20 15:52 15 | * @version:V1.0 16 | */ 17 | public interface UserService { 18 | /** 19 | * 分页查询用户列表 20 | * @param page 21 | * @param limit 22 | * @return 23 | */ 24 | PageDataResult getUsers(UserSearchDTO userSearch, int page, int limit); 25 | 26 | /** 27 | * 设置用户【新增或更新】 28 | * @param user 29 | * @param roleIds 30 | * @return 31 | */ 32 | String setUser(User user, String roleIds); 33 | 34 | /** 35 | * 设置用户是否离职 36 | * @param id 37 | * @param isJob 38 | * @param insertUid 39 | * @return 40 | */ 41 | String setJobUser(Integer id, Integer isJob,Integer insertUid,Integer version); 42 | 43 | /** 44 | * 删除用户 45 | * @param id 46 | * @param isDel 47 | * @return 48 | */ 49 | String setDelUser(Integer id, Integer isDel,Integer insertUid,Integer version); 50 | 51 | /** 52 | * 查询用户数据 53 | * @param id 54 | * @return 55 | */ 56 | UserRolesVO getUserAndRoles(Integer id); 57 | 58 | /** 59 | * 发送短信验证码 60 | * @param user 61 | * @return 62 | */ 63 | String sendMsg(UserDTO user); 64 | 65 | /** 66 | * 根据手机号查询用户数据 67 | * @param mobile 68 | * @return 69 | */ 70 | User findUserByMobile(String mobile); 71 | 72 | /** 73 | * 根据手机号发送短信验证码 74 | * @param mobile 75 | * @return 76 | */ 77 | String sendMessage(int userId, String mobile); 78 | 79 | /** 80 | * 修改用户手机号 81 | * @param id 82 | * @param password 83 | * @return 84 | */ 85 | int updatePwd(Integer id, String password); 86 | 87 | /** 88 | * 锁定用户 89 | * @param id 90 | * @param isLock 0:解锁;1:锁定 91 | * @return 92 | */ 93 | int setUserLockNum(Integer id,int isLock); 94 | } 95 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/ExceptionEnum.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | /** 3 | * 4 | * @项目名称:wyait-manage 5 | * @类名称:ExceptionEnum 6 | * @类描述:自定义异常枚举类 7 | * @创建人:wyait 8 | * @创建时间:2018年5月30日 下午2:33:08 9 | * @version: 10 | */ 11 | public enum ExceptionEnum { 12 | UNKNOW_ERROR(-1,"UnknowError","未知错误"), 13 | USER_NOT_FIND(-101,"UserNotFind","用户不存在"), 14 | BAD_REQUEST(400,"BadRequest","请求有误"), 15 | FORBIDDEN(403,"Forbidden","权限不足"), 16 | NOT_FOUND(404,"NotFound","您所访问的资源不存在"), 17 | SERVER_EPT(500,"ServerEpt","操作异常,请稍后再试"); 18 | 19 | private Integer type; 20 | private String code; 21 | private String msg; 22 | 23 | ExceptionEnum(Integer type,String code, String msg) { 24 | this.type = type; 25 | this.code = code; 26 | this.msg = msg; 27 | } 28 | 29 | public Integer getType() { 30 | return type; 31 | } 32 | public String getCode() { 33 | return code; 34 | } 35 | 36 | public String getMsg() { 37 | return msg; 38 | } 39 | 40 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/HttpResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import org.apache.commons.lang3.StringUtils; 4 | 5 | /** 6 | * 7 | * @项目名称:common 8 | * @类名称:HttpResult 9 | * @类描述:客户端:封装接收到的http请求返回结果 10 | * @创建人:wyait 11 | * @创建时间:2015年10月13日 下午2:53:09 12 | * @version:1.0.0 13 | */ 14 | public class HttpResult { 15 | 16 | // 响应状态码 17 | private Integer code; 18 | 19 | // 响应体 20 | private String body; 21 | 22 | public HttpResult() { 23 | 24 | } 25 | 26 | public HttpResult(Integer code, String body) { 27 | super(); 28 | this.code = code; 29 | if (StringUtils.isNotEmpty(body)) { 30 | this.body = body; 31 | } 32 | 33 | } 34 | 35 | public Integer getCode() { 36 | return code; 37 | } 38 | 39 | public void setCode(Integer code) { 40 | this.code = code; 41 | } 42 | 43 | public String getBody() { 44 | return body; 45 | } 46 | 47 | public void setBody(String body) { 48 | this.body = body; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return "HttpResult [code=" + code + ", body=" + body + "]"; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/IStatusMessage.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | /** 4 | * @项目名称: wyait-manage 5 | * @类名称: IStatusMessage 6 | * @类描述:响应状态信息 7 | * @创建时间: 2018年1月4日11:04:17 8 | * @version: 9 | */ 10 | public interface IStatusMessage { 11 | 12 | String getCode(); 13 | 14 | String getMessage(); 15 | 16 | public enum SystemStatus implements IStatusMessage{ 17 | 18 | SUCCESS("1000","SUCCESS"), //请求成功 19 | ERROR("1001","ERROR"), //请求失败 20 | PARAM_ERROR("1002","PARAM_ERROR"), //请求参数有误 21 | SUCCESS_MATCH("1003","SUCCESS_MATCH"), //表示成功匹配 22 | NO_LOGIN("1100","NO_LOGIN"), //未登录 23 | MANY_LOGINS("1101","MANY_LOGINS"), //多用户在线(踢出用户) 24 | UPDATE("1102","UPDATE"), //用户信息或权限已更新(退出重新登录) 25 | LOCK("1111","LOCK"); //用户已锁定 26 | private String code; 27 | private String message; 28 | 29 | private SystemStatus(String code,String message){ 30 | this.code = code; 31 | this.message = message; 32 | } 33 | 34 | public String getCode(){ 35 | return this.code; 36 | } 37 | 38 | public String getMessage(){ 39 | return this.message; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/PageDataResult.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * 7 | * @项目名称:wyait-manage 8 | * @类名称:PageDateResult 9 | * @类描述:封装DTO分页数据(记录数和所有记录) 10 | * @创建人:wyait 11 | * @创建时间:2017年12月31日14:49:34 12 | * @version:2.0.0 13 | */ 14 | public class PageDataResult { 15 | 16 | //总记录数量 17 | private Integer totals; 18 | //当前页数据列表 19 | private List list; 20 | 21 | private Integer code=200; 22 | 23 | public PageDataResult() { 24 | } 25 | 26 | public PageDataResult( Integer totals, 27 | List list) { 28 | this.totals = totals; 29 | this.list = list; 30 | } 31 | 32 | public Integer getTotals() { 33 | return totals; 34 | } 35 | 36 | public void setTotals(Integer totals) { 37 | this.totals = totals; 38 | } 39 | 40 | public List getList() { 41 | return list; 42 | } 43 | 44 | public void setList(List list) { 45 | this.list = list; 46 | } 47 | 48 | public Integer getCode() { 49 | return code; 50 | } 51 | 52 | public void setCode(Integer code) { 53 | this.code = code; 54 | } 55 | 56 | @Override public String toString() { 57 | return "PageDataResult{" + "totals=" + totals + ", list=" + list 58 | + ", code=" + code + '}'; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/Result.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | /** 4 | * 5 | * @项目名称:wyait-manage 6 | * @类名称:Result 7 | * @类描述:http请求返回的对象 8 | * @创建人:wyait 9 | * @创建时间:2018年6月5日 下午4:40:52 10 | * @version: 11 | */ 12 | public class Result { 13 | 14 | private String status;// 响应状态编码 15 | private String message;// 响应信息 16 | private T data;// 返回成功信息 17 | 18 | private Result() { 19 | // 单例 20 | } 21 | 22 | private static final Result ME = new Result(); 23 | 24 | public static Result getInstance() { 25 | return ME; 26 | } 27 | 28 | /** 29 | * 响应status和message 30 | * @param status 31 | * @param message 32 | */ 33 | public Result(String status, String message) { 34 | this.status = status; 35 | this.message = message; 36 | } 37 | 38 | /** 39 | * 响应status、message和result 40 | * @param status 41 | * @param message 42 | * @param data 43 | */ 44 | public Result(String status, String message, T data) { 45 | this.status = status; 46 | this.message = message; 47 | this.data = data; 48 | } 49 | 50 | public String getStatus() { 51 | return status; 52 | } 53 | 54 | public void setStatus(String status) { 55 | this.status = status; 56 | } 57 | 58 | public String getMessage() { 59 | return message; 60 | } 61 | 62 | public void setMessage(String message) { 63 | this.message = message; 64 | } 65 | 66 | public T getData() { 67 | return data; 68 | } 69 | 70 | public void setData(T data) { 71 | this.data = data; 72 | } 73 | 74 | @Override 75 | public String toString() { 76 | return "Result [status=" + status + ", message=" + message + ", data=" 77 | + data + "]"; 78 | } 79 | 80 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/SendMsgServer.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | 6 | /** 7 | * 发送短信验证码 8 | */ 9 | public class SendMsgServer { 10 | 11 | private static final Logger logger = LoggerFactory 12 | .getLogger(SendMsgServer.class); 13 | 14 | /** 15 | * 16 | * @描述:(公共)发送短消息: 17 | * @创建人: 18 | * @创建时间:2016年7月22日 上午10:33:20 19 | * @param messageStr 发送的消息 20 | * @param phoneNum 发送的手机号 21 | * @return 发送成功返回:ok,发送失败返回:no 22 | */ 23 | public static String SendMsg(String messageStr, String phoneNum) { 24 | //TODO 25 | logger.debug("发送信息成功"); 26 | return "ok"; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/utils/ShiroFilterUtils.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.utils; 2 | 3 | import java.io.PrintWriter; 4 | 5 | import javax.servlet.ServletRequest; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | 9 | import org.slf4j.Logger; 10 | import org.slf4j.LoggerFactory; 11 | 12 | import com.fasterxml.jackson.databind.ObjectMapper; 13 | import com.wyait.manage.entity.ResponseResult; 14 | /** 15 | * 16 | * @项目名称:wyait-manager 17 | * @类名称:ShiroFilterUtils 18 | * @类描述:shiro工具类 19 | * @创建人:wyait 20 | * @创建时间:2018年4月24日 下午5:12:04 21 | * @version: 22 | */ 23 | public class ShiroFilterUtils { 24 | private static final Logger logger = LoggerFactory 25 | .getLogger(ShiroFilterUtils.class); 26 | private final static ObjectMapper objectMapper = new ObjectMapper(); 27 | /** 28 | * 29 | * @描述:判断请求是否是ajax 30 | * @创建人:wyait 31 | * @创建时间:2018年4月24日 下午5:00:22 32 | * @param request 33 | * @return 34 | */ 35 | public static boolean isAjax(ServletRequest request){ 36 | String header = ((HttpServletRequest) request).getHeader("X-Requested-With"); 37 | if("XMLHttpRequest".equalsIgnoreCase(header)){ 38 | logger.debug("shiro工具类【wyait-manager-->ShiroFilterUtils.isAjax】当前请求,为Ajax请求"); 39 | return Boolean.TRUE; 40 | } 41 | logger.debug("shiro工具类【wyait-manager-->ShiroFilterUtils.isAjax】当前请求,非Ajax请求"); 42 | return Boolean.FALSE; 43 | } 44 | 45 | /** 46 | * 47 | * @描述:response输出json 48 | * @创建人:wyait 49 | * @创建时间:2018年4月24日 下午5:14:22 50 | * @param response 51 | * @param result 52 | */ 53 | public static void out(HttpServletResponse response, ResponseResult result){ 54 | PrintWriter out = null; 55 | try { 56 | response.setCharacterEncoding("UTF-8");//设置编码 57 | response.setContentType("application/json");//设置返回类型 58 | out = response.getWriter(); 59 | out.println(objectMapper.writeValueAsString(result));//输出 60 | logger.error("用户在线数量限制【wyait-manage-->ShiroFilterUtils.out】响应json信息成功"); 61 | } catch (Exception e) { 62 | logger.error("用户在线数量限制【wyait-manage-->ShiroFilterUtils.out】响应json信息出错", e); 63 | }finally{ 64 | if(null != out){ 65 | out.flush(); 66 | out.close(); 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/web/IndexController.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.web; 2 | 3 | import java.io.UnsupportedEncodingException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | import org.slf4j.Logger; 8 | import org.slf4j.LoggerFactory; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.PathVariable; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | 13 | /** 14 | * @项目名称:lyd-channel 15 | * @包名:com.lyd.channel.web 16 | * @类描述: 17 | * @创建人:wyait 18 | * @创建时间:2017-11-28 18:52 19 | * @version:V1.0 20 | */ 21 | @Controller 22 | @RequestMapping("/") 23 | public class IndexController { 24 | private static final Logger logger = LoggerFactory 25 | .getLogger(IndexController.class); 26 | 27 | @RequestMapping("/index") 28 | public String index() { 29 | logger.debug("-------------index------------"); 30 | return "index"; 31 | } 32 | 33 | @RequestMapping("/home") 34 | public String toHome() { 35 | logger.debug("===111-------------home------------"); 36 | return "home"; 37 | } 38 | 39 | public static void main(String[] args) { 40 | // 年月日文件夹 41 | /*SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); 42 | String basedir = sdf.format(new Date()); 43 | System.out.println(basedir);*/ 44 | // 叶继å 45 | 46 | /* 47 | * String str=RPCMD5.TwoMD5("_ja2011mi_"+"1"); 48 | * 49 | * System.out.println("str=="+str); å”¯çˆ±ä½ çš„ç¬‘ 3个臭çšè›‹ 50 | * wkk王凯凯 51 | */ 52 | String uniqueFlag = ""; 53 | try { 54 | uniqueFlag = new String("王炎".getBytes("ISO-8859-1"), 55 | "UTF-8"); 56 | } catch (UnsupportedEncodingException e) { 57 | // TODO Auto-generated catch block 58 | e.printStackTrace(); 59 | } 60 | 61 | System.out.println("uniqueFlag==" + uniqueFlag); 62 | 63 | } 64 | 65 | @RequestMapping("/login") 66 | public String toLogin() { 67 | logger.debug("===111-------------login------------"); 68 | return "login"; 69 | } 70 | 71 | @RequestMapping("/{page}") 72 | public String toPage(@PathVariable("page") String page) { 73 | logger.debug("-------------toindex------------" + page); 74 | return page; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /wyait-manage/src/main/java/com/wyait/manage/web/error/IndexErrorController.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage.web.error; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.ResponseBody; 6 | /** 7 | * 8 | * @项目名称:wyait-manage 9 | * @类名称:IndexErrorController 10 | * @类描述:手动error异常 11 | * @创建人:wyait 12 | * @创建时间:2018年6月6日 下午5:29:27 13 | * @version: 14 | */ 15 | @Controller 16 | @RequestMapping("/error") 17 | public class IndexErrorController { 18 | /** 19 | * 20 | * @描述:普通请求异常 21 | * @创建人:wyait 22 | * @创建时间:2018年5月24日 下午5:30:50 23 | */ 24 | @RequestMapping("getError") 25 | public void toError(){ 26 | System.out.println(1/0); 27 | } 28 | /** 29 | * 30 | * @描述:异步异常 31 | * @创建人:wyait 32 | * @创建时间:2018年5月24日 下午5:30:39 33 | */ 34 | @RequestMapping("ajaxError") 35 | @ResponseBody 36 | public String ajaxError(){ 37 | System.out.println(1/0); 38 | return "异步请求成功!"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/application-prod.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/application-prod.properties -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/application-test.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/application-test.properties -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #关闭thymeleaf缓存 2 | spring.thymeleaf.cache=false 3 | # 加载指定配置文件 4 | spring.profiles.active=dev -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/mapper/RolePermissionMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | delete from role_permission 10 | where permit_id = #{permitId,jdbcType=INTEGER} 11 | and role_id = #{roleId,jdbcType=INTEGER} 12 | 13 | 14 | insert into role_permission (permit_id, role_id) 15 | values (#{permitId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}) 16 | 17 | 18 | insert into role_permission 19 | 20 | 21 | permit_id, 22 | 23 | 24 | role_id, 25 | 26 | 27 | 28 | 29 | #{permitId,jdbcType=INTEGER}, 30 | 31 | 32 | #{roleId,jdbcType=INTEGER}, 33 | 34 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/mapper/UserRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | delete from user_role 10 | where user_id = #{userId,jdbcType=INTEGER} 11 | and role_id = #{roleId,jdbcType=INTEGER} 12 | 13 | 14 | insert into user_role (user_id, role_id) 15 | values (#{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}) 16 | 17 | 18 | insert into user_role 19 | 20 | 21 | user_id, 22 | 23 | 24 | role_id, 25 | 26 | 27 | 28 | 29 | #{userId,jdbcType=INTEGER}, 30 | 31 | 32 | #{roleId,jdbcType=INTEGER}, 33 | 34 | 35 | 36 | 37 | 38 | 43 | 44 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/0.jpg -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/images/bk.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/images/bk.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/images/bkLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/images/bkLogo.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/images/login.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/images/logo.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/images/logoa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/images/logoa.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/auth/roleList.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 角色列表 3 | */ 4 | $(function() { 5 | layui.use('table', function(){ 6 | var table = layui.table; 7 | var tbody=$("#tbody"); 8 | $.get("/auth/getRoleList",function(data){ 9 | if(data!=null){ 10 | tbody.empty(); 11 | $.each(data, function (index, item) { 12 | var td=$(""+item.code+"" 13 | +""+item.roleName+"" 14 | +""+item.descpt+"" 15 | +""+DateUtils.formatDate(item.insertTime)+"" 16 | +"" 17 | +"" 18 | +""); 19 | tbody.append(td); 20 | }); 21 | } 22 | }); 23 | }); 24 | }); 25 | 26 | function updateRole(id) { 27 | //isNaN是数字返回false 28 | if(id!=null && !isNaN(id)){ 29 | window.location.href="/auth/updateRole/"+id+"?callback="+getCallback(); 30 | }else{ 31 | layer.alert("请求参数有误,请您稍后再试"); 32 | } 33 | } 34 | function delRole(id) { 35 | if(null!=id){ 36 | layer.confirm('您确定要删除'+name+'角色吗?', { 37 | btn: ['确认','返回'] //按钮 38 | }, function(){ 39 | $.post("/auth/delRole",{"id":id},function(data){ 40 | if(data=="ok"){ 41 | //回调弹框 42 | layer.alert("删除成功!",function(){ 43 | layer.closeAll(); 44 | //加载load方法 45 | load();//自定义 46 | }); 47 | }else{ 48 | layer.alert(data);//弹出错误提示 49 | } 50 | }); 51 | }, function(){ 52 | layer.closeAll(); 53 | }); 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/auth/roleManage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 角色管理 3 | */ 4 | $(function() { 5 | $("#roleListLi").click(function () { 6 | $("#setRoleLi").removeClass("layui-this"); 7 | $("#setRoleDiv").removeClass("layui-show"); 8 | 9 | $("#updateRoleLi").css("display","none"); 10 | $("#updateRoleDiv").css("display","none"); 11 | $("#roleListLi").addClass("layui-this"); 12 | $("#roleListDiv").addClass("layui-show"); 13 | }); 14 | $("#setRoleLi").click(function () { 15 | $("#roleListLi").removeClass("layui-this"); 16 | $("#roleListDiv").removeClass("layui-show"); 17 | 18 | $("#updateRoleLi").css("display","none"); 19 | $("#updateRoleDiv").css("display","none"); 20 | $("#setRoleLi").addClass("layui-this"); 21 | $("#setRoleDiv").addClass("layui-show"); 22 | }); 23 | if(flag=="updateRole"){ 24 | $("#roleListLi").removeClass("layui-this"); 25 | $("#setRoleLi").removeClass("layui-this"); 26 | $("#roleListDiv").removeClass("layui-show"); 27 | $("#setRoleDiv").removeClass("layui-show"); 28 | 29 | $("#updateRoleLi").addClass("layui-this"); 30 | $("#updateRoleDiv").addClass("layui-show"); 31 | $("#updateRoleLi").css("display","inline-block"); 32 | $("#updateRoleDiv").css("display","inline-block"); 33 | } 34 | }); 35 | 36 | /** 37 | * 进入角色管理界面 38 | */ 39 | function load(){ 40 | window.location.href="/auth/roleManage"; 41 | } -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/auth/roleUpdate.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 更新角色 3 | */ 4 | $(function() { 5 | 6 | if(flag=="updateRole"){ 7 | // zTree 的参数配置 8 | var setting = { 9 | check: { 10 | enable: true, 11 | chkboxType:{ "Y":"p", "N":"s"} 12 | }, 13 | data: { 14 | simpleData: { 15 | enable: true 16 | } 17 | } 18 | }; 19 | $.fn.zTree.init($("#treeDemo"), setting, permIdList); 20 | } 21 | 22 | layui.use(['form' ,'layer'], function(){ 23 | var form = layui.form; 24 | var layer=layui.layer; 25 | 26 | //监听提交 27 | form.on('submit(updateRoleSumbit)', function(data){ 28 | //获取选中的权限 29 | var treeObj = $.fn.zTree.getZTreeObj("treeDemo"); 30 | var nodes = treeObj.getCheckedNodes(true); 31 | //选中的复选框 32 | var nodeIds =new Array(); 33 | for (var i = 0; i < nodes.length; i++) { 34 | nodeIds.push(nodes[i].id); 35 | } 36 | //校验是否授权 37 | var permList = nodeIds.join(","); 38 | // console.log("permList:"+permList) 39 | if(permList==null || permList==''){ 40 | layer.alert("请给该角色添加权限菜单!") 41 | return false; 42 | } 43 | $("#rolePermIds").val(permList); 44 | $.ajax({ 45 | type: "POST", 46 | data: $("#updateRoleForm").serialize(), 47 | url: "/auth/setRole", 48 | success: function (data) { 49 | if (data == "ok") { 50 | layer.alert("操作成功",function(){ 51 | layer.closeAll(); 52 | load(); 53 | }); 54 | } else { 55 | layer.alert(data); 56 | } 57 | }, 58 | error: function (data) { 59 | layer.alert("操作请求错误,请您稍后再试"); 60 | } 61 | }); 62 | return false; 63 | }); 64 | form.render(); 65 | }); 66 | }); 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/error.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ajax异常 3 | * */ 4 | function ajaxError(){ 5 | /*$.get("/error/ajaxError",function(data,status){ 6 | console.log("status:"+status); 7 | console.log("data:"+data); 8 | layer.alert(data); 9 | });*/ 10 | 11 | $.ajax({ 12 | url: "/error/ajaxError", 13 | data:"", 14 | type: "GET", 15 | success:function(data){ 16 | //异常过滤处理 17 | if(isError(data)){ 18 | alert(data); 19 | } 20 | }, 21 | error:function(e){ 22 | //通过error控制请求失败的情况 23 | console.log("e:"+e); 24 | } 25 | }); 26 | } 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_close.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/1_open.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/2.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/3.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/4.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/5.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/6.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/7.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/8.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/diy/9.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/line_conn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/line_conn.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/css/zTreeStyle/img/zTreeStandard.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/1_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/1_close.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/1_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/1_open.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/2.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/3.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/4.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/5.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/6.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/7.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/8.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/diy/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/diy/9.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/line_conn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/line_conn.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/zTreeStandard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/zTreeStandard.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/js/ztree/img/zTreeStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/js/ztree/img/zTreeStandard.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/0.jpg -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
    1. '+o.replace(/[\r\t\n]+/g,"
    2. ")+"
    "),c.find(">.layui-code-h3")[0]||c.prepend('

    '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

    ");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.3 MIT License By http://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/treegrid/img/collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/treegrid/img/collapse.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/treegrid/img/expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/treegrid/img/expand.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/treegrid/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/treegrid/img/loading.gif -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/static/treegrid/img/wrong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wyait/manage/26ea50fbe36fc26bebac952fc7194b33f0840fdc/wyait-manage/src/main/resources/static/treegrid/img/wrong.png -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 403友情提示 6 | 7 | 8 |

    没有权限,请联系服务人员(403)

    9 | 10 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/auth/role.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
    5 | 6 |
    7 | 8 |
    9 |
    10 | 11 |
    12 | 13 |
    14 |
    15 |
    16 |
    17 |
    18 | 19 |
    20 | 21 |
    22 |
    23 |
    24 | 25 |
    26 | 27 |
    28 | 29 |
    30 |
    31 |
    32 | 33 |
    34 |
      35 |
      36 |
      37 | 38 |
      39 |
      40 | 41 | 42 |
      43 |
      44 |
      45 | 46 | 47 |
      48 | 49 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/auth/roleList.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
      5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
      角色编号角色名称角色描述添加时间操作
      19 | 20 | 21 | 22 |
      23 | 24 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/auth/roleManage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
      8 | 9 |
      10 |
      11 |
      12 |
        13 |
      • 角色列表
      • 14 |
      • 开通角色
      • 15 | 16 |
      17 |
      18 |
      19 |
      20 |
      21 |
      22 |
      23 |
      24 | 27 |
      28 |
      29 |
      30 | 31 | 32 |
      33 | 34 | 37 |
      38 | 39 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

      出错了

      9 |

      10 | 11 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/error/403.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 403友情提示 6 | 7 | 8 |

      没有权限,请联系服务人员(403)

      9 | 10 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/error/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404友情提示 6 | 7 | 8 |

      访问的资源未找到(404)

      9 | 10 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/error/501.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 500友情提示 6 | 7 | 8 |

      请求出错,请您稍后再试(500)

      9 | 10 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/fragments/content.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
      6 |
      7 | 8 |
      内容主体区域 9 |

      10 | 渠道 11 |
      12 |
      13 |
      14 | 15 | 17 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
      8 | 9 |
      10 | 11 | 12 | 13 | 14 |
      15 |
      16 |
      17 |
      18 |   19 |

      ,欢迎您登录 20 | 后台管理系统

      21 |

      博客链接:http://blog.51cto.com/wyait 22 |

      23 |

      24 | 普通请求异常: 25 | 点击 26 |

      27 |

      28 | ajax异步请求异常: 29 | 点击 30 |

      31 |
      32 |
      33 |
      34 |
      35 | 36 | 37 |
      38 |
      39 | 40 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | jQuery注册登录改密表单代码 - 站长素材 7 | 8 | 9 | 10 | 11 | 12 |
      13 |
      14 |
        15 |
      • 登录
      • 16 |
      • 注册
      • 17 |
      • 忘记密码
      • 18 |
      19 | 20 | 21 | 22 | 23 | 24 |
      25 |
      26 | 27 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/index2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | wyait 管理 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
      14 | 你也可以单独打开后台布局的例子: 15 | 单独打开 16 |
      17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 后台管理系统 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/toLogin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /wyait-manage/src/main/resources/templates/treetable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
      Parenttitle
      Childdesc
      Parenttitle
      Childdesc
      30 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /wyait-manage/src/test/java/com/wyait/manage/WyaitManageApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.wyait.manage; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class WyaitManageApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | --------------------------------------------------------------------------------