├── .DS_Store ├── .classpath ├── .gitignore ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── README.md ├── WebContent ├── .DS_Store ├── 404.html ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ ├── .DS_Store │ ├── applicationContext.xml │ ├── lib │ │ ├── ant-1.9.6.jar │ │ ├── ant-launcher-1.9.6.jar │ │ ├── aopalliance.jar │ │ ├── asm-5.0.4.jar │ │ ├── aspectjrt.jar │ │ ├── aspectjtools.jar │ │ ├── aspectjweaver.jar │ │ ├── c3p0-0.9.2.1.jar │ │ ├── cglib-3.2.2.jar │ │ ├── commons-fileupload-1.3.1.jar │ │ ├── commons-io-2.4.jar │ │ ├── commons-logging-1.2.jar │ │ ├── hibernate-c3p0-4.3.5.Final.jar │ │ ├── javassist-3.20.0-GA.jar │ │ ├── javax.servlet.jsp.jstl-1.2.1.jar │ │ ├── javax.servlet.jsp.jstl-api-1.2.1.jar │ │ ├── log4j-1.2.17.jar │ │ ├── log4j-api-2.3.jar │ │ ├── log4j-core-2.3.jar │ │ ├── mchange-commons-java-0.2.3.4.jar │ │ ├── mybatis-3.4.1.jar │ │ ├── mybatis-spring-1.3.0.jar │ │ ├── mysql-connector-java-5.1.30.jar │ │ ├── ognl-3.1.8.jar │ │ ├── org.aspectj.matcher.jar │ │ ├── slf4j-api-1.7.21.jar │ │ ├── slf4j-log4j12-1.7.21.jar │ │ ├── spring-aop-4.2.0.RELEASE.jar │ │ ├── spring-aspects-4.2.0.RELEASE.jar │ │ ├── spring-beans-4.2.0.RELEASE.jar │ │ ├── spring-context-4.2.0.RELEASE.jar │ │ ├── spring-context-support-4.2.0.RELEASE.jar │ │ ├── spring-core-4.2.0.RELEASE.jar │ │ ├── spring-expression-4.2.0.RELEASE.jar │ │ ├── spring-instrument-4.2.0.RELEASE.jar │ │ ├── spring-instrument-tomcat-4.2.0.RELEASE.jar │ │ ├── spring-jdbc-4.2.0.RELEASE.jar │ │ ├── spring-jms-4.2.0.RELEASE.jar │ │ ├── spring-messaging-4.2.0.RELEASE.jar │ │ ├── spring-orm-4.2.0.RELEASE.jar │ │ ├── spring-oxm-4.2.0.RELEASE.jar │ │ ├── spring-test-4.2.0.RELEASE.jar │ │ ├── spring-tx-4.2.0.RELEASE.jar │ │ ├── spring-web-4.2.0.RELEASE.jar │ │ ├── spring-webmvc-4.2.0.RELEASE.jar │ │ ├── spring-webmvc-portlet-4.2.0.RELEASE.jar │ │ └── spring-websocket-4.2.0.RELEASE.jar │ ├── page │ │ ├── dept │ │ │ ├── add.jsp │ │ │ └── list.jsp │ │ ├── document │ │ │ ├── add.jsp │ │ │ └── list.jsp │ │ ├── employee │ │ │ ├── add.jsp │ │ │ └── list.jsp │ │ ├── index.jsp │ │ ├── indexcustomer.jsp │ │ ├── job │ │ │ ├── add.jsp │ │ │ └── list.jsp │ │ ├── loginForm.jsp │ │ ├── notice │ │ │ ├── add.jsp │ │ │ └── list.jsp │ │ ├── taglib.jsp │ │ ├── user │ │ │ ├── add.jsp │ │ │ ├── list.jsp │ │ │ └── myupdate.jsp │ │ └── welcome.jsp │ ├── springmvc-config.xml │ └── web.xml └── public │ ├── .DS_Store │ ├── css │ ├── font.css │ └── xadmin.css │ ├── fonts │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff │ ├── images │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── aiwrap.png │ ├── bg.png │ └── s.png │ ├── js │ ├── xadmin.js │ └── xcity.js │ ├── lib │ └── layui │ │ ├── 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 │ └── logo.ico ├── personnel.sql └── src ├── com └── rain │ ├── controller │ ├── CommonController.java │ ├── DeptController.java │ ├── DocumentController.java │ ├── EmployeeController.java │ ├── JobController.java │ ├── NoticeController.java │ └── UserController.java │ ├── dao │ ├── DeptDao.java │ ├── DocumentDao.java │ ├── EmployeeDao.java │ ├── JobDao.java │ ├── NoticeDao.java │ ├── UserDao.java │ └── provider │ │ ├── DeptDynaSqlProvider.java │ │ ├── DocumentDynaSqlProvider.java │ │ ├── EmployeeDynaSqlProvider.java │ │ ├── JobDynaSqlProvider.java │ │ ├── NoticeDynaSqlProvider.java │ │ └── UserDynaSqlProvider.java │ ├── domain │ ├── Dept.java │ ├── Document.java │ ├── Employee.java │ ├── Job.java │ ├── Notice.java │ └── User.java │ ├── interceptor │ └── AuthorizedInterceptor.java │ ├── service │ ├── RainService.java │ └── impl │ │ └── RainServiceImpl.java │ └── util │ └── common │ └── Constants.java └── db.properties /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | personnel 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jem.workbench.JavaEMFNature 31 | org.eclipse.wst.common.modulecore.ModuleCoreNature 32 | org.eclipse.wst.common.project.facet.core.nature 33 | org.eclipse.jdt.core.javanature 34 | org.eclipse.wst.jsdt.core.jsNature 35 | 36 | 37 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//WebContent/WEB-INF/page/dept/add.jsp=UTF-8 3 | encoding//WebContent/WEB-INF/page/dept/list.jsp=UTF-8 4 | encoding//WebContent/WEB-INF/page/index.jsp=UTF-8 5 | encoding//WebContent/WEB-INF/page/loginForm.jsp=UTF-8 6 | encoding//WebContent/WEB-INF/page/welcome.jsp=UTF-8 7 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 人事管理系统 2 | 3 | ## 因为同学答辩已经完成,项目暂时不会再做更新,有需要的朋友可以自行完善。 4 | 5 | ## 部署说明: 6 | ### 项目启动后,在浏览器中访问地址:http://127.0.0.1:8080/personnel/ 7 | 2019-05-26 8 | 9 | ## 由于很多同学反映部署有问题,所以我录了一个视频来演示一下,[人事管理系统部署视频链接:https://www.bilibili.com/video/av53594307/](https://www.bilibili.com/video/av53594307/) 10 | 11 | 基础环境:JDK8,Tomcat8,MySQL5.7 12 | 报错可以查看我的教程:[我的教程](https://github.com/rainweb521/My-tutorial) 13 | 2019年4月27日 14 | 15 | ## 加入了普通用户的功能,在登陆时可以选择,可以查询职位,部门,公告,文档,但不能对其他的进行修改。 16 | ![](WebContent/public/images/s.png) 17 | 2019年4月4日 18 | ## 有需要做毕设或购买其他成品的可以加QQ联系:641351484 19 | 20 | ## 这个项目还是比较完整和基础的,适合改一些毕设,因为没有用到Maven,都是基础的框架,代码结构和逻辑比较简单,之前写的还有些bug,后续我会继续修改的,希望能帮助到大家。 21 | 22 | - - - - 23 | 24 | ## 使用JavaEE开发,基于SpringMVC+Mybatis框架,该项目包含了用户管理、部门管理、职位管理、员工管理、公告管理、下载中心等多个模块,页面使用JQuery框架完成动态功能,用户管理、部门管理等模块包含了项目开发中常用的增删改查动作,下载中心包含了 Spring MVC的文件上传、下载等功能 25 | 26 | ## 系统功能介绍 27 | 用户管理的功能包括:添加用户,用户可以为管理员或者普通用户;查询用户,可以查询所有用户或根据用户名和用户状态进行模糊查询,删除用户,修改用户。 28 | 部门管理的功能包括:添加部门,查询部门,可以查询所有部门或根据部门名称进行模糊查询,删除部门,修改部门 29 | 职位管理的功能包括:添加职位,查询职位,可以查询所有职位或根据职位名称进行模糊查询,删除职位,修改职位 30 | 员工管理的功能包括:添加员工,查询员工,可以查询所有员工或根据员工姓名,身份证号,手机号,性别,职位,部门进行模查询,删除员工,修改员工。 31 | 公告管理的功能包括:添加公告,查询公告,可以查询所有公告或根据公告名称,公告内容进行模糊查询,删除公告,修改公告。 32 | 下载中心的功能包括:上传文件,查淘文件,可以查询所有文件或根据文件标题进行模糊查询,预览文件内容:删除文件,下载文件。 33 | ![](WebContent/public/images/4.png) 34 | ![](WebContent/public/images/3.png) 35 | 36 | ![](WebContent/public/images/2.png) 37 | 38 | ![](WebContent/public/images/1.png) 39 | -------------------------------------------------------------------------------- /WebContent/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/.DS_Store -------------------------------------------------------------------------------- /WebContent/404.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | ERROR 404 - Not Found! 6 | 7 | 8 | 45 | 46 | 47 |
48 | 51 |
52 |

The following error occurred:

53 |

The requested URL was not found on this server.

54 |

Please check the URL or contact the webmaster.

55 |
56 | 59 |
60 | 61 | 62 | -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/.DS_Store -------------------------------------------------------------------------------- /WebContent/WEB-INF/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ant-1.9.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/ant-1.9.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ant-launcher-1.9.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/ant-launcher-1.9.6.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aopalliance.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/aopalliance.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/asm-5.0.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/asm-5.0.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjrt.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/aspectjrt.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjtools.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/aspectjtools.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/aspectjweaver.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/aspectjweaver.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/c3p0-0.9.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/c3p0-0.9.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/cglib-3.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/cglib-3.2.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-fileupload-1.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/commons-fileupload-1.3.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-io-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/commons-io-2.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/hibernate-c3p0-4.3.5.Final.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/hibernate-c3p0-4.3.5.Final.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javassist-3.20.0-GA.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/javassist-3.20.0-GA.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-1.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/javax.servlet.jsp.jstl-api-1.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-1.2.17.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/log4j-1.2.17.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-api-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/log4j-api-2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/log4j-core-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/log4j-core-2.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mchange-commons-java-0.2.3.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/mchange-commons-java-0.2.3.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-3.4.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/mybatis-3.4.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mybatis-spring-1.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/mybatis-spring-1.3.0.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-5.1.30.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/mysql-connector-java-5.1.30.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/ognl-3.1.8.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/ognl-3.1.8.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/org.aspectj.matcher.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/org.aspectj.matcher.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-api-1.7.21.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/slf4j-api-1.7.21.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/slf4j-log4j12-1.7.21.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/slf4j-log4j12-1.7.21.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-aop-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-aop-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-aspects-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-aspects-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-beans-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-beans-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-context-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-context-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-context-support-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-context-support-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-core-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-core-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-expression-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-expression-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-instrument-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-instrument-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-instrument-tomcat-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-instrument-tomcat-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-jdbc-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-jdbc-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-jms-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-jms-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-messaging-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-messaging-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-orm-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-orm-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-oxm-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-oxm-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-test-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-test-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-tx-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-tx-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-web-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-web-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-webmvc-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-webmvc-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-webmvc-portlet-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-webmvc-portlet-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/spring-websocket-4.2.0.RELEASE.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/WEB-INF/lib/spring-websocket-4.2.0.RELEASE.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/dept/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 |
40 | 43 |
44 | 46 |
47 | 48 |
49 |
50 | 52 | 53 | 54 |
55 |
56 |
57 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/document/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 |
40 | 43 |
44 | 46 |
47 | 48 |
49 |
50 | 53 |
54 | 55 |
56 | 57 |
58 |
59 | 61 | 62 | 63 |
64 |
65 |
66 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/indexcustomer.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 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 | 43 | 44 |
45 | 46 | 47 | 48 |
49 |
50 | 141 |
142 |
143 | 144 | 145 | 146 |
147 |
148 |
    149 |
  • 我的桌面
  • 150 |
151 |
152 |
153 | 154 |
155 |
156 |
157 |
158 |
159 | 160 | 161 | 162 | 165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/job/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 |
40 | 43 |
44 | 46 |
47 | 48 |
49 |
50 | 52 | 53 | 54 |
55 |
56 |
57 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/job/list.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 职位信息 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 | 28 | 首页 29 | 30 | 职位信息 31 | 32 | 33 | 34 |
35 |
36 |
37 |
38 | 40 | 41 | 42 |
43 |
44 | <%-- 45 | 46 | 47 | 共有数据:88 条 48 | --%> 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 68 | 69 | 70 | 71 | 72 | 74 | 75 | 76 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 |
55 |
56 |
ID职位信息操作
66 |
67 |
${dept.id}${dept.name }${dept.remark } 77 | 80 | <%-- --%> 81 | 82 | 83 | 84 | 85 | 86 | 87 |
100 | 110 | 111 |
112 | 175 | 181 | 182 | 183 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/loginForm.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 4 | 5 | 6 | 7 | 8 | 9 | 后台登录-企业OA办公系统 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/notice/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 | 40 |
41 | 44 |
45 | 46 |
47 |
48 |
49 | 51 | 52 | 53 |
54 |
55 |
56 | 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/taglib.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/user/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 |
40 | 43 |
44 | 46 |
47 | 48 |
49 |
50 | 53 |
54 | 56 |
57 | 58 |
59 | 60 |
61 | 63 | 64 | 65 |
66 |
67 |
68 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/page/user/myupdate.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 8 | 欢迎页面-X-admin2.0 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 | 29 |
30 | 33 |
34 | 36 |
37 | 38 |
39 |
40 | 43 |
44 | 46 |
47 | 48 |
49 |
50 | 53 |
54 | 56 |
57 | 58 |
59 | 60 |
61 | 63 | 64 | 65 |
66 |
67 |
68 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/springmvc-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | /WEB-INF/page/ 35 | 36 | 37 | 38 | .jsp 39 | 40 | 41 | 43 | 44 | 45 | 10485760 46 | 47 | 48 | 49 | UTF-8 50 | 51 | 52 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | org.springframework.web.context.ContextLoaderListener 11 | 12 | 13 | 14 | contextConfigLocation 15 | /WEB-INF/applicationContext*.xml 16 | 17 | 18 | 19 | 20 | springmvc 21 | 22 | org.springframework.web.servlet.DispatcherServlet 23 | 24 | 25 | contextConfigLocation 26 | /WEB-INF/springmvc-config.xml 27 | 28 | 1 29 | 30 | 31 | 32 | 33 | springmvc 34 | / 35 | 36 | 37 | 38 | 39 | characterEncodingFilter 40 | org.springframework.web.filter.CharacterEncodingFilter 41 | 42 | encoding 43 | UTF-8 44 | 45 | 46 | 47 | characterEncodingFilter 48 | /* 49 | 50 | 51 | 52 | 53 | 54 | *.jsp 55 | 56 | false 57 | 58 | true 59 | 60 | /WEB-INF/page/taglib.jsp 61 | 62 | 63 | 64 | 65 | 404 66 | /404.html 67 | 68 | 69 | 70 | index.jsp 71 | 72 | 73 | -------------------------------------------------------------------------------- /WebContent/public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/.DS_Store -------------------------------------------------------------------------------- /WebContent/public/css/font.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'iconfont'; 3 | src: url('../fonts/iconfont.eot'); 4 | src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), 5 | url('../fonts/iconfont.woff') format('woff'), 6 | url('../fonts/iconfont.ttf') format('truetype'), 7 | url('../fonts/iconfont.svg#iconfont') format('svg'); 8 | } 9 | .iconfont{ 10 | font-family:"iconfont" !important; 11 | font-size:16px;font-style:normal; 12 | -webkit-font-smoothing: antialiased; 13 | -webkit-text-stroke-width: 0.2px; 14 | -moz-osx-font-smoothing: grayscale; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /WebContent/public/fonts/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/fonts/iconfont.eot -------------------------------------------------------------------------------- /WebContent/public/fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/fonts/iconfont.ttf -------------------------------------------------------------------------------- /WebContent/public/fonts/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/fonts/iconfont.woff -------------------------------------------------------------------------------- /WebContent/public/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/1.png -------------------------------------------------------------------------------- /WebContent/public/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/2.png -------------------------------------------------------------------------------- /WebContent/public/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/3.png -------------------------------------------------------------------------------- /WebContent/public/images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/4.png -------------------------------------------------------------------------------- /WebContent/public/images/aiwrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/aiwrap.png -------------------------------------------------------------------------------- /WebContent/public/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/bg.png -------------------------------------------------------------------------------- /WebContent/public/images/s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/images/s.png -------------------------------------------------------------------------------- /WebContent/public/js/xadmin.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | //加载弹出层 3 | layui.use(['form','element'], 4 | function() { 5 | layer = layui.layer; 6 | element = layui.element; 7 | }); 8 | 9 | //触发事件 10 | var tab = { 11 | tabAdd: function(title,url,id){ 12 | //新增一个Tab项 13 | element.tabAdd('xbs_tab', { 14 | title: title 15 | ,content: '' 16 | ,id: id 17 | }) 18 | } 19 | ,tabDelete: function(othis){ 20 | //删除指定Tab项 21 | element.tabDelete('xbs_tab', '44'); //删除:“商品管理” 22 | 23 | 24 | othis.addClass('layui-btn-disabled'); 25 | } 26 | ,tabChange: function(id){ 27 | //切换到指定Tab项 28 | element.tabChange('xbs_tab', id); //切换到:用户管理 29 | } 30 | }; 31 | 32 | 33 | tableCheck = { 34 | init:function () { 35 | $(".layui-form-checkbox").click(function(event) { 36 | if($(this).hasClass('layui-form-checked')){ 37 | $(this).removeClass('layui-form-checked'); 38 | if($(this).hasClass('header')){ 39 | $(".layui-form-checkbox").removeClass('layui-form-checked'); 40 | } 41 | }else{ 42 | $(this).addClass('layui-form-checked'); 43 | if($(this).hasClass('header')){ 44 | $(".layui-form-checkbox").addClass('layui-form-checked'); 45 | } 46 | } 47 | 48 | }); 49 | }, 50 | getData:function () { 51 | var obj = $(".layui-form-checked").not('.header'); 52 | var arr=[]; 53 | obj.each(function(index, el) { 54 | arr.push(obj.eq(index).attr('data-id')); 55 | }); 56 | return arr; 57 | } 58 | } 59 | 60 | //开启表格多选 61 | tableCheck.init(); 62 | 63 | 64 | $('.container .left_open i').click(function(event) { 65 | if($('.left-nav').css('left')=='0px'){ 66 | $('.left-nav').animate({left: '-221px'}, 100); 67 | $('.page-content').animate({left: '0px'}, 100); 68 | $('.page-content-bg').hide(); 69 | }else{ 70 | $('.left-nav').animate({left: '0px'}, 100); 71 | $('.page-content').animate({left: '221px'}, 100); 72 | if($(window).width()<768){ 73 | $('.page-content-bg').show(); 74 | } 75 | } 76 | 77 | }); 78 | 79 | $('.page-content-bg').click(function(event) { 80 | $('.left-nav').animate({left: '-221px'}, 100); 81 | $('.page-content').animate({left: '0px'}, 100); 82 | $(this).hide(); 83 | }); 84 | 85 | $('.layui-tab-close').click(function(event) { 86 | $('.layui-tab-title li').eq(0).find('i').remove(); 87 | }); 88 | 89 | $("tbody.x-cate tr[fid!='0']").hide(); 90 | // 栏目多级显示效果 91 | $('.x-show').click(function () { 92 | if($(this).attr('status')=='true'){ 93 | $(this).html(''); 94 | $(this).attr('status','false'); 95 | cateId = $(this).parents('tr').attr('cate-id'); 96 | $("tbody tr[fid="+cateId+"]").show(); 97 | }else{ 98 | cateIds = []; 99 | $(this).html(''); 100 | $(this).attr('status','true'); 101 | cateId = $(this).parents('tr').attr('cate-id'); 102 | getCateId(cateId); 103 | for (var i in cateIds) { 104 | $("tbody tr[cate-id="+cateIds[i]+"]").hide().find('.x-show').html('').attr('status','true'); 105 | } 106 | } 107 | }) 108 | 109 | //左侧菜单效果 110 | // $('#content').bind("click",function(event){ 111 | $('.left-nav #nav li').click(function (event) { 112 | 113 | if($(this).children('.sub-menu').length){ 114 | if($(this).hasClass('open')){ 115 | $(this).removeClass('open'); 116 | $(this).find('.nav_right').html(''); 117 | $(this).children('.sub-menu').stop().slideUp(); 118 | $(this).siblings().children('.sub-menu').slideUp(); 119 | }else{ 120 | $(this).addClass('open'); 121 | $(this).children('a').find('.nav_right').html(''); 122 | $(this).children('.sub-menu').stop().slideDown(); 123 | $(this).siblings().children('.sub-menu').stop().slideUp(); 124 | $(this).siblings().find('.nav_right').html(''); 125 | $(this).siblings().removeClass('open'); 126 | } 127 | }else{ 128 | 129 | var url = $(this).children('a').attr('_href'); 130 | var title = $(this).find('cite').html(); 131 | var index = $('.left-nav #nav li').index($(this)); 132 | 133 | for (var i = 0; i <$('.x-iframe').length; i++) { 134 | if($('.x-iframe').eq(i).attr('tab-id')==index+1){ 135 | tab.tabChange(index+1); 136 | event.stopPropagation(); 137 | return; 138 | } 139 | }; 140 | 141 | tab.tabAdd(title,url,index+1); 142 | tab.tabChange(index+1); 143 | } 144 | 145 | event.stopPropagation(); 146 | 147 | }) 148 | 149 | }) 150 | var cateIds = []; 151 | function getCateId(cateId) { 152 | 153 | $("tbody tr[fid="+cateId+"]").each(function(index, el) { 154 | id = $(el).attr('cate-id'); 155 | cateIds.push(id); 156 | getCateId(id); 157 | }); 158 | } 159 | 160 | /*弹出层*/ 161 | /* 162 | 参数解释: 163 | title 标题 164 | url 请求的url 165 | id 需要操作的数据id 166 | w 弹出层宽度(缺省调默认值) 167 | h 弹出层高度(缺省调默认值) 168 | */ 169 | function x_admin_show(title,url,w,h){ 170 | if (title == null || title == '') { 171 | title=false; 172 | }; 173 | if (url == null || url == '') { 174 | url="404.html"; 175 | }; 176 | if (w == null || w == '') { 177 | w=($(window).width()*0.5); 178 | }; 179 | if (h == null || h == '') { 180 | h=($(window).height() - 50); 181 | }; 182 | layer.open({ 183 | type: 2, 184 | area: [w+'px', h +'px'], 185 | fix: false, //不固定 186 | maxmin: true, 187 | shadeClose: true, 188 | shade:0.4, 189 | title: title, 190 | content: url 191 | }); 192 | } 193 | 194 | /*关闭弹出框口*/ 195 | function x_admin_close(){ 196 | var index = parent.layer.getFrameIndex(window.name); 197 | parent.layer.close(index); 198 | } 199 | 200 | 201 | -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://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} -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/laydate/default/laydate.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /WebContent/public/lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /WebContent/public/lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rainweb521/Personnel-Management-System/ad181998669aff325cf7bb70a3982f09ffa5c4f5/WebContent/public/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/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"); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/element.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://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)}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),skip:function(){return['到第','','页',""].join("")}()};return['
    ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
    "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://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)}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
      '),s=o(["
    • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return r.check?''+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
    • "].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('
      '));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,o.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),o=i.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&i.elem.wrap('
      '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),a=t(['
      ',"
      "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(f)||(e.elemFile.wrap(a),i.elem.next("."+f).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var i=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&i+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:i,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:l.method,data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=t("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||o.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){o.preview(e)},upload:function(e,t){var i={};i[e]=t,o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,t){o.files[e]=t}),o.files}},y=function(){return"choose"===i?l.choose&&l.choose(g):(l.before&&l.before(g),a.ie?a.ie>9?u():c():void u())};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var t=0,i=e||o.files||o.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?Math.floor(i)+(i%1>0?i.toFixed(1):0)+"MB":l.size+"KB",r.value="",F=i}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.events=function(){var e=this,i=e.config,o=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var a=e.elemFile,o=t.length>1?t.length+"个文件":(t[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||a.after(''+o+"")};i.elem.off("upload.start").on("upload.start",function(){var a=t(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=t.extend({},i,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=t(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];o(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},o.render=function(e){var t=new p(e);return l.call(t)},e(r,o)}); -------------------------------------------------------------------------------- /WebContent/public/lib/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.2.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,o,a="layui-fixbar",r="layui-fixbar-top",n=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],g=t(['
        ',e.bar1?'
      • '+c[0]+"
      • ":"",e.bar2?'
      • '+c[1]+"
      • ":"",'
      • '+c[2]+"
      • ","
      "].join("")),s=g.find("."+r),u=function(){var t=n.scrollTop();t>=e.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&g.css(e.css),l.append(g),u(),g.find("li").on("click",function(){var i=t(this),o=i.attr("lay-type");"top"===o&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,o)}),n.on("scroll",function(){clearTimeout(o),o=setTimeout(function(){u()},100)}))},countdown:function(e,t,i){var o=this,a="function"==typeof t,r=new Date(e).getTime(),n=new Date(!t||a?(new Date).getTime():t).getTime(),l=r-n,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var g=setTimeout(function(){o.countdown(e,n+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,g),l<=0&&clearTimeout(g),g},timeAgo:function(e,t){var i=this,o=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>6912e5?(a=new Date(e),o[0][0]=i.digit(a.getFullYear(),4),o[0][1]=i.digit(a.getMonth()+1),o[0][2]=i.digit(a.getDate()),t||(o[1][0]=i.digit(a.getHours()),o[1][1]=i.digit(a.getMinutes()),o[1][2]=i.digit(a.getSeconds())),o[0].join("-")+" "+o[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var o=e.length;o0;r--)if("interactive"===n[r].readyState){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function s(e,t){var o="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void(n.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var y=this,p=n.dir=n.dir?n.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],n.host=n.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(n.modules[f])!function g(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void("string"==typeof n.modules[f]&&n.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":n.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),n.modules[f]=h}return y},o.prototype.getStyle=function(t,n){var o=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return o[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof o&&(r=o);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof o?i:(function p(){return++y>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?function(){o()}():setTimeout(p,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new Image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=JSON.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=JSON.stringify(r),n.key?r[n.key]:r}},o.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},o.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),o=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:r dept_list = rainservice.findAllDept(); 42 | if (content!=null){ 43 | dept_list = rainservice.findAllDept(content); 44 | } 45 | 46 | model.addAttribute("list",dept_list); 47 | // for(Dept attribute : dept_list) { 48 | // System.out.println(attribute.getName()); 49 | // } 50 | return "dept/list"; 51 | } 52 | @RequestMapping(value="/dept/add",method=RequestMethod.GET) 53 | public String add(Model model,Integer id){ 54 | // System.out.println(id); 55 | if(id!=null){ 56 | Dept dept = rainservice.get_Info(id); 57 | model.addAttribute("dept",dept); 58 | // System.out.println(dept.getName()); 59 | } 60 | return "/dept/add"; 61 | } 62 | @RequestMapping(value="/dept/add",method=RequestMethod.POST) 63 | public ModelAndView add(ModelAndView mv,@ModelAttribute Dept dept ,Integer id){ 64 | System.out.println(id); 65 | // System.out.println(dept.getId()); 66 | if(id!=null){ 67 | rainservice.update_Info(dept); 68 | System.out.println(dept.getId()); 69 | }else{ 70 | rainservice.addDept(dept); 71 | } 72 | // System.out.println(dept.getName()); 73 | mv.setViewName("redirect:/dept/list"); 74 | return mv; 75 | } 76 | @RequestMapping(value="/dept/delete",method=RequestMethod.GET) 77 | public void delete(Integer id){ 78 | System.out.println(id); 79 | if(id!=null){ 80 | rainservice.delete_Info(id); 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/com/rain/controller/DocumentController.java: -------------------------------------------------------------------------------- 1 | package com.rain.controller; 2 | 3 | import java.io.File; 4 | import java.util.List; 5 | 6 | import javax.servlet.http.HttpSession; 7 | 8 | import org.apache.commons.io.FileUtils; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.beans.factory.annotation.Qualifier; 11 | import org.springframework.http.HttpHeaders; 12 | import org.springframework.http.HttpStatus; 13 | import org.springframework.http.MediaType; 14 | import org.springframework.http.ResponseEntity; 15 | import org.springframework.stereotype.Controller; 16 | import org.springframework.ui.Model; 17 | import org.springframework.web.bind.annotation.ModelAttribute; 18 | import org.springframework.web.bind.annotation.PathVariable; 19 | import org.springframework.web.bind.annotation.RequestMapping; 20 | import org.springframework.web.bind.annotation.RequestMethod; 21 | import org.springframework.web.bind.annotation.RequestParam; 22 | import org.springframework.web.multipart.MultipartFile; 23 | import org.springframework.web.servlet.ModelAndView; 24 | import com.rain.domain.Document; 25 | import com.rain.service.RainService; 26 | 27 | @Controller 28 | public class DocumentController { 29 | @Autowired 30 | @Qualifier("RainService") 31 | private RainService rainservice; 32 | // 如果在目录下输入为空,则跳转到指定链接 33 | @RequestMapping(value="/document/") 34 | public ModelAndView index2(ModelAndView mv){ 35 | mv.setViewName("document/list"); 36 | return mv; 37 | } 38 | // 如果在目录下输入任何不存在的参数,则跳转到list 39 | @RequestMapping(value="/document/{formName}") 40 | public String index2(@PathVariable String formName){ 41 | String blank = "/document/list"; 42 | return blank; 43 | } 44 | @RequestMapping(value="/document/list",method=RequestMethod.GET) 45 | public String index(Model model,String content){ 46 | List job_list = rainservice.get_DocumentList(); 47 | if (content!=null){ 48 | job_list = rainservice.get_DocumentLikeList(content); 49 | } 50 | model.addAttribute("list",job_list); 51 | return "document/list"; 52 | } 53 | @RequestMapping(value="/document/add",method=RequestMethod.GET) 54 | public String add(Model model,Integer id){ 55 | if(id!=null){ 56 | Document job = rainservice.get_DocumentInfo(id); 57 | model.addAttribute("job",job); 58 | } 59 | return "/document/add"; 60 | } 61 | @RequestMapping(value="/document/add",method=RequestMethod.POST) 62 | public ModelAndView add(ModelAndView mv,@ModelAttribute Document document ,Integer id,HttpSession session 63 | ) 64 | throws Exception{ 65 | System.out.println(id); 66 | if(id!=null){ 67 | rainservice.update_DocumentInfo(document); 68 | }else{ 69 | /** 70 | * 上传文件 71 | */ 72 | String path = session.getServletContext().getRealPath("/upload/"); 73 | String filename = document.getFile().getOriginalFilename(); 74 | path = "C://Users//Rain//Documents//RainMe//JavaWed//"; 75 | File tempFile = new File(path+File.separator+filename); 76 | tempFile.createNewFile(); 77 | document.getFile().transferTo(tempFile); 78 | document.setFilename(filename); 79 | rainservice.insert_DocumentInfo(document); 80 | } 81 | mv.setViewName("redirect:/document/list"); 82 | return mv; 83 | } 84 | @RequestMapping(value="/document/delete",method=RequestMethod.GET) 85 | public void delete(Integer id){ 86 | System.out.println(id); 87 | if(id!=null){ 88 | rainservice.delete_DocumentInfo(id); 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /src/com/rain/controller/EmployeeController.java: -------------------------------------------------------------------------------- 1 | package com.rain.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.beans.factory.annotation.Qualifier; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.ui.Model; 9 | import org.springframework.web.bind.annotation.ModelAttribute; 10 | import org.springframework.web.bind.annotation.PathVariable; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.RequestMethod; 13 | import org.springframework.web.servlet.ModelAndView; 14 | 15 | import com.rain.domain.Dept; 16 | import com.rain.domain.Employee; 17 | import com.rain.domain.Job; 18 | import com.rain.service.RainService; 19 | 20 | @Controller 21 | public class EmployeeController { 22 | @Autowired 23 | @Qualifier("RainService") 24 | private RainService rainservice; 25 | // 如果在目录下输入为空,则跳转到指定链接 26 | @RequestMapping(value="/employee/") 27 | public ModelAndView index2(ModelAndView mv){ 28 | mv.setViewName("employee/list"); 29 | return mv; 30 | } 31 | // 如果在目录下输入任何不存在的参数,则跳转到list 32 | @RequestMapping(value="/employee/{formName}") 33 | public String index2(@PathVariable String formName){ 34 | String blank = "/employee/list"; 35 | return blank; 36 | } 37 | @RequestMapping(value="/employee/list",method=RequestMethod.GET) 38 | public String index(Model model,String content){ 39 | List job_list = rainservice.get_EmployeeList(); 40 | if (content!=null){ 41 | job_list = rainservice.get_EmployeeLikeList(content); 42 | } 43 | model.addAttribute("list",job_list); 44 | return "employee/list"; 45 | } 46 | @RequestMapping(value="/employee/add",method=RequestMethod.GET) 47 | public String add(Model model,Integer id){ 48 | if(id!=null){ 49 | Employee employee = rainservice.get_EmployeeInfo(id); 50 | model.addAttribute("job",employee); 51 | } 52 | List dept_list = rainservice.findAllDept(); 53 | List job_list = rainservice.findAllJob(); 54 | model.addAttribute("job_list", job_list); 55 | model.addAttribute("dept_list",dept_list); 56 | return "/employee/add"; 57 | } 58 | @RequestMapping(value="/employee/add",method=RequestMethod.POST) 59 | public ModelAndView add(ModelAndView mv,@ModelAttribute Employee job ,Integer id){ 60 | // System.out.println(id); 61 | if(id!=null){ 62 | rainservice.update_EmployeeInfo(job); 63 | }else{ 64 | rainservice.insert_EmployeeInfo(job); 65 | } 66 | mv.setViewName("redirect:/employee/list"); 67 | return mv; 68 | } 69 | @RequestMapping(value="/employee/delete",method=RequestMethod.GET) 70 | public void delete(Integer id){ 71 | // System.out.println(id); 72 | if(id!=null){ 73 | rainservice.delete_EmployeeInfo(id); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/com/rain/controller/JobController.java: -------------------------------------------------------------------------------- 1 | package com.rain.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.beans.factory.annotation.Qualifier; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.ui.Model; 9 | import org.springframework.web.bind.annotation.ModelAttribute; 10 | import org.springframework.web.bind.annotation.PathVariable; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.RequestMethod; 13 | import org.springframework.web.servlet.ModelAndView; 14 | 15 | import com.rain.domain.Job; 16 | import com.rain.service.RainService; 17 | 18 | @Controller 19 | public class JobController { 20 | @Autowired 21 | @Qualifier("RainService") 22 | private RainService rainservice; 23 | // 如果在目录下输入为空,则跳转到指定链接 24 | @RequestMapping(value="/job/") 25 | public ModelAndView index2(ModelAndView mv){ 26 | mv.setViewName("job/list"); 27 | return mv; 28 | } 29 | // 如果在目录下输入任何不存在的参数,则跳转到list 30 | @RequestMapping(value="/job/{formName}") 31 | public String index2(@PathVariable String formName){ 32 | String blank = "/job/list"; 33 | return blank; 34 | } 35 | @RequestMapping(value="/job/list",method=RequestMethod.GET) 36 | public String index(Model model,String content){ 37 | List job_list = rainservice.findAllJob(); 38 | if (content!=null){ 39 | job_list = rainservice.findAllJob(content); 40 | } 41 | model.addAttribute("list",job_list); 42 | return "job/list"; 43 | } 44 | @RequestMapping(value="/job/add",method=RequestMethod.GET) 45 | public String add(Model model,Integer id){ 46 | if(id!=null){ 47 | Job job = rainservice.get_JobInfo(id); 48 | model.addAttribute("job",job); 49 | } 50 | return "/job/add"; 51 | } 52 | @RequestMapping(value="/job/add",method=RequestMethod.POST) 53 | public ModelAndView add(ModelAndView mv,@ModelAttribute Job job ,Integer id){ 54 | System.out.println(id); 55 | if(id!=null){ 56 | rainservice.update_JobInfo(job); 57 | }else{ 58 | rainservice.insert_JobInfo(job); 59 | } 60 | mv.setViewName("redirect:/job/list"); 61 | return mv; 62 | } 63 | @RequestMapping(value="/job/delete",method=RequestMethod.GET) 64 | public void delete(Integer id){ 65 | System.out.println(id); 66 | if(id!=null){ 67 | rainservice.delete_JobInfo(id); 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/com/rain/controller/NoticeController.java: -------------------------------------------------------------------------------- 1 | package com.rain.controller; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.beans.factory.annotation.Qualifier; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.ui.Model; 9 | import org.springframework.web.bind.annotation.ModelAttribute; 10 | import org.springframework.web.bind.annotation.PathVariable; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.RequestMethod; 13 | import org.springframework.web.servlet.ModelAndView; 14 | 15 | import com.rain.domain.Job; 16 | import com.rain.domain.Notice; 17 | import com.rain.service.RainService; 18 | 19 | @Controller 20 | public class NoticeController { 21 | @Autowired 22 | @Qualifier("RainService") 23 | private RainService rainservice; 24 | // 如果在目录下输入为空,则跳转到指定链接 25 | @RequestMapping(value="/notice/") 26 | public ModelAndView index2(ModelAndView mv){ 27 | mv.setViewName("notice/list"); 28 | return mv; 29 | } 30 | // 如果在目录下输入任何不存在的参数,则跳转到list 31 | @RequestMapping(value="/notice/{formName}") 32 | public String index2(@PathVariable String formName){ 33 | String blank = "/notice/list"; 34 | return blank; 35 | } 36 | @RequestMapping(value="/notice/list",method=RequestMethod.GET) 37 | public String index(Model model,String content){ 38 | List job_list = rainservice.get_NoticeList(); 39 | if (content!=null){ 40 | job_list = rainservice.get_NoticeLikeList(content); 41 | } 42 | model.addAttribute("list",job_list); 43 | return "notice/list"; 44 | } 45 | @RequestMapping(value="/notice/add",method=RequestMethod.GET) 46 | public String add(Model model,Integer id){ 47 | if(id!=null){ 48 | Notice job = rainservice.get_NoticeInfo(id); 49 | model.addAttribute("job",job); 50 | } 51 | return "/notice/add"; 52 | } 53 | @RequestMapping(value="/notice/add",method=RequestMethod.POST) 54 | public ModelAndView add(ModelAndView mv,@ModelAttribute Notice notice ,Integer id){ 55 | System.out.println(id); 56 | if(id!=null){ 57 | rainservice.update_NoticeInfo(notice); 58 | }else{ 59 | rainservice.insert_NoticeInfo(notice); 60 | } 61 | mv.setViewName("redirect:/notice/list"); 62 | return mv; 63 | } 64 | @RequestMapping(value="/notice/delete",method=RequestMethod.GET) 65 | public void delete(Integer id){ 66 | System.out.println(id); 67 | if(id!=null){ 68 | rainservice.delete_NoticeInfo(id); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/com/rain/controller/UserController.java: -------------------------------------------------------------------------------- 1 | package com.rain.controller; 2 | 3 | import java.util.List; 4 | 5 | import javax.servlet.http.HttpSession; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.beans.factory.annotation.Qualifier; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.ui.Model; 11 | import org.springframework.web.bind.annotation.ModelAttribute; 12 | import org.springframework.web.bind.annotation.PathVariable; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | import org.springframework.web.bind.annotation.RequestMethod; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | import org.springframework.web.servlet.ModelAndView; 17 | 18 | import com.rain.domain.Employee; 19 | import com.rain.domain.Job; 20 | import com.rain.domain.Notice; 21 | import com.rain.domain.User; 22 | import com.rain.service.RainService; 23 | import com.rain.util.common.Constants; 24 | 25 | @Controller 26 | public class UserController { 27 | @Autowired 28 | @Qualifier("RainService") 29 | private RainService rainservice; 30 | // 如果在目录下输入为空,则跳转到指定链接 31 | @RequestMapping(value="/user/") 32 | public ModelAndView index2(ModelAndView mv){ 33 | mv.setViewName("/user/list"); 34 | return mv; 35 | } 36 | // 退出功能 37 | @RequestMapping(value="/user/logout") 38 | public ModelAndView logout(ModelAndView mv, HttpSession session){ 39 | session.setAttribute(Constants.USER_SESSION, null); 40 | session.setAttribute("tip", null); 41 | mv.setViewName("redirect:/index"); 42 | 43 | return mv; 44 | } 45 | @RequestMapping(value="/login") 46 | public ModelAndView login(@RequestParam("loginname") String loginname, 47 | @RequestParam("password") String password,@RequestParam("tip") String tip, 48 | HttpSession session, 49 | ModelAndView mv){ 50 | // 调用业务逻辑组件判断用户是否可以登录 51 | boolean flag = false; 52 | if("1".equals(tip)) { 53 | User user = rainservice.login(loginname, password); 54 | if(user!=null){ 55 | // 将用户保存到HttpSession当中 56 | System.out.println("HttpSession"); 57 | session.setAttribute(Constants.USER_SESSION, user); 58 | session.setAttribute("tip", "1"); 59 | // 客户端跳转到main页面 60 | mv.setViewName("redirect:/index"); 61 | }else{ 62 | // 设置登录失败提示信息 63 | System.out.println("设置登录失败提示信息"); 64 | mv.addObject("message", "登录名或密码错误!请重新输入"); 65 | // 服务器内部跳转到登录页面 66 | mv.setViewName("forward:/loginForm"); 67 | } 68 | }else { 69 | Employee user = rainservice.login2(loginname, password); 70 | if(user!=null){ 71 | // 将用户保存到HttpSession当中 72 | System.out.println("HttpSession"); 73 | session.setAttribute(Constants.USER_SESSION, user); 74 | session.setAttribute("tip", "2"); 75 | // 客户端跳转到main页面 76 | mv.setViewName("redirect:/indexcustomer/"); 77 | }else{ 78 | // 设置登录失败提示信息 79 | System.out.println("设置登录失败提示信息"); 80 | mv.addObject("message", "登录名或密码错误!请重新输入"); 81 | // 服务器内部跳转到登录页面 82 | mv.setViewName("forward:/loginForm"); 83 | } 84 | 85 | } 86 | return mv; 87 | } 88 | // 如果在目录下输入任何不存在的参数,则跳转到list 89 | @RequestMapping(value="/user/{formName}") 90 | public String index2(@PathVariable String formName){ 91 | String blank = "/user/list"; 92 | return blank; 93 | } 94 | @RequestMapping(value="/user/list",method=RequestMethod.GET) 95 | public String index(Model model,String content){ 96 | List job_list = rainservice.get_UserList(); 97 | if (content!=null){ 98 | job_list = rainservice.get_UserLikeList(content); 99 | } 100 | model.addAttribute("list",job_list); 101 | return "user/list"; 102 | } 103 | @RequestMapping(value="/user/add",method=RequestMethod.GET) 104 | public String add(Model model,Integer id){ 105 | if(id!=null){ 106 | User job = rainservice.get_UserInfo(id); 107 | model.addAttribute("job",job); 108 | } 109 | return "/user/add"; 110 | } 111 | @RequestMapping(value="/user/add",method=RequestMethod.POST) 112 | public ModelAndView add(ModelAndView mv,@ModelAttribute User notice ,Integer id){ 113 | System.out.println(id); 114 | if(id!=null){ 115 | rainservice.update_UserInfo(notice); 116 | }else{ 117 | rainservice.insert_UserInfo(notice); 118 | } 119 | mv.setViewName("redirect:/user/list"); 120 | return mv; 121 | } 122 | @RequestMapping(value="/user/delete",method=RequestMethod.GET) 123 | public void delete(Integer id){ 124 | System.out.println(id); 125 | if(id!=null){ 126 | rainservice.delete_UserInfo(id); 127 | } 128 | } 129 | // 管理员自己修改密码时跳转的页面 130 | @RequestMapping(value="/user/myupdate",method=RequestMethod.GET) 131 | public String update(Model model,HttpSession session){ 132 | User user = (User) session.getAttribute(Constants.USER_SESSION); 133 | model.addAttribute("job",user); 134 | return "/user/myupdate"; 135 | } 136 | @RequestMapping(value="/user/myupdate",method=RequestMethod.POST) 137 | public ModelAndView update(ModelAndView mv,Model model,HttpSession session,User notice){ 138 | User user = (User) session.getAttribute(Constants.USER_SESSION); 139 | // 如果是自己修改自己的密码,则更新session 140 | user.setLoginname(notice.getLoginname()); 141 | user.setPassword(notice.getPassword()); 142 | user.setUsername(notice.getUsername()); 143 | rainservice.update_UserInfo(user); 144 | session.setAttribute(Constants.USER_SESSION, user); 145 | mv.setViewName("redirect:/user/myupdate"); 146 | return mv; 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /src/com/rain/dao/DeptDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.DEPTTABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Select; 9 | import org.apache.ibatis.annotations.SelectProvider; 10 | import com.rain.dao.provider.DeptDynaSqlProvider; 11 | import com.rain.domain.Dept; 12 | public interface DeptDao { 13 | //查询 14 | @Select("select * from "+DEPTTABLE+" ") 15 | List selectAllDept(); 16 | @Select("select * from "+DEPTTABLE+" where name like CONCAT('%',#{content},'%')") 17 | List selectLikeAllDept(String content); 18 | 19 | 20 | @SelectProvider(type=DeptDynaSqlProvider.class,method="insertDept") 21 | void save(Dept dept); 22 | 23 | @Select("select * from "+DEPTTABLE+" where id = #{id}") 24 | Dept get_Info(Integer id); 25 | 26 | @SelectProvider(type=DeptDynaSqlProvider.class,method="updateDept") 27 | void update_Info(Dept dept); 28 | // 根据id删除部门 29 | @Delete(" delete from "+DEPTTABLE+" where id = #{id} ") 30 | void delete_Info(Integer id); 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/rain/dao/DocumentDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.DOCUMENTTABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Select; 9 | import org.apache.ibatis.annotations.SelectProvider; 10 | import com.rain.dao.provider.DocumentDynaSqlProvider; 11 | import com.rain.domain.Document; 12 | public interface DocumentDao { 13 | //查询 14 | @Select("select * from "+DOCUMENTTABLE+" ") 15 | List get_List(); 16 | @Select("select * from "+DOCUMENTTABLE+" where title like CONCAT('%',#{content},'%')") 17 | List get_LikeList(String content); 18 | 19 | 20 | @SelectProvider(type=DocumentDynaSqlProvider.class,method="insert") 21 | void insert_Info(Document dept); 22 | 23 | @Select("select * from "+DOCUMENTTABLE+" where id = #{id}") 24 | Document get_Info(Integer id); 25 | 26 | @SelectProvider(type=DocumentDynaSqlProvider.class,method="update") 27 | void update_Info(Document dept); 28 | // 根据id删除部门 29 | @Delete(" delete from "+DOCUMENTTABLE+" where id = #{id} ") 30 | void delete_Info(Integer id); 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/rain/dao/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.EMPLOYEETABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Param; 9 | import org.apache.ibatis.annotations.Select; 10 | import org.apache.ibatis.annotations.SelectProvider; 11 | 12 | import com.rain.dao.provider.EmployeeDynaSqlProvider; 13 | import com.rain.domain.Employee; 14 | 15 | public interface EmployeeDao { 16 | /** 17 | * 18 | * @return 19 | */ 20 | //查询 21 | @Select("select * from "+EMPLOYEETABLE+" ") 22 | List get_List(); 23 | @Select("select * from "+EMPLOYEETABLE+" where name like CONCAT('%',#{content},'%')") 24 | List get_LikeList(String content); 25 | 26 | 27 | @SelectProvider(type=EmployeeDynaSqlProvider.class,method="insert_Employee") 28 | void insert_Info(Employee employee); 29 | 30 | @Select("select * from "+EMPLOYEETABLE+" where id = #{id}") 31 | Employee get_Info(Integer id); 32 | 33 | @SelectProvider(type=EmployeeDynaSqlProvider.class,method="update_Employee") 34 | void update_Info(Employee employee); 35 | // 根据id删除部门 36 | @Delete(" delete from "+EMPLOYEETABLE+" where id = #{id} ") 37 | void delete_Info(Integer id); 38 | 39 | @Select("select * from "+EMPLOYEETABLE+" where name=#{name} and password=#{password}") 40 | Employee get_ByInfo(@Param("name") String name, @Param("password") String password); 41 | } 42 | -------------------------------------------------------------------------------- /src/com/rain/dao/JobDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.JOBTABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Select; 9 | import org.apache.ibatis.annotations.SelectProvider; 10 | 11 | import com.rain.dao.provider.JobDynaSqlProvider; 12 | import com.rain.domain.Dept; 13 | import com.rain.domain.Job; 14 | 15 | public interface JobDao { 16 | //查询 17 | @Select("select * from "+JOBTABLE+" ") 18 | List get_List(); 19 | @Select("select * from "+JOBTABLE+" where name like CONCAT('%',#{content},'%')") 20 | List get_LikeList(String content); 21 | 22 | 23 | @SelectProvider(type=JobDynaSqlProvider.class,method="insertDept") 24 | void insert_Info(Job job); 25 | 26 | @Select("select * from "+JOBTABLE+" where id = #{id}") 27 | Job get_Info(Integer id); 28 | 29 | @SelectProvider(type=JobDynaSqlProvider.class,method="updateDept") 30 | void update_Info(Job job); 31 | // 根据id删除部门 32 | @Delete(" delete from "+JOBTABLE+" where id = #{id} ") 33 | void delete_Info(Integer id); 34 | } 35 | -------------------------------------------------------------------------------- /src/com/rain/dao/NoticeDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.NOTICETABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Select; 9 | import org.apache.ibatis.annotations.SelectProvider; 10 | 11 | import com.rain.dao.provider.NoticeDynaSqlProvider; 12 | import com.rain.domain.Notice; 13 | 14 | public interface NoticeDao { 15 | 16 | @Select("select * from "+NOTICETABLE+" ") 17 | List get_List(); 18 | @Select("select * from "+NOTICETABLE+" where title like CONCAT('%',#{content},'%')") 19 | List get_LikeList(String content); 20 | 21 | @SelectProvider(type=NoticeDynaSqlProvider.class,method="insert_Notice") 22 | void insert_Info(Notice employee); 23 | 24 | @Select("select * from "+NOTICETABLE+" where id = #{id}") 25 | Notice get_Info(Integer id); 26 | 27 | @SelectProvider(type=NoticeDynaSqlProvider.class,method="update_Notice") 28 | void update_Info(Notice employee); 29 | // 根据id删除部门 30 | @Delete(" delete from "+NOTICETABLE+" where id = #{id} ") 31 | void delete_Info(Integer id); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/rain/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao; 2 | 3 | import static com.rain.util.common.Constants.USERTABLE; 4 | 5 | import java.util.List; 6 | 7 | import org.apache.ibatis.annotations.Delete; 8 | import org.apache.ibatis.annotations.Param; 9 | import org.apache.ibatis.annotations.Select; 10 | import org.apache.ibatis.annotations.SelectProvider; 11 | 12 | import com.rain.dao.provider.UserDynaSqlProvider; 13 | import com.rain.domain.User; 14 | 15 | public interface UserDao { 16 | 17 | @Select("select * from "+USERTABLE+" ") 18 | List get_List(); 19 | @Select("select * from "+USERTABLE+" where loginname like CONCAT('%',#{content},'%')") 20 | List get_LikeList(String content); 21 | 22 | @Select("select * from "+USERTABLE+" where loginname = #{loginname} AND password = #{password}") 23 | User get_login(@Param("loginname") String loginname, 24 | @Param("password") String password); 25 | 26 | @SelectProvider(type=UserDynaSqlProvider.class,method="insert_Notice") 27 | void insert_Info(User employee); 28 | 29 | @Select("select * from "+USERTABLE+" where id = #{id}") 30 | User get_Info(Integer id); 31 | 32 | @SelectProvider(type=UserDynaSqlProvider.class,method="update_Notice") 33 | void update_Info(User employee); 34 | // 根据id删除部门 35 | @Delete(" delete from "+USERTABLE+" where id = #{id} ") 36 | void delete_Info(Integer id); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/DeptDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import org.apache.ibatis.jdbc.SQL; 4 | import static com.rain.util.common.Constants.DEPTTABLE; 5 | 6 | import com.rain.domain.Dept; 7 | 8 | public class DeptDynaSqlProvider { 9 | 10 | // 动态插入 11 | public String insertDept(Dept dept){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(DEPTTABLE); 16 | if(dept.getName() != null && !dept.getName().equals("")){ 17 | VALUES("name", "#{name}"); 18 | } 19 | if(dept.getRemark() != null && !dept.getRemark().equals("")){ 20 | VALUES("remark", "#{remark}"); 21 | } 22 | } 23 | }.toString(); 24 | } 25 | // 动态更新 26 | public String updateDept(Dept dept){ 27 | 28 | return new SQL(){ 29 | { 30 | UPDATE(DEPTTABLE); 31 | if(dept.getName() != null){ 32 | SET(" name = #{name} "); 33 | } 34 | if(dept.getRemark() != null){ 35 | SET(" remark = #{remark} "); 36 | } 37 | WHERE(" id = #{id} "); 38 | } 39 | }.toString(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/DocumentDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import org.apache.ibatis.jdbc.SQL; 4 | import static com.rain.util.common.Constants.DOCUMENTTABLE; 5 | 6 | import com.rain.domain.Document; 7 | 8 | public class DocumentDynaSqlProvider { 9 | 10 | // 动态插入 11 | public String insert(Document dept){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(DOCUMENTTABLE); 16 | if(dept.getTitle() != null ){ 17 | VALUES("title", "#{title}"); 18 | } 19 | if(dept.getRemark() != null ){ 20 | VALUES("remark", "#{remark}"); 21 | } 22 | if(dept.getCreate_date() != null ){ 23 | VALUES("create_date", "#{create_date}"); 24 | } 25 | if(dept.getUser_id() != null ){ 26 | VALUES("user_id", "#{user_id}"); 27 | } 28 | if(dept.getFilename() != null ){ 29 | VALUES("filename", "#{filename}"); 30 | } 31 | } 32 | }.toString(); 33 | } 34 | // 动态更新 35 | public String update(Document dept){ 36 | 37 | return new SQL(){ 38 | { 39 | UPDATE(DOCUMENTTABLE); 40 | if(dept.getTitle() != null){ 41 | SET(" title = #{title} "); 42 | } 43 | 44 | if(dept.getRemark() != null){ 45 | SET(" remark = #{remark} "); 46 | } 47 | WHERE(" id = #{id} "); 48 | } 49 | }.toString(); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/EmployeeDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import static com.rain.util.common.Constants.EMPLOYEETABLE; 4 | 5 | import org.apache.ibatis.jdbc.SQL; 6 | 7 | import com.rain.domain.Employee; 8 | 9 | public class EmployeeDynaSqlProvider { 10 | // 动态插入 11 | public String insert_Employee(Employee job){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(EMPLOYEETABLE); 16 | if(job.getName() != null ){ 17 | VALUES("name", "#{name}"); 18 | } 19 | if(job.getCard_id()!=null){ 20 | VALUES("card_id","#{card_id}"); 21 | } 22 | if(job.getPassword()!=null){ 23 | VALUES("password","#{password}"); 24 | } 25 | if(job.getAddress()!=null){ 26 | VALUES("address","#{address}"); 27 | } 28 | if(job.getPost_code()!=null){ 29 | VALUES("post_code","#{post_code}"); 30 | } 31 | if(job.getTel()!=null){ 32 | VALUES("tel","#{tel}"); 33 | } 34 | if(job.getPhone()!=null){ 35 | VALUES("phone","#{phone}"); 36 | } 37 | if(job.getQq_num()!=null){ 38 | VALUES("qq_nul","#{qq_num}"); 39 | } 40 | if(job.getEmail()!=null){ 41 | VALUES("email","#{email}"); 42 | } 43 | if(job.getSex()!=null){ 44 | VALUES("sex","#{sex}"); 45 | } 46 | if(job.getParty()!=null){ 47 | VALUES("party","#{party}"); 48 | } 49 | if(job.getBirthday()!=null){ 50 | VALUES("birthday","#{birthday}"); 51 | } 52 | if(job.getRace()!=null){ 53 | VALUES("race","#{race}"); 54 | } 55 | if(job.getEducation()!=null){ 56 | VALUES("education","#{education}"); 57 | } 58 | if(job.getSpeciality()!=null){ 59 | VALUES("speciality","#{speciality}"); 60 | } 61 | if(job.getHobby()!=null){ 62 | VALUES("hobby","#{hobby}"); 63 | } 64 | if(job.getRemark()!=null){ 65 | VALUES("remark","#{remark}"); 66 | } 67 | if(job.getCreate_date()!=null){ 68 | VALUES("create_date","#{create_date}"); 69 | } 70 | if(job.getDept_id()!=null){ 71 | VALUES("dept_id","#{dept_id}"); 72 | } 73 | if(job.getJob_id()!=null){ 74 | VALUES("job_id","#{job_id}"); 75 | } 76 | } 77 | }.toString(); 78 | } 79 | // 动态更新 80 | public String update_Employee(Employee job){ 81 | 82 | return new SQL(){ 83 | { 84 | UPDATE(EMPLOYEETABLE); 85 | if(job.getName() != null ){ 86 | SET("name = #{name}"); 87 | } 88 | if(job.getCard_id()!=null){ 89 | SET("card_id = #{card_id}"); 90 | } 91 | if(job.getAddress()!=null){ 92 | SET("address = #{address}"); 93 | } 94 | if(job.getPassword()!=null){ 95 | SET("password = #{password}"); 96 | } 97 | if(job.getPost_code()!=null){ 98 | SET("post_code = #{post_code}"); 99 | } 100 | if(job.getTel()!=null){ 101 | SET("tel = #{tel}"); 102 | } 103 | if(job.getPhone()!=null){ 104 | SET("phone = #{phone}"); 105 | } 106 | if(job.getQq_num()!=null){ 107 | SET("qq_nul = #{qq_num}"); 108 | } 109 | if(job.getEmail()!=null){ 110 | SET("email = #{email}"); 111 | } 112 | if(job.getSex()!=null){ 113 | SET("sex = #{sex}"); 114 | } 115 | if(job.getParty()!=null){ 116 | SET("party = #{party}"); 117 | } 118 | if(job.getBirthday()!=null){ 119 | SET("birthday = #{birthday}"); 120 | } 121 | if(job.getRace()!=null){ 122 | SET("race = #{race}"); 123 | } 124 | if(job.getEducation()!=null){ 125 | SET("education = #{education}"); 126 | } 127 | if(job.getSpeciality()!=null){ 128 | SET("speciality = #{speciality}"); 129 | } 130 | if(job.getHobby()!=null){ 131 | SET("hobby = #{hobby}"); 132 | } 133 | if(job.getRemark()!=null){ 134 | SET("remark = #{remark}"); 135 | } 136 | if(job.getCreate_date()!=null){ 137 | SET("create_date = #{create_date}"); 138 | } 139 | if(job.getDept_id()!=null){ 140 | SET("dept_id = #{dept_id}"); 141 | } 142 | if(job.getJob_id()!=null){ 143 | SET("job_id = #{job_id}"); 144 | } 145 | 146 | WHERE(" id = #{id} "); 147 | } 148 | }.toString(); 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/JobDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import static com.rain.util.common.Constants.JOBTABLE; 4 | 5 | import org.apache.ibatis.jdbc.SQL; 6 | 7 | import com.rain.domain.Job; 8 | 9 | public class JobDynaSqlProvider { 10 | // 动态插入 11 | public String insertDept(Job job){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(JOBTABLE); 16 | if(job.getName() != null && !job.getName().equals("")){ 17 | VALUES("name", "#{name}"); 18 | } 19 | if(job.getRemark() != null && !job.getRemark().equals("")){ 20 | VALUES("remark", "#{remark}"); 21 | } 22 | } 23 | }.toString(); 24 | } 25 | // 动态更新 26 | public String updateDept(Job job){ 27 | 28 | return new SQL(){ 29 | { 30 | UPDATE(JOBTABLE); 31 | if(job.getName() != null){ 32 | SET(" name = #{name} "); 33 | } 34 | if(job.getRemark() != null){ 35 | SET(" remark = #{remark} "); 36 | } 37 | WHERE(" id = #{id} "); 38 | } 39 | }.toString(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/NoticeDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import static com.rain.util.common.Constants.NOTICETABLE; 4 | 5 | import org.apache.ibatis.jdbc.SQL; 6 | 7 | import com.rain.domain.Notice; 8 | 9 | public class NoticeDynaSqlProvider { 10 | // 动态插入 11 | public String insert_Notice(Notice job){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(NOTICETABLE); 16 | if(job.getTitle() != null ){ 17 | VALUES("title", "#{title}"); 18 | } 19 | if(job.getUser_id()!=null){ 20 | VALUES("user_id","#{user_id}"); 21 | } 22 | if(job.getContent()!=null){ 23 | VALUES("content","#{content}"); 24 | } 25 | if(job.getCreate_date()!=null){ 26 | VALUES("create_date","#{create_date}"); 27 | } 28 | 29 | 30 | } 31 | }.toString(); 32 | } 33 | // 动态更新 34 | public String update_Notice(Notice job){ 35 | 36 | return new SQL(){ 37 | { 38 | UPDATE(NOTICETABLE); 39 | if(job.getTitle() != null ){ 40 | SET("title = #{title}"); 41 | } 42 | if(job.getUser_id()!=null){ 43 | SET("user_id = #{user_id}"); 44 | } 45 | if(job.getContent()!=null){ 46 | SET("content = #{content}"); 47 | } 48 | if(job.getCreate_date()!=null){ 49 | SET("create_date = #{create_date}"); 50 | } 51 | 52 | 53 | 54 | WHERE(" id = #{id} "); 55 | } 56 | }.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/com/rain/dao/provider/UserDynaSqlProvider.java: -------------------------------------------------------------------------------- 1 | package com.rain.dao.provider; 2 | 3 | import static com.rain.util.common.Constants.USERTABLE; 4 | 5 | import org.apache.ibatis.jdbc.SQL; 6 | 7 | import com.rain.domain.User; 8 | 9 | public class UserDynaSqlProvider { 10 | // 动态插入 11 | public String insert_Notice(User job){ 12 | 13 | return new SQL(){ 14 | { 15 | INSERT_INTO(USERTABLE); 16 | if(job.getLoginname() != null ){ 17 | VALUES("loginname", "#{loginname}"); 18 | } 19 | if(job.getPassword()!=null){ 20 | VALUES("password","#{password}"); 21 | } 22 | if(job.getUsername()!=null){ 23 | VALUES("username","#{username}"); 24 | } 25 | if(job.getCreate_date()!=null){ 26 | VALUES("create_date","#{create_date}"); 27 | } 28 | 29 | 30 | } 31 | }.toString(); 32 | } 33 | // 动态更新 34 | public String update_Notice(User job){ 35 | 36 | return new SQL(){ 37 | { 38 | UPDATE(USERTABLE); 39 | if(job.getLoginname() != null ){ 40 | SET("loginname = #{loginname}"); 41 | } 42 | if(job.getPassword()!=null){ 43 | SET("password = #{password}"); 44 | } 45 | if(job.getUsername()!=null){ 46 | SET("username = #{username}"); 47 | } 48 | 49 | 50 | 51 | WHERE(" id = #{id} "); 52 | } 53 | }.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/com/rain/domain/Dept.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Dept implements Serializable{ 6 | private Integer id; 7 | private String name; 8 | private String remark; 9 | public String getRemark() { 10 | return remark; 11 | } 12 | 13 | public void setRemark(String remark) { 14 | this.remark = remark; 15 | } 16 | 17 | public Dept(){ 18 | super(); 19 | } 20 | 21 | public Integer getId() { 22 | return id; 23 | } 24 | 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | 29 | public String getName() { 30 | return name; 31 | } 32 | 33 | public void setName(String name) { 34 | this.name = name; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/com/rain/domain/Document.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | import java.io.Serializable; 4 | 5 | import org.springframework.web.multipart.MultipartFile; 6 | 7 | public class Document implements Serializable{ 8 | private Integer id; 9 | private String title; 10 | private String filename; 11 | private String remark; 12 | private String create_date; 13 | private Integer user_id; 14 | private MultipartFile file; 15 | private User user; 16 | public User getUser() { 17 | return user; 18 | } 19 | public void setUser(User user) { 20 | this.user = user; 21 | } 22 | public Integer getId() { 23 | return id; 24 | } 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | public String getTitle() { 29 | return title; 30 | } 31 | public void setTitle(String title) { 32 | this.title = title; 33 | } 34 | public String getFilename() { 35 | return filename; 36 | } 37 | public void setFilename(String filename) { 38 | this.filename = filename; 39 | } 40 | public String getRemark() { 41 | return remark; 42 | } 43 | public void setRemark(String remark) { 44 | this.remark = remark; 45 | } 46 | public String getCreate_date() { 47 | return create_date; 48 | } 49 | public void setCreate_date(String create_date) { 50 | this.create_date = create_date; 51 | } 52 | public Integer getUser_id() { 53 | return user_id; 54 | } 55 | public void setUser_id(Integer user_id) { 56 | this.user_id = user_id; 57 | } 58 | public MultipartFile getFile() { 59 | return file; 60 | } 61 | public void setFile(MultipartFile file) { 62 | this.file = file; 63 | } 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/com/rain/domain/Employee.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | public class Employee implements java.io.Serializable{ 4 | private Integer id; 5 | private Integer job_id; 6 | private Integer dept_id; 7 | public Integer getJob_id() { 8 | return job_id; 9 | } 10 | 11 | public void setJob_id(Integer job_id) { 12 | this.job_id = job_id; 13 | } 14 | 15 | public Integer getDept_id() { 16 | return dept_id; 17 | } 18 | 19 | public void setDept_id(Integer dept_id) { 20 | this.dept_id = dept_id; 21 | } 22 | 23 | private Dept dept; 24 | private Job job; 25 | private String name; 26 | private String card_id; 27 | private String address; 28 | private String post_code; 29 | private String tel; 30 | private String phone; 31 | private String qq_num; 32 | private String email; 33 | private Integer sex; 34 | private String party; 35 | 36 | private String birthday; 37 | private String race; 38 | private String education; 39 | private String speciality; 40 | private String hobby; 41 | private String remark; 42 | private String create_date; 43 | private String password; 44 | 45 | public String getPassword() { 46 | return password; 47 | } 48 | 49 | public void setPassword(String password) { 50 | this.password = password; 51 | } 52 | 53 | public Employee(){ 54 | super(); 55 | } 56 | 57 | public Integer getId() { 58 | return id; 59 | } 60 | 61 | public void setId(Integer id) { 62 | this.id = id; 63 | } 64 | 65 | public Dept getDept() { 66 | return dept; 67 | } 68 | 69 | public void setDept(Dept dept) { 70 | this.dept = dept; 71 | } 72 | 73 | public Job getJob() { 74 | return job; 75 | } 76 | 77 | public void setJob(Job job) { 78 | this.job = job; 79 | } 80 | 81 | public String getName() { 82 | return name; 83 | } 84 | 85 | public void setName(String name) { 86 | this.name = name; 87 | } 88 | 89 | public String getCard_id() { 90 | return card_id; 91 | } 92 | 93 | public void setCard_id(String card_id) { 94 | this.card_id = card_id; 95 | } 96 | 97 | public String getAddress() { 98 | return address; 99 | } 100 | 101 | public void setAddress(String address) { 102 | this.address = address; 103 | } 104 | 105 | public String getPost_code() { 106 | return post_code; 107 | } 108 | 109 | public void setPost_code(String post_code) { 110 | this.post_code = post_code; 111 | } 112 | 113 | public String getTel() { 114 | return tel; 115 | } 116 | 117 | public void setTel(String tel) { 118 | this.tel = tel; 119 | } 120 | 121 | public String getPhone() { 122 | return phone; 123 | } 124 | 125 | public void setPhone(String phone) { 126 | this.phone = phone; 127 | } 128 | 129 | public String getQq_num() { 130 | return qq_num; 131 | } 132 | 133 | public void setQq_num(String qq_num) { 134 | this.qq_num = qq_num; 135 | } 136 | 137 | public String getEmail() { 138 | return email; 139 | } 140 | 141 | public void setEmail(String email) { 142 | this.email = email; 143 | } 144 | 145 | public Integer getSex() { 146 | return sex; 147 | } 148 | 149 | public void setSex(Integer sex) { 150 | this.sex = sex; 151 | } 152 | 153 | public String getParty() { 154 | return party; 155 | } 156 | 157 | public void setParty(String party) { 158 | this.party = party; 159 | } 160 | 161 | public String getBirthday() { 162 | return birthday; 163 | } 164 | 165 | public void setBirthday(String birthday) { 166 | this.birthday = birthday; 167 | } 168 | 169 | public String getRace() { 170 | return race; 171 | } 172 | 173 | public void setRace(String race) { 174 | this.race = race; 175 | } 176 | 177 | public String getEducation() { 178 | return education; 179 | } 180 | 181 | public void setEducation(String education) { 182 | this.education = education; 183 | } 184 | 185 | public String getSpeciality() { 186 | return speciality; 187 | } 188 | 189 | public void setSpeciality(String speciality) { 190 | this.speciality = speciality; 191 | } 192 | 193 | public String getHobby() { 194 | return hobby; 195 | } 196 | 197 | public void setHobby(String hobby) { 198 | this.hobby = hobby; 199 | } 200 | 201 | public String getRemark() { 202 | return remark; 203 | } 204 | 205 | public void setRemark(String remark) { 206 | this.remark = remark; 207 | } 208 | 209 | public String getCreate_date() { 210 | return create_date; 211 | } 212 | 213 | public void setCreate_date(String create_date) { 214 | this.create_date = create_date; 215 | } 216 | 217 | 218 | } 219 | -------------------------------------------------------------------------------- /src/com/rain/domain/Job.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Job implements Serializable{ 6 | private Integer id; 7 | private String name; 8 | private String remark; 9 | public Job(){ 10 | super(); 11 | } 12 | public Integer getId() { 13 | return id; 14 | } 15 | public void setId(Integer id) { 16 | this.id = id; 17 | } 18 | public String getName() { 19 | return name; 20 | } 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | public String getRemark() { 25 | return remark; 26 | } 27 | public void setRemark(String remark) { 28 | this.remark = remark; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/com/rain/domain/Notice.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Notice implements Serializable{ 6 | private Integer id; 7 | private String title; 8 | private String content; 9 | private String Create_date; 10 | private Integer user_id; 11 | private User user; 12 | public Notice(){ 13 | super(); 14 | } 15 | public Integer getId() { 16 | return id; 17 | } 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | public String getTitle() { 22 | return title; 23 | } 24 | public void setTitle(String title) { 25 | this.title = title; 26 | } 27 | public String getContent() { 28 | return content; 29 | } 30 | public void setContent(String content) { 31 | this.content = content; 32 | } 33 | public String getCreate_date() { 34 | return Create_date; 35 | } 36 | public void setCreate_date(String create_date) { 37 | Create_date = create_date; 38 | } 39 | public Integer getUser_id() { 40 | return user_id; 41 | } 42 | public void setUser_id(Integer user_id) { 43 | this.user_id = user_id; 44 | } 45 | public User getUser() { 46 | return user; 47 | } 48 | public void setUser(User user) { 49 | this.user = user; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/rain/domain/User.java: -------------------------------------------------------------------------------- 1 | package com.rain.domain; 2 | 3 | import java.io.Serializable; 4 | 5 | public class User implements Serializable { 6 | private Integer id; 7 | private String username; 8 | private String loginname; 9 | private String password; 10 | private Integer status; 11 | private String create_date; 12 | 13 | public User(){ 14 | super(); 15 | } 16 | 17 | public Integer getId() { 18 | return id; 19 | } 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | public String getUsername() { 24 | return username; 25 | } 26 | public void setUsername(String username) { 27 | this.username = username; 28 | } 29 | public String getLoginname() { 30 | return loginname; 31 | } 32 | public void setLoginname(String loginname) { 33 | this.loginname = loginname; 34 | } 35 | public String getPassword() { 36 | return password; 37 | } 38 | public void setPassword(String password) { 39 | this.password = password; 40 | } 41 | public Integer getStatus() { 42 | return status; 43 | } 44 | public void setStatus(Integer status) { 45 | this.status = status; 46 | } 47 | public String getCreate_date() { 48 | return create_date; 49 | } 50 | public void setCreate_date(String create_date) { 51 | this.create_date = create_date; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/com/rain/interceptor/AuthorizedInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.rain.interceptor; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | import com.rain.domain.User; 6 | import com.rain.util.common.Constants; 7 | import org.springframework.web.servlet.HandlerInterceptor; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | /** 11 | * 判断用户权限的Spring MVC的拦截器 12 | */ 13 | public class AuthorizedInterceptor implements HandlerInterceptor { 14 | 15 | /** 定义不需要拦截的请求 */ 16 | private static final String[] IGNORE_URI = {"/loginForm", "/login","/404.html"}; 17 | 18 | /** 19 | * 该方法需要preHandle方法的返回值为true时才会执行。 20 | * 该方法将在整个请求完成之后执行,主要作用是用于清理资源。 21 | */ 22 | @Override 23 | public void afterCompletion(HttpServletRequest request, 24 | HttpServletResponse response, Object handler, Exception exception) 25 | throws Exception { 26 | 27 | } 28 | 29 | /** 30 | * 这个方法在preHandle方法返回值为true的时候才会执行。 31 | * 执行时间是在处理器进行处理之 后,也就是在Controller的方法调用之后执行。 32 | */ 33 | @Override 34 | public void postHandle(HttpServletRequest request, HttpServletResponse response, 35 | Object handler, ModelAndView mv) throws Exception { 36 | 37 | } 38 | 39 | /** 40 | * preHandle方法是进行处理器拦截用的,该方法将在Controller处理之前进行调用, 41 | * 当preHandle的返回值为false的时候整个请求就结束了。 42 | * 如果preHandle的返回值为true,则会继续执行postHandle和afterCompletion。 43 | */ 44 | @Override 45 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, 46 | Object handler) throws Exception { 47 | /** 默认用户没有登录 */ 48 | boolean flag = false; 49 | /** 获得请求的ServletPath */ 50 | String servletPath = request.getServletPath(); 51 | System.out.println(servletPath); 52 | /** 判断请求是否需要拦截 */ 53 | for (String s : IGNORE_URI) { 54 | if (servletPath.contains(s)) { 55 | flag = true; 56 | System.out.println("*********************"); 57 | break; 58 | } 59 | } 60 | /** 拦截请求 */ 61 | if (!flag){ 62 | /** 1.获取session中的用户 */ 63 | User user = (User) request.getSession().getAttribute(Constants.USER_SESSION); 64 | /** 2.判断用户是否已经登录 */ 65 | if(user == null){ 66 | /** 如果用户没有登录,跳转到登录页面 */ 67 | request.setAttribute("message", "请先登录再访问网站!"); 68 | request.getRequestDispatcher(Constants.LOGIN).forward(request, response); 69 | return flag; 70 | }else{ 71 | flag = true; 72 | } 73 | } 74 | return flag; 75 | 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/com/rain/service/RainService.java: -------------------------------------------------------------------------------- 1 | package com.rain.service; 2 | 3 | import java.util.List; 4 | 5 | import com.rain.domain.User; 6 | import com.rain.domain.Dept; 7 | import com.rain.domain.Document; 8 | import com.rain.domain.Employee; 9 | import com.rain.domain.Job; 10 | import com.rain.domain.Notice; 11 | 12 | public interface RainService { 13 | /** 14 | * 部门信息的service 15 | * @param content 16 | * @return 17 | */ 18 | List findAllDept(String content); 19 | 20 | void addDept(Dept dept); 21 | 22 | Dept get_Info(Integer id); 23 | 24 | void update_Info(Dept dept); 25 | 26 | void delete_Info(Integer id); 27 | 28 | List findAllDept(); 29 | /** 30 | * 职位信息的service 31 | * @return 32 | */ 33 | 34 | List findAllJob(); 35 | 36 | List findAllJob(String content); 37 | 38 | Job get_JobInfo(Integer id); 39 | 40 | void update_JobInfo(Job job); 41 | 42 | void insert_JobInfo(Job job); 43 | 44 | void delete_JobInfo(Integer id); 45 | /** 46 | * 员工信息的service 47 | */ 48 | List get_EmployeeList(); 49 | List get_EmployeeLikeList(String content); 50 | Employee get_EmployeeInfo(Integer id); 51 | void update_EmployeeInfo(Employee data); 52 | void insert_EmployeeInfo(Employee data); 53 | void delete_EmployeeInfo(Integer id); 54 | Employee login2(String loginname, String password); 55 | 56 | List get_NoticeList(); 57 | 58 | List get_NoticeLikeList(String content); 59 | 60 | Notice get_NoticeInfo(Integer id); 61 | 62 | void update_NoticeInfo(Notice notice); 63 | 64 | void insert_NoticeInfo(Notice notice); 65 | 66 | void delete_NoticeInfo(Integer id); 67 | 68 | List get_DocumentList(); 69 | 70 | List get_DocumentLikeList(String content); 71 | 72 | Document get_DocumentInfo(Integer id); 73 | 74 | void update_DocumentInfo(Document notice); 75 | 76 | void insert_DocumentInfo(Document notice); 77 | 78 | void delete_DocumentInfo(Integer id); 79 | 80 | User login(String loginname, String password); 81 | 82 | List get_UserList(); 83 | 84 | List get_UserLikeList(String content); 85 | 86 | User get_UserInfo(Integer id); 87 | 88 | void update_UserInfo(User notice); 89 | 90 | void insert_UserInfo(User notice); 91 | 92 | void delete_UserInfo(Integer id); 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/com/rain/util/common/Constants.java: -------------------------------------------------------------------------------- 1 | package com.rain.util.common; 2 | 3 | public class Constants { 4 | // 数据库表常量 5 | public static final String USERTABLE = "user_inf"; 6 | public static final String DEPTTABLE = "dept_inf"; 7 | public static final String JOBTABLE = "job_inf"; 8 | public static final String EMPLOYEETABLE = "employee_inf"; 9 | public static final String NOTICETABLE = "notice_inf"; 10 | public static final String DOCUMENTTABLE = "document_inf"; 11 | 12 | // 登录 13 | public static final String LOGIN = "loginForm"; 14 | // 用户的session对象 15 | public static final String USER_SESSION = "user_session"; 16 | 17 | // 默认每页4条数据 18 | public static int PAGE_DEFAULT_SIZE = 4; 19 | } 20 | -------------------------------------------------------------------------------- /src/db.properties: -------------------------------------------------------------------------------- 1 | dataSource.driverClass=com.mysql.jdbc.Driver 2 | dataSource.jdbcUrl=jdbc:mysql://127.0.0.1:3306/personnel 3 | dataSource.user=root 4 | dataSource.password=root 5 | dataSource.maxPoolSize=20 6 | dataSource.maxIdleTime = 1000 7 | dataSource.minPoolSize=6 8 | dataSource.initialPoolSize=5 --------------------------------------------------------------------------------