Compare commits

..

No commits in common. 'main' and 'main' have entirely different histories.
main ... main

@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v9.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aopalliance-1.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aspectjweaver-1.6.9.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/classmate-1.3.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-dbcp-1.4.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.4.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool-1.6.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/gson-2.8.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-annotations-2.4.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-core-2.4.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-databind-2.4.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jboss-logging-3.3.0.Final.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-3.2.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-spring-1.2.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/servlet-api.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aop-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aspects-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-support-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-expression-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jms-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-messaging-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc-4.1.3.RELEASE.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/validation-api-2.0.0.Final.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool2-2.6.2.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/druid-1.0.9.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jsqlparser-1.0.jar"/>
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/pagehelper-5.1.0-beta2.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>dormManage</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="dormManage">
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/resources"/>
<property name="context-root" value="dormManage"/>
<property name="java-output-path" value="/dormManage/build/classes"/>
</wb-module>
</project-modules>

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v9.0"/>
<fixed facet="java"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="jst.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="4.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>

@ -1 +0,0 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary

@ -1,66 +0,0 @@
package com.cya.entity;
// Admin实体代表管理员
public class Admin {
private int adminId; // 管理员的唯一标识符
private String userName; // 登录用户名
private String password; // 登录密码
private String name; // 管理员姓名
private String sex; // 管理员性别
private String tel; // 管理员电话号码
// 获取adminId的getter和setter方法
public int getAdminId() {
return adminId;
}
public void setAdminId(int adminId) {
this.adminId = adminId;
}
// 获取userName的getter和setter方法
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
// 获取password的getter和setter方法
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
// 获取name的getter和setter方法
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
// 获取sex的getter和setter方法
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
// 获取tel的getter和setter方法
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
// 返回Admin对象的字符串表示形式的方法
@Override
public String toString() {
return "Admin [adminId=" + adminId + ", userName=" + userName + ", password=" + password + ", name=" + name
+ ", sex=" + sex + ", tel=" + tel + "]";
}
}

@ -1,549 +0,0 @@
package com.cya.controller;
/**
*
*
*/
import java.io.IOException;
import java.sql.Date;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cya.entity.Admin;
import com.cya.entity.Dorm;
import com.cya.entity.DormBuild;
import com.cya.entity.DormManage;
import com.cya.entity.Notice;
import com.cya.entity.PageResult;
import com.cya.entity.PunchClock;
import com.cya.entity.PunchClockRecord;
import com.cya.entity.Result;
import com.cya.entity.Student;
import com.cya.service.IAdminService;
import com.fasterxml.jackson.databind.ObjectMapper;
@Controller
@ResponseBody
public class AdminController {
@Autowired
private IAdminService adminServiceImpl;
/*-------------------------宿管---------------------------*/
@RequestMapping("/getDormManage")// 宿管管理模块
public PageResult getDormManage(HttpServletRequest request){
// 获取宿管信息
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
System.out.println("pageNum="+pageNum);
System.out.println("pageSize="+pageSize);
return adminServiceImpl.getDormManage(pageNum,pageSize,filter,key);
}
@RequestMapping("addDormManage")
public Result addDormManage(@RequestBody DormManage dormManage) {
// 添加宿管信息
try {
adminServiceImpl.addDormManage(dormManage);
return new Result(true, "添加成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "添加失败");
}
}
@RequestMapping("getDormMangerById")
public DormManage getDormMangerById(Integer dormManId) {
return adminServiceImpl.getDormMangerById(dormManId);
}
@RequestMapping("updataDormManageById")
public Result updataDormManageById(@RequestBody DormManage dormManage) {
try {
adminServiceImpl.updataDormManageById(dormManage);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("dormManagerDeleteById")
public Result dormManagerDeleteById(HttpServletRequest request) {
Integer dormManId=0;
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
dormManId=Integer.parseInt(request.getParameter("dormManId"));
}
try {
adminServiceImpl.deleteDormManageById(dormManId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------宿管---------------------------*/
/*-------------------------学生---------------------------*/
// 学生管理模块
@RequestMapping("/getStudentManage")
public PageResult getStudentManage(HttpServletRequest request){
// 获取学生信息
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
System.out.println("pageNum="+pageNum);
System.out.println("pageSize="+pageSize);
return adminServiceImpl.getStudentManage(pageNum, pageSize, filter, key);
}
@RequestMapping("addStudentManage")
public Result addStudentManage(@RequestBody Student student) {
// 添加学生信息
try {
adminServiceImpl.addStudentManage(student);
return new Result(true, "添加成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "添加失败");
}
}
@RequestMapping("getStudentMangerById")
public Student getStudentMangerById(Integer studentId) {
return adminServiceImpl.getStudentMangerById(studentId);
}
@RequestMapping("updataStudentManageById")
public Result updataStudentManageById(@RequestBody Student student) {
try {
System.out.println(student);
adminServiceImpl.updataStudentManageById(student);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("studentManagerDeleteById")
public Result studentManagerDeleteById(HttpServletRequest request) {
Integer studentId=0;
if(request.getParameter("studentId")!=null && request.getParameter("studentId")!="") {
studentId=Integer.parseInt(request.getParameter("studentId"));
}
try {
adminServiceImpl.studentManagerDeleteById(studentId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------学生---------------------------*/
/*-------------------------宿舍楼---------------------------*/
// 宿舍楼管理模块
@RequestMapping("/getBuildManage")
public PageResult getBuildManage(HttpServletRequest request){
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
System.out.println("pageNum="+pageNum);
System.out.println("pageSize="+pageSize);
return adminServiceImpl.getBuildManage(pageNum,pageSize,filter,key);
}
@RequestMapping("addBuildManage")
public Result addBuildManage(@RequestBody DormBuild dormBuild) {
try {
adminServiceImpl.addBuildManage(dormBuild);
return new Result(true, "添加成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "添加失败");
}
}
@RequestMapping("getBuildMangerById")
public DormBuild getBuildMangerById(Integer dormBuildId) {
return adminServiceImpl.getBuildMangerById(dormBuildId);
}
@RequestMapping("updataBuildManageById")
public Result updataBuildManageById(@RequestBody DormBuild dormBuild) {
try {
adminServiceImpl.updataBuildManageById(dormBuild);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("buildManagerDeleteById")
public Result buildManagerDeleteById(HttpServletRequest request) {
Integer dormBuildId=0;
if(request.getParameter("dormBuildId")!=null && request.getParameter("dormBuildId")!="") {
dormBuildId=Integer.parseInt(request.getParameter("dormBuildId"));
}
try {
adminServiceImpl.buildManagerDeleteById(dormBuildId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
@RequestMapping("getDormMangerByBuildId")
public List<DormManage> getDormMangerByBuildId(Integer dormBuildId){
System.out.println("dormBuildId="+dormBuildId);
return adminServiceImpl.getDormMangerByBuildId(dormBuildId);
}
@RequestMapping("getDormManage2")
public List<DormManage> getDormManage(){
return adminServiceImpl.getDormManage2();
}
@RequestMapping("addDormManageToBuild")
public Result addDormManageToBuild(HttpServletRequest request) {
Integer dormBuildId=0;
Integer dormManId=0;
if(request.getParameter("dormBuildId")!=null && request.getParameter("dormBuildId")!="") {
dormBuildId=Integer.parseInt(request.getParameter("dormBuildId"));
}
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
dormManId=Integer.parseInt(request.getParameter("dormManId"));
}
try {
adminServiceImpl.addDormManageToBuild(dormBuildId, dormManId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
@RequestMapping("removeaDormManageToBuild")
public Result removeaDormManageToBuild(HttpServletRequest request) {
Integer dormManId=0;
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
dormManId=Integer.parseInt(request.getParameter("dormManId"));
}
try {
adminServiceImpl.removeaDormManageToBuild(dormManId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------宿舍楼---------------------------*/
/*-------------------------考勤---------------------------*/
// 考勤管理模块
@RequestMapping("/getRecordManage")
public PageResult getRecordManage(HttpServletRequest request){
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
System.out.println("pageNum="+pageNum);
System.out.println("pageSize="+pageSize);
return adminServiceImpl.getRecordManage(pageNum,pageSize,filter,key);
}
@RequestMapping("recordManagerDeleteById")
public Result recordManagerDeleteById(HttpServletRequest request) {
Integer recordId=0;
if(request.getParameter("recordId")!=null && request.getParameter("recordId")!="") {
recordId=Integer.parseInt(request.getParameter("recordId"));
}
try {
adminServiceImpl.recordManagerDeleteById(recordId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------考勤---------------------------*/
/*-------------------------公告---------------------------*/
// 公告管理模块
@RequestMapping("/getNoticeManage")
public PageResult getNoticeManage(HttpServletRequest request){
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
System.out.println("pageNum="+pageNum);
System.out.println("pageSize="+pageSize);
return adminServiceImpl.getNoticeManage(pageNum,pageSize,filter,key);
}
@RequestMapping("addNoticeManage")
public Result addNoticeManage(@RequestBody Notice notice) {
try {
adminServiceImpl.addNoticeManage(notice);
return new Result(true, "添加成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "添加失败");
}
}
@RequestMapping("getNoticeMangerById")
public Notice getNoticeMangerById(Integer noticeId) {
return adminServiceImpl.getNoticeMangerById(noticeId);
}
@RequestMapping("updataNoticeManageById")
public Result updataNoticeManageById(@RequestBody Notice notice) {
try {
adminServiceImpl.updataNoticeManageById(notice);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("noticeManagerDeleteById")
public Result noticeManagerDeleteById(HttpServletRequest request) {
Integer noticeId=0;
if(request.getParameter("noticeId")!=null && request.getParameter("noticeId")!="") {
noticeId=Integer.parseInt(request.getParameter("noticeId"));
}
try {
adminServiceImpl.noticeManagerDeleteById(noticeId);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------公告---------------------------*/
/*-------------------------我的---------------------------*/
// 我的模块
@RequestMapping("getMyMsgById")
public Admin getMyMsgById(@RequestBody Admin admin) {
return adminServiceImpl.getMyMsgById(admin.getAdminId());
}
@RequestMapping("updateMyMsgById")
public Result updateMyMsgById(HttpServletRequest request ,@RequestBody Admin admin) {
try {
HttpSession session=request.getSession();
if(session.getAttribute("admin") !=null) {
session.removeAttribute("admin");
}
List list=new ArrayList();
list.add(admin);
session.setAttribute("admin", list);
adminServiceImpl.updateMyMsgById(admin);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("updatePsd")
public Result updatePsd(@RequestBody Admin admin) {
try {
adminServiceImpl.updatePsd(admin);
System.out.println(admin);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
/*-------------------------我的---------------------------*/
/*-------------------------打卡---------------------------*/
// 打卡管理模块
@RequestMapping("/getPunchClockManage")
public PageResult getPunchClockManage(HttpServletRequest request){
Integer pageNum=1;
Integer pageSize=20;
String filter=request.getParameter("filter");
String key=request.getParameter("key");
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
pageNum=Integer.parseInt(request.getParameter("pageNum"));
}
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}
return adminServiceImpl.getPunchClockManage(pageNum,pageSize,filter,key);
}
@RequestMapping("addPunchClockManageMsg")
public Result addPunchClockManageMsg(@RequestBody PunchClock punchClock) {
try {
String punchClockId= "pcId"+System.currentTimeMillis();
punchClock.setId(punchClockId);
adminServiceImpl.addPunchClockManageMsg(punchClock);
PunchClock punchClock2=adminServiceImpl.getPunchClockMangerById(punchClockId);
//根据学生学号生成记录表record
//获取学生学号
List<Student> list=adminServiceImpl.getStudentMsg();
for (Student student : list) {
PunchClockRecord punchClockRecord=new PunchClockRecord();
punchClockRecord.setPunchClockId(punchClock2.getId());
punchClockRecord.setPunchClockDate(punchClock2.getDate());
punchClockRecord.setPunchClockTheme(punchClock2.getTheme());
punchClockRecord.setPunchClockDetail(punchClock2.getDetail());
punchClockRecord.setPunchClockPerson(punchClock2.getPerson());
punchClockRecord.setName(student.getName());
punchClockRecord.setDormName(student.getDormName());
punchClockRecord.setTel(student.getTel());
punchClockRecord.setStuNum(student.getStuNum());
punchClockRecord.setDormBuildId(student.getDormBuildId());
punchClockRecord.setRecord(false);
punchClockRecord.setPunckClockContent("");
adminServiceImpl.insertIntoPunchClockRecord(punchClockRecord);
}
return new Result(true, "添加成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "添加失败");
}
}
@RequestMapping("getPunchClockMangerById")
public PunchClock getPunchClockMangerById(String id) {
return adminServiceImpl.getPunchClockMangerById(id);
}
@RequestMapping("updataPunchClockManageMsgById")
public Result updataPunchClockManageMsgById(@RequestBody PunchClock punchClock) {
try {
adminServiceImpl.updataPunchClockManageMsgById(punchClock);
//更新记录表
adminServiceImpl.updateIntoPunchClockRecordById(punchClock);
return new Result(true, "更新成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "更新失败");
}
}
@RequestMapping("punchClockManagerDeleteById")
public Result punchClockManagerDeleteById(HttpServletRequest request) {
String id="";
if(request.getParameter("id")!=null) {
id=request.getParameter("id");
}
try {
adminServiceImpl.punchClockManagerDeleteById(id);
adminServiceImpl.deletePunchClockRecordById(id);
return new Result(true, "删除成功");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return new Result(false, "删除失败");
}
}
/*-------------------------打卡---------------------------*/
}

@ -1,135 +0,0 @@
package com.cya.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.type.IntegerTypeHandler;
import com.cya.entity.Admin;
import com.cya.entity.DormBuild;
import com.cya.entity.DormManage;
import com.cya.entity.Notice;
import com.cya.entity.PunchClock;
import com.cya.entity.PunchClockRecord;
import com.cya.entity.Record;
import com.cya.entity.Student;
import com.sun.org.glassfish.gmbal.ParameterNames;
public interface IAdminMapper {
/*-------------------------宿管---------------------------*/
public List<DormManage>getDormManage(@Param("filter")String filter,@Param("key")String key);
public void addDormManage(DormManage dormManage);
public DormManage getDormMangerById(@Param("dormManId") int dormManId);
public void updataDormManageById(DormManage dormManage);
public void deleteDormManageById(@Param("dormManId") Integer dormManId);
/*-------------------------宿管---------------------------*/
/*-------------------------学生---------------------------*/
public List<Student>getStudentManage(@Param("filter")String filter,@Param("key")String key);
public void addStudentManage(Student student);
public Student getStudentMangerById(@Param("studentId") int studentId);
public void updataStudentManageById(Student student);
public void studentManagerDeleteById(@Param("studentId") int studentId);
/*-------------------------学生---------------------------*/
/*-------------------------宿舍楼---------------------------*/
public List<DormBuild>getBuildManage(@Param("filter")String filter,@Param("key")String key);
public void addBuildManage(DormBuild dormBuild);
public DormBuild getBuildMangerById(@Param("dormBuildId") int dormBuildId);
public void updataBuildManageById(DormBuild dormBuild);
public void buildManagerDeleteById(@Param("dormBuildId") Integer dormBuildId);
public List<DormManage> getDormMangerByBuildId(@Param("dormBuildId") Integer dormBuildId);
public List<DormManage> getDormManage2();
public void addDormManageToBuild(@Param("dormBuildId")Integer dormBuildId,@Param("dormManId")Integer dormManId);
public void removeaDormManageToBuild(@Param("dormManId")Integer dormManId);
/*-------------------------宿舍楼---------------------------*/
/*-------------------------考勤---------------------------*/
public List<Record>getRecordManage(@Param("filter")String filter,@Param("key")String key);
public void recordManagerDeleteById(@Param("recordId")Integer recordId);
/*-------------------------考勤---------------------------*/
/*-------------------------公告---------------------------*/
public List<Notice>getNoticeManage(@Param("filter")String filter,@Param("key")String key);
public void addNoticeManage(Notice notice);
public Notice getNoticeMangerById(@Param("noticeId") Integer noticeId);
public void updataNoticeManageById(Notice notice);
public void noticeManagerDeleteById(@Param("noticeId") Integer noticeId);
/*-------------------------公告---------------------------*/
/*-------------------------我的---------------------------*/
public Admin getMyMsgById(@Param("adminId") Integer adminId);
public void updateMyMsgById(Admin admin);
public void updatePsd(Admin admin);
/*-------------------------我的---------------------------*/
/*-------------------------打卡---------------------------*/
public List<PunchClock>getPunchClockManage(@Param("filter")String filter,@Param("key")String key);
public void addPunchClockManageMsg(PunchClock punchClock);
public PunchClock getPunchClockMangerById(@Param("id") String id);
public void updataPunchClockManageMsgById(PunchClock punchClock);
public void punchClockManagerDeleteById(@Param("id") String id);
public List<Student> getStudentMsg();
public void insertIntoPunchClockRecord(PunchClockRecord punchClockRecord);
public void updateIntoPunchClockRecordById(PunchClock punchClock);
public void deletePunchClockRecordById(String id);
/*-------------------------打卡---------------------------*/
}

@ -1,249 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cya.mapper.IAdminMapper">
<!-- ******************** 宿管 ******************* -->
<!-- 获取宿管信息 -->
<select id="getDormManage" resultType="com.cya.entity.DormManage">
select dormManId,userName,dormBuildId,name,sex,tel from t_dormmanager
<where>
<if test="filter=='name' and key !='' ">
name like concat("%",#{key},"%")
</if>
<if test="filter=='userName' and key !='' ">
userName like concat("%",#{key},"%")
</if>
</where>
</select>
<insert id="addDormManage" parameterType="com.cya.entity.DormManage">
insert into t_dormmanager(userName,password,name,sex,tel) values(#{userName},#{password},#{name},#{sex},#{tel})
</insert>
<select id="getDormMangerById" parameterType="Integer" resultType="com.cya.entity.DormManage">
select * from t_dormmanager where dormManId=#{dormManId}
</select>
<update id="updataDormManageById" parameterType="com.cya.entity.DormManage">
update t_dormmanager set userName=#{userName},password=#{password},name=#{name},sex=#{sex},tel=#{tel} where dormManId=#{dormManId}
</update>
<delete id="deleteDormManageById" parameterType="Integer">
delete from t_dormmanager where dormManId=#{dormManId}
</delete>
<!-- ******************** 宿管 ******************* -->
<!-- ******************** 学生 ******************* -->
<!-- 获取学生信息 -->
<select id="getStudentManage" resultType="com.cya.entity.Student">
select studentId,stuNum,name,dormBuildId,dormName,sex,tel
from t_student
<where>
<if test="filter=='name' and key !='' ">
name like concat("%",#{key},"%")
</if>
<if test="filter=='stuNum' and key !='' ">
stuNum like concat("%",#{key},"%")
</if>
<if test="filter=='dormName' and key !='' ">
dormName like concat("%",#{key},"%")
</if>
</where>
</select>
<insert id="addStudentManage" parameterType="com.cya.entity.Student">
insert into t_student(stuNum,password,name,dormBuildId,dormName,sex,tel) values(#{stuNum},#{password},#{name},#{dormBuildId},#{dormName},#{sex},#{tel})
</insert>
<select id="getStudentMangerById" parameterType="Integer" resultType="com.cya.entity.Student">
select * from t_student where studentId=#{studentId}
</select>
<update id="updataStudentManageById" parameterType="com.cya.entity.Student">
update t_student set stuNum=#{stuNum},password=#{password},name=#{name},sex=#{sex},dormBuildId=#{dormBuildId},dormName=#{dormName},tel=#{tel} where studentId=#{studentId}
</update>
<delete id="studentManagerDeleteById" parameterType="Integer">
delete from t_student where studentId=#{studentId}
</delete>
<!-- ******************** 学生 ******************* -->
<!-- ******************** 宿舍楼 ******************* -->
<select id="getBuildManage" resultType="com.cya.entity.DormBuild">
select * from t_dormbuild
<where>
<if test="filter=='dormBuildName' and key !='' ">
dormBuildName like concat("%",#{key},"%")
</if>
</where>
</select>
<insert id="addBuildManage" parameterType="com.cya.entity.DormBuild">
insert into t_dormbuild(dormBuildName,dormBuildDetail) values(#{dormBuildName},#{dormBuildDetail})
</insert>
<select id="getBuildMangerById" parameterType="Integer" resultType="com.cya.entity.DormBuild">
select * from t_dormbuild where dormBuildId=#{dormBuildId}
</select>
<update id="updataBuildManageById" parameterType="com.cya.entity.DormBuild">
update t_dormbuild set dormBuildName=#{dormBuildName},dormBuildDetail=#{dormBuildDetail} where dormBuildId=#{dormBuildId}
</update>
<delete id="buildManagerDeleteById" parameterType="Integer">
delete from t_dormbuild where dormBuildId=#{dormBuildId}
</delete>
<select id="getDormMangerByBuildId" resultType="com.cya.entity.DormManage">
select dormManId,name,sex,tel from t_dormmanager where dormBuildId=#{dormBuildId}
</select>
<select id="getDormManage2" resultType="com.cya.entity.DormManage">
select dormManId,name from t_dormmanager
</select>
<update id="addDormManageToBuild" parameterType="Integer">
update t_dormmanager set dormBuildId=#{dormBuildId} where dormManId=#{dormManId}
</update>
<update id="removeaDormManageToBuild" parameterType="Integer">
update t_dormmanager set dormBuildId=0 where dormManId=#{dormManId}
</update>
<!-- ******************** 宿舍楼 ******************* -->
<!-- ******************** 考勤 ******************* -->
<select id="getRecordManage" resultType="com.cya.entity.Record">
select * from t_record
<where>
<if test="filter=='studentName' and key !='' ">
studentName like concat("%",#{key},"%")
</if>
<if test="filter=='studentNumber' and key !='' ">
studentNumber like concat("%",#{key},"%")
</if>
<if test="filter=='dormName' and key !='' ">
dormName like concat("%",#{key},"%")
</if>
</where>
</select>
<delete id="recordManagerDeleteById" parameterType="Integer">
delete from t_record where recordId=#{recordId}
</delete>
<!-- ******************** 考勤 ******************* -->
<!-- ******************** 公告 ******************* -->
<select id="getNoticeManage" resultType="com.cya.entity.Notice">
select * from t_notice
<where>
<if test="filter=='date' and key !='' ">
date like concat("%",#{key},"%")
</if>
</where>
</select>
<insert id="addNoticeManage" parameterType="com.cya.entity.Notice">
insert into t_notice(noticePerson,date,content) values(#{noticePerson},current_date,#{content})
</insert>
<select id="getNoticeMangerById" parameterType="Integer" resultType="com.cya.entity.Notice">
select * from t_notice where noticeId=#{noticeId}
</select>
<update id="updataNoticeManageById" parameterType="com.cya.entity.Notice">
update t_notice set noticePerson=#{noticePerson},content=#{content} where noticeId=#{noticeId}
</update>
<delete id="noticeManagerDeleteById" parameterType="Integer">
delete from t_notice where noticeId=#{noticeId}
</delete>
<!-- ******************** 公告 ******************* -->
<!-- ******************** 我的 ******************* -->
<select id="getMyMsgById" resultType="com.cya.entity.Admin">
select * from t_admin where adminId=#{adminId}
</select>
<update id="updateMyMsgById" parameterType="com.cya.entity.Admin">
update t_admin set userName=#{userName},name=#{name},tel=#{tel} where adminId=#{adminId}
</update>
<update id="updatePsd" parameterType="com.cya.entity.Admin">
update t_admin set password=#{password} where adminId=#{adminId}
</update>
<!-- ******************** 我的 ******************* -->
<!-- ******************** 打卡 ******************* -->
<select id="getPunchClockManage" resultType="com.cya.entity.PunchClock">
select * from t_punchclock
<where>
<if test="filter=='date' and key !='' ">
date like concat("%",#{key},"%")
</if>
</where>
</select>
<insert id="addPunchClockManageMsg" parameterType="com.cya.entity.PunchClock">
insert into t_punchclock(id,theme,detail,date,person) values(#{id},#{theme},#{detail},current_date,#{person})
</insert>
<select id="getPunchClockMangerById" parameterType="java.lang.String" resultType="com.cya.entity.PunchClock">
select * from t_punchclock where id=#{id}
</select>
<update id="updataPunchClockManageMsgById" parameterType="com.cya.entity.PunchClock">
update t_punchclock set theme=#{theme},detail=#{detail} where id=#{id}
</update>
<delete id="punchClockManagerDeleteById" parameterType="java.lang.String">
delete from t_punchclock where id=#{id}
</delete>
<select id="getStudentMsg" resultType="com.cya.entity.Student">
select * from t_student where studentId in(select min(studentId) from t_student group by stuNum)
</select>
<insert id="insertIntoPunchClockRecord" parameterType="com.cya.entity.PunchClockRecord">
insert into t_punchclockrecord
(punchClock_id,punchClock_date,punchClock_theme,punchClock_detail,punchClock_person,name,dormName,tel,stuNum,dormBuildId,isRecord,punckClock_content)
values(#{punchClockId},#{punchClockDate},#{punchClockTheme},#{punchClockDetail},#{punchClockPerson},#{name},#{dormName},#{tel},#{stuNum},#{dormBuildId},#{isRecord},#{punckClockContent})
</insert>
<update id="updateIntoPunchClockRecordById" parameterType="com.cya.entity.PunchClock">
update t_punchclockrecord set punchClock_theme=#{theme},punchClock_detail=#{detail} where punchClock_id=#{id}
</update>
<delete id="deletePunchClockRecordById" parameterType="java.lang.String">
delete from t_punchclockrecord where punchClock_id=#{id}
</delete>
<!-- ******************** 打卡 ******************* -->
</mapper>

@ -1,45 +0,0 @@
package com.cya.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cya.entity.Admin;
import com.cya.entity.DormManage;
import com.cya.entity.Notice;
import com.cya.entity.PunchClockRecord;
import com.cya.entity.Record;
import com.cya.entity.Student;
public interface IDormManageMapper {
public List<Student>getStudentMsgByBuildId(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
public void studentMsgDeleteById(@Param("studentId") int studentId);
public List<Record>getRecordMsg(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
public Record getRecordById(@Param("recordId") int recordId);
public void updataRecordMsg(Record record);
public void addRecordMsg(Record record);
public void recordManagerDeleteById1(@Param("recordId") Integer recordId);
public DormManage dorm_getMyMsgById(@Param("dormManId") Integer dormManId);
public void dorm_updateMyMsgById(DormManage dormManage);
public void dorm_updatePsd(DormManage dormManage);
public List<Notice> getNoticeAll();
public List<PunchClockRecord>getPunchClockRecordMsgByDormBuildId(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
}

@ -1,103 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cya.mapper.IDormManageMapper">
<select id="getStudentMsgByBuildId" resultType="com.cya.entity.Student">
select studentId,stuNum,name,dormBuildId,dormName,sex,tel
from t_student where 1=1
<if test="filter=='name' and key !='' ">
and name like concat("%",#{key},"%")
</if>
<if test="filter=='stuNum' and key !='' ">
and stuNum like concat("%",#{key},"%")
</if>
<if test="filter=='dormName' and key !='' ">
and dormName like concat("%",#{key},"%")
</if>
<if test="dormBuildId!=null" >
and dormBuildId=#{dormBuildId}
</if>
</select>
<delete id="studentMsgDeleteById" parameterType="Integer">
delete from t_student where studentId=#{studentId}
</delete>
<select id="getRecordMsg" resultType="com.cya.entity.Record">
select * from t_record where 1=1
<if test="filter=='studentName' and key !='' ">
and studentName like concat("%",#{key},"%")
</if>
<if test="filter=='studentNumber' and key !='' ">
and studentNumber like concat("%",#{key},"%")
</if>
<if test="filter=='dormName' and key !='' ">
and dormName like concat("%",#{key},"%")
</if>
<if test="dormBuildId!=null" >
and dormBuildId=#{dormBuildId}
</if>
</select>
<select id="getRecordById" parameterType="Integer" resultType="com.cya.entity.Record">
select * from t_record where recordId=#{recordId}
</select>
<update id="updataRecordMsg" parameterType="com.cya.entity.Record">
update t_record set detail=#{detail} where recordId=#{recordId}
</update>
<insert id="addRecordMsg" parameterType="com.cya.entity.Record">
insert into t_record(studentNumber,studentName,dormBuildId,dormName,date,detail) values(#{studentNumber},#{studentName},#{dormBuildId},#{dormName},current_date,#{detail})
</insert>
<delete id="recordManagerDeleteById1" parameterType="Integer">
delete from t_record where recordId=#{recordId}
</delete>
<!-- ******************** 我的 ******************* -->
<select id="dorm_getMyMsgById" resultType="com.cya.entity.DormManage">
select * from t_dormmanager where dormManId=#{dormManId}
</select>
<update id="dorm_updateMyMsgById" parameterType="com.cya.entity.DormManage">
update t_dormmanager set userName=#{userName},name=#{name},tel=#{tel} where dormManId=#{dormManId}
</update>
<update id="dorm_updatePsd" parameterType="com.cya.entity.DormManage">
update t_dormmanager set password=#{password} where dormManId=#{dormManId}
</update>
<!-- ******************** 我的 ******************* -->
<select id="getNoticeAll" resultType="com.cya.entity.Notice">
select * from t_notice
</select>
<!-- ******************** 打卡 ******************* -->
<select id="getPunchClockRecordMsgByDormBuildId" resultType="com.cya.entity.PunchClockRecord">
select * from t_punchclockrecord where 1=1
<if test="filter=='date' and key !='' ">
and punchClock_date like concat("%",#{key},"%")
</if>
<if test="dormBuildId!=null" >
and dormBuildId=#{dormBuildId}
</if>
</select>
<!-- ******************** 打卡 ******************* -->
</mapper>

@ -1,17 +0,0 @@
package com.cya.mapper;
import java.util.List;
import com.cya.entity.Admin;
import com.cya.entity.DormManage;
import com.cya.entity.Login;
import com.cya.entity.Student;
public interface ILoginMapper {
public List<Admin> loginToAdmin(Login login);
public List<DormManage> loginToDormManage(Login login);
public List<Student> loginToStudent(Login login);
}

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cya.mapper.ILoginMapper">
<select id="loginToAdmin" resultType="com.cya.entity.Admin">
select * from t_admin where userName=#{userName} and password=#{password}
</select>
<select id="loginToDormManage" resultType="com.cya.entity.DormManage">
select * from t_dormmanager where userName=#{userName} and password=#{password}
</select>
<select id="loginToStudent" resultType="com.cya.entity.Student">
select * from t_student where stuNum=#{userName} and password=#{password}
</select>
</mapper>

@ -1,11 +0,0 @@
package com.cya.service;
import java.util.List;
import com.cya.entity.Login;
public interface ILoginService {
public List login(Login login);
}
//验证用户登录的服务接口

@ -1,28 +0,0 @@
package com.cya.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cya.entity.PunchClockRecord;
import com.cya.entity.Record;
import com.cya.entity.Student;
public interface IStudentMapper {
public List<Record>getRecordMsgByStuNum(@Param("filter") String filter,@Param("key")String key,@Param("studentNumber") String studentNumber);
public Student student_getMyMsgById(@Param("studentId") Integer studentId);
public void student_updateMyMsgById(Student student);
public void student_updatePsd(Student student);
public List<PunchClockRecord>getPunchClockRecordMsgByStuNum(@Param("filter") String filter,@Param("key")String key,@Param("studentNumber") String studentNumber);
public PunchClockRecord getPunckColcokRecordById(@Param("id")Integer id);
public void updataPunchClockRecordMsg(PunchClockRecord punchClockRecord);
}

@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cya.mapper.IStudentMapper">
<select id="getRecordMsgByStuNum" resultType="com.cya.entity.Record">
select * from t_record where 1=1
<if test="filter=='date' and key !='' ">
and date like concat("%",#{key},"%")
</if>
<if test="studentNumber!=null" >
and studentNumber=#{studentNumber}
</if>
</select>
<!-- ******************** 我的 ******************* -->
<select id="student_getMyMsgById" resultType="com.cya.entity.Student">
select * from t_student where studentId=#{studentId}
</select>
<update id="student_updateMyMsgById" parameterType="com.cya.entity.Student">
update t_student set name=#{name},tel=#{tel} where studentId=#{studentId}
</update>
<update id="student_updatePsd" parameterType="com.cya.entity.Student">
update t_student set password=#{password} where studentId=#{studentId}
</update>
<!-- ******************** 我的 ******************* -->
<!-- ******************** 打卡 ******************* -->
<select id="getPunchClockRecordMsgByStuNum" resultType="com.cya.entity.PunchClockRecord">
select * from t_punchclockrecord where 1=1
<if test="filter=='date' and key !='' ">
and punchClock_date like concat("%",#{key},"%")
</if>
<if test="studentNumber!=null" >
and stuNum=#{studentNumber}
</if>
</select>
<select id="getPunckColcokRecordById" resultType="com.cya.entity.PunchClockRecord">
select * from t_punchclockrecord where id=#{id}
</select>
<update id="updataPunchClockRecordMsg" parameterType="com.cya.entity.PunchClockRecord">
update t_punchclockrecord set isRecord=true,punckClock_content=#{punckClockContent} where id=#{id}
</update>
<!-- ******************** 打卡 ******************* -->
</mapper>

@ -1,39 +0,0 @@
package com.cya.entity;
// Login实体代表登录信息
public class Login {
private String userName; // 登录用户名
private String password; // 登录密码
private String role; // 用户角色
// 获取userName的getter和setter方法
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
// 获取password的getter和setter方法
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
// 获取role的getter和setter方法
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
// 返回Login对象的字符串表示形式的方法
@Override
public String toString() {
return "Login [userName=" + userName + ", password=" + password + ", role=" + role + "]";
}
}

@ -1,68 +0,0 @@
package com.cya.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.management.relation.Role;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.tomcat.util.digester.ArrayStack;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cya.entity.Login;
import com.cya.entity.Result;
import com.cya.service.ILoginService;
import com.cya.service.impl.LoginServiceImpl;
@Controller
@ResponseBody
public class LoginController {
@Autowired
private ILoginService loginServiceImpl;
// 处理登录请求
@RequestMapping("login")
public List login(HttpServletRequest request, @RequestBody Login login) {
List list=loginServiceImpl.login(login);
if(list.size()==1) {
HttpSession session=request.getSession();
session.setAttribute(login.getRole(), list);
System.out.println("session="+session.getAttribute(login.getRole()));
}
return list;
}
// 获取会话信息
@RequestMapping("getSession")
public List getSession(HttpServletRequest request,@RequestBody Login login){
System.out.println(login);
System.out.println(request.getSession().getAttribute(login.getRole()));
List list=new ArrayList<>();
list.add(request.getSession().getAttribute(login.getRole()));
return list;
}
// 退出系统
@RequestMapping("exitSys")
public Result exitSys(HttpServletRequest request) {
String exit="";
try {
if(request.getParameter("exit")!=null) {
exit=request.getParameter("exit");
}
request.getSession().removeAttribute(exit);
return new Result(true, "注销成功");
} catch (Exception e) {
// TODO: 处理异常
e.printStackTrace();
return new Result(false, "注销失败");
}
}
}

@ -0,0 +1,2 @@
# domitory

@ -1,71 +0,0 @@
package com.cya.entity;
/**
*
*/
public class Student {
private int studentId; // 学生ID
private String stuNum; // 学号
private String password; // 密码
private String name; // 姓名
private int dormBuildId; // 宿舍楼ID
private String dormName; // 宿舍名称
private String sex; // 性别
private String tel; // 电话号码
public int getStudentId() {
return studentId;
}
public void setStudentId(int studentId) {
this.studentId = studentId;
}
public String getStuNum() {
return stuNum;
}
public void setStuNum(String stuNum) {
this.stuNum = stuNum;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getDormBuildId() {
return dormBuildId;
}
public void setDormBuildId(int dormBuildId) {
this.dormBuildId = dormBuildId;
}
public String getDormName() {
return dormName;
}
public void setDormName(String dormName) {
this.dormName = dormName;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
@Override
public String toString() {
return "Student [studentId=" + studentId + ", stuNum=" + stuNum + ", password=" + password + ", name=" + name
+ ", dormBuildId=" + dormBuildId + ", dormName=" + dormName + ", sex=" + sex + ", tel=" + tel + "]";
}
}

@ -1,100 +0,0 @@
package com.cya.controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cya.entity.PageResult;
import com.cya.entity.PunchClockRecord;
import com.cya.entity.Result;
import com.cya.entity.Student;
import com.cya.service.IStudentService;
/**
*
*/
@Controller
@ResponseBody
public class StudentController {
@Autowired
private IStudentService studentSeriveImpl;
/*-------------------------考勤---------------------------*/
/**
*
*/
@RequestMapping("/getRecordMMsgByStuNum")
public PageResult getRecordMMsgByStuNum(HttpServletRequest request){
}
/*-------------------------考勤---------------------------*/
/*-------------------------我的---------------------------*/
/**
* ID
*/
@RequestMapping("student_getMyMsgById")
public Student student_getMyMsgById(@RequestBody Student student) {
}
/**
*
*/
@RequestMapping("student_updateMyMsgById")
public Result student_updateMyMsgById(HttpServletRequest request ,@RequestBody Student student) {
}
/**
*
*/
@RequestMapping("student_updatePsd")
public Result student_updatePsd(@RequestBody Student student) {
}
/*-------------------------我的---------------------------*/
/*-------------------------打开---------------------------*/
// 其他打开相关方法...
/*-------------------------打开---------------------------*/
/**
*
*/
@RequestMapping("/getPunchClockRecordMsgByStuNum")
public PageResult getPunchClockRecordMsgByStuNum(HttpServletRequest request){
}
/**
* ID
*/
@RequestMapping("getPunckColcokRecordById")
public PunchClockRecord getPunckColcokRecordById(HttpServletRequest request) {
// 方法实现...
}
/**
*
*/
@RequestMapping("updataPunchClockRecordMsg")
public Result updataPunchClockRecordMsg(@RequestBody PunchClockRecord punchClockRecord) {
}
}

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Class-Path:

@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<welcome-file-list>
<welcome-file>dorm/login.html</welcome-file>
</welcome-file-list>
<!-- 加载spring容器 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:application.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 解决post乱码 -->
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<!-- <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value>
</init-param> -->
</filter>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>springMvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:springmvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.css</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.js</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.png</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.jpg</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.gif</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>springMvc</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>寝室管理系统</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.aptana.projects.webnature</nature>
</natures>
<filteredResources>
<filter>
<id>1600564941379</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

@ -1,261 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-dropdown.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li class="active">
<a href="#">首页</a>
</li>
<li >
<a href="dormManage.html">宿舍管理员</a>
</li>
<li>
<a href="studentManage.html">学生</a>
</li>
<li>
<a href="buildManage.html">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li>
<a href="noticeManage.html">公告</a>
</li>
<li class="dropdown">
<a href="#" class="" role="button" data-hover="dropdown">我的</a>
<ul class="dropdown-menu">
<li onclick="my()"><a href="#updateinfo" data-toggle="modal">个人资料</a></li>
<li><a href="#updatepwd" data-toggle="modal">修改密码</a></li>
<li><a href="javascript:exitSys();">退出</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="wele">系统管理员,欢迎你登录寝室管理系统</div>
<div class="list-content">
<div class="quanxian">你拥有以下权限</div>
<ul>
<li>1、添加、修改、删除公告信息</li>
<li>2、添加、修改、删除宿舍管理员信息</li>
<li>3、添加、修改、删除学生信息</li>
<li>4、宿舍楼管理及其宿舍管理员分配</li>
<li>5、学生寝室管理</li>
<li>6、发布考勤、打卡任务</li>
<li>7、查看、修改个人信息</li>
</ul>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!-------------------------个人资料模糊框------------------------------------->
<form class="form-horizontal" method="get" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="updateinfo" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
<div id="user_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="ModalLabel">
个人资料
</h4>
</div>
<div class="modal-body">
<!--正文-->
<input type="hidden" name="tip" value="2">
<input type="hidden" name="url" value="admin/index">
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">用户名</label>
<div class="col-sm-7">
<input v-model="user.userName" type="text" class="form-control" placeholder="请输入用户名"
>
<label class="control-label" for="name" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">真实姓名</label>
<div class="col-sm-7">
<input v-model="user.name" type="text" class="form-control" id="name" name="name" placeholder="请输入您的真实姓名">
<label class="control-label" for="name" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">手机号</label>
<div class="col-sm-7">
<input v-model="user.tel" type="text" class="form-control" id="phone" name="tel" placeholder="请输入您的手机号">
<label class="control-label" for="phone" style="display: none"></label>
</div>
</div>
<!--正文-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button onclick="editMyMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------------------------------------->
<!-------------------------------------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="updatepwd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="updatepwd_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
修改密码
</h4>
</div>
<div class="modal-body">
<!--正文-->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">原密码</label>
<div class="col-sm-7">
<input required="required" onBlur="checkedPassword()" type="password" class="form-control" name="password" id="oldPwd"
placeholder="请输入原密码">
<label class="control-label" for="oldPwd" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">新密码</label>
<div class="col-sm-7">
<input required="required" type="password" class="form-control" name="password2" id="newPwd"
placeholder="请输入新密码">
<label class="control-label" for="newPwd" style="display: none"></label>
</div>
</div>
<!--正文-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="editPassword()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------------------------------------->
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/admin_adminManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,330 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】宿舍楼管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li>
<a href="dormManage.html">宿舍管理员</a>
</li>
<li>
<a href="studentManage.html">学生</a>
</li>
<li class="active">
<a href="#">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li>
<a href="noticeManage.html">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
宿舍楼管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">添加宿舍楼</button>
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="dormBuildName">名称</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchBuildManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>名称</th>
<th>说明</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in buildManageList">
<td>{{index+1}}</td>
<td>{{item.dormBuildName}}</td>
<td>{{item.dormBuildDetail}}</td>
<td>
<button class="btn btn-mini btn-info" type="button" @click="getDormMangerByBuildId(item.dormBuildId)" id="btn_edit" data-toggle="modal" data-target="#editDormManage">查看宿管</button>&nbsp;
<button class="btn btn-mini btn-info" type="button" @click="getBuildMangerById(item.dormBuildId)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="buildManagerDeleteById(item.dormBuildId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addBuildManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加宿舍楼
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">名称</label>
<div class="col-sm-7">
<input v-model="buildManage.dormBuildName" type="text" class="form-control" id="addUserName" required="required" name="dormBuildName"
placeholder="请输入宿舍楼名称">
<label class="control-label" for="addDormBuildName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">说明</label>
<div class="col-sm-7">
<input v-model="buildManage.dormBuildDetail" type="text" class="form-control" id="addName" required="required" name="dormBuildDetail"
placeholder="请输入说明">
<label class="control-label" for="addDormBuildDetail" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addBuildManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getBuildMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改宿舍楼信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">名称</label>
<div class="col-sm-7">
<input v-model="buildManage.dormBuildName" type="text" class="form-control" id="addUserName" required="required" name="dormBuildName"
placeholder="请输入宿舍楼名称">
<label class="control-label" for="addDormBuildName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">说明</label>
<div class="col-sm-7">
<input v-model="buildManage.dormBuildDetail" type="text" class="form-control" id="addName" required="required" name="dormBuildDetail"
placeholder="请输入说明">
<label class="control-label" for="addDormBuildDetail" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataBuildManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<!------------------------------ 修改宿管模态框Modal ------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="editDormManage" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getDormManageByBuildId_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
查看宿管信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="data_list edit_dorm">
<div class="data_list_title">
选择宿管:
<select v-model="optionKey" id="searchType" name="searchType" style="width: 80px;">
<option value="-1">请选择宿管</option>
<option v-for="(item,index) in optionsDormManage" v-bind:value="item.dormManId">{{item.name}}</option>
</select>
<button type="button" onclick="addDormManageToBuild()" class="btn btn-primary">
添加
</button>
</div>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>手机</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in dormManage">
<td>{{index+1}}</td>
<td>{{item.name}}</td>
<td>{{item.sex}}</td>
<td>{{item.tel}}</td>
<td>
<button class="btn btn-mini btn-danger" type="button" @click="removeaDormManageToBuild(item.dormManId)">移除</button></td>
</tr>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改宿管的模态框------------------------------->
<script src="../js/vue/admin_buildManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,344 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】宿舍管理员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-dropdown.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li class="active">
<a href="#">宿舍管理员</a>
</li>
<li>
<a href="studentManage.html">学生</a>
</li>
<li>
<a href="buildManage.html">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li>
<a href="noticeManage.html">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
宿舍管理员管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">添加宿管</button>
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="name">姓名</option>
<option value="userName">用户名</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchDormManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>电话</th>
<th>宿舍楼</th>
<th>用户名</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in dormManageList">
<td>{{index+1}}</td>
<td>{{item.name}}</td>
<td>{{item.sex}}</td>
<td>{{item.tel}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.userName}}</td>
<td><button class="btn btn-mini btn-info" type="button" @click="getDormMangerById(item.dormManId)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="dormManagerDeleteById(item.dormManId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addDormManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加宿舍管理员
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">用户名</label>
<div class="col-sm-7">
<input v-model="dormManage.userName" type="text" class="form-control" id="addUserName" required="required" name="userName"
placeholder="请输入用户名">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="addPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="dormManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('add')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="dormManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="dormManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="dormManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addDormManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getDormMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改宿管信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">用户名</label>
<div class="col-sm-7">
<input v-model="dormManage.userName" type="text" class="form-control" id="addUserName" required="required" name="userName"
placeholder="请输入用户名">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="editPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="dormManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('edit')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="dormManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="dormManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="dormManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataDormManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/admin_dormManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,256 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】公告管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li>
<a href="dormManage.html">宿舍管理员</a>
</li>
<li >
<a href="studentManage.html">学生</a>
</li>
<li>
<a href="buildManage.html">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li class="active">
<a href="#">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
公告管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">添加公告</button>
<span class="data_search">
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="date" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchNoticeManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>日期</th>
<th>发布人</th>
<th>内容</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in noticeManageList">
<td>{{index+1}}</td>
<td>{{item.date}}</td>
<td>{{item.noticePerson}}</td>
<td>{{item.content}}</td>
<td><button class="btn btn-mini btn-info" type="button" @click="getNoticeMangerById(item.noticeId)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="noticeManagerDeleteById(item.noticeId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addNoticeManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加公告
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">发布人</label>
<div class="col-sm-7">
<input v-model="noticeManage.noticePerson" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入发布人">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">内容</label>
<div class="col-sm-7">
<input v-model="noticeManage.content" type="text" class="form-control" id="addNotice" required="required" name="notice"
placeholder="请输入内容">
<label class="control-label" for="addNotice" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addNoticeManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ---------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getNoticeMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改公告信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">发布人</label>
<div class="col-sm-7">
<input v-model="noticeManage.noticePerson" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入发布人">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">内容</label>
<div class="col-sm-7">
<input v-model="noticeManage.content" type="text" class="form-control" id="addNotice" required="required" name="notice"
placeholder="请输入内容">
<label class="control-label" for="addNotice" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataNoticeManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/admin_noticeManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,259 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】打卡管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li>
<a href="dormManage.html">宿舍管理员</a>
</li>
<li >
<a href="studentManage.html">学生</a>
</li>
<li>
<a href="buildManage.html">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li class="active">
<a href="#">打卡</a>
</li>
<li >
<a href="noticeManage.html">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
打卡管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">发起打卡</button>
<span class="data_search">
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="date" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchNoticeManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>日期</th>
<th>发布人</th>
<th>主题</th>
<th>说明</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in punchClockManageList">
<td>{{index+1}}</td>
<td>{{item.date}}</td>
<td>{{item.person}}</td>
<td>{{item.theme}}</td>
<td>{{item.detail}}</td>
<td><button class="btn btn-mini btn-info" type="button" @click="getPunchClockMangerById(item.id)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="punchClockManagerDeleteById(item.id)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addPunchClockManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加打卡
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">打卡主题</label>
<div class="col-sm-7">
<input v-model="punchClockManage.theme" type="text" class="form-control" required="required"
placeholder="请输入打卡主题">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">打卡说明</label>
<div class="col-sm-7">
<input v-model="punchClockManage.detail" type="text" class="form-control" required="required"
placeholder="请输入打卡说明">
<label class="control-label" for="addNotice" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addPunchClockManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ---------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getPunchClockMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改打卡信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">打卡主题</label>
<div class="col-sm-7">
<input v-model="punchClockManage.theme" type="text" class="form-control" required="required"
placeholder="请输入打卡主题">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">打卡说明</label>
<div class="col-sm-7">
<input v-model="punchClockManage.detail" type="text" class="form-control" required="required"
placeholder="请输入打卡说明">
<label class="control-label" for="addNotice" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataPunchClockManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/admin_punchClockManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,165 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】考勤管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li>
<a href="dormManage.html">宿舍管理员</a>
</li>
<li >
<a href="studentManage.html">学生</a>
</li>
<li >
<a href="buildManage.html">宿舍楼</a>
</li>
<li class="active">
<a href="#">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li>
<a href="noticeManage.html">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
考勤管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="studentName">姓名</option>
<option value="studentNumber">学号</option>
<option value="dormName">寝室号</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchRecordManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>日期</th>
<th>姓名</th>
<th>学号</th>
<th>宿舍楼</th>
<th>寝室号</th>
<th>说明</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in recordManageList">
<td>{{index+1}}</td>
<td>{{item.date}}</td>
<td>{{item.studentName}}</td>
<td>{{item.studentNumber}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.dormName}}</td>
<td>{{item.detail}}</td>
<td>
<button class="btn btn-mini btn-danger" type="button" @click="recordManagerDeleteById(item.recordId)">删除</button>
</td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<script src="../js/vue/admin_recordManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

@ -1,379 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】学生管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session__app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="admin_index.html">首页</a>
</li>
<li>
<a href="dormManage.html">宿舍管理员</a>
</li>
<li class="active">
<a href="#">学生</a>
</li>
<li>
<a href="buildManage.html">宿舍楼</a>
</li>
<li>
<a href="recordManage.html">考勤</a>
</li>
<li>
<a href="punchClockManage.html">打卡</a>
</li>
<li>
<a href="noticeManage.html">公告</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context">你是管理员,请<a style="display:inline-block;" href="noticeManage.html">发布公告</a></div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
学生管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">添加学生</button>
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="name">姓名</option>
<option value="stuNum">学号</option>
<option value="dormName">寝室号</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchDormManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>学号</th>
<th>姓名</th>
<th>性别</th>
<th>宿舍楼</th>
<th>寝室号</th>
<th>手机</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in studentManageList">
<td>{{index+1}}</td>
<td>{{item.stuNum}}</td>
<td>{{item.name}}</td>
<td>{{item.sex}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.dormName}}</td>
<td>{{item.tel}}</td>
<td><button class="btn btn-mini btn-info" type="button" @click="getStudentMangerById(item.studentId)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="studentManagerDeleteById(item.studentId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addStudentManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加学生
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">学号</label>
<div class="col-sm-7">
<input v-model="studentManage.stuNum" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入学号">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="addPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="studentManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('add')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="studentManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="studentManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">宿舍楼</label>
<div class="col-sm-7">
<input v-model="studentManage.dormBuildId" type="text" class="form-control" id="addDormBuildId" required="required" name="dormBuildId"
placeholder="请输入宿舍楼">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">寝室号</label>
<div class="col-sm-7">
<input v-model="studentManage.dormName" type="text" class="form-control" id="addDormName" required="required" name="dormName"
placeholder="请输入寝室号">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="studentManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addStudentManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ---------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getStudentMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改宿管信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">学号</label>
<div class="col-sm-7">
<input v-model="studentManage.stuNum" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入学号">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="editPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="studentManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('add')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="studentManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="studentManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">宿舍楼</label>
<div class="col-sm-7">
<input v-model="studentManage.dormBuildId" type="text" class="form-control" id="addDormBuildId" required="required" name="dormBuildId"
placeholder="请输入宿舍楼">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">寝室号</label>
<div class="col-sm-7">
<input v-model="studentManage.dormName" type="text" class="form-control" id="addDormName" required="required" name="dormName"
placeholder="请输入寝室号">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="studentManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataStudentManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/admin_studentManage.js"></script>
<script src="../js/vue/admin_loginManage.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

@ -1,166 +0,0 @@
* {
margin: 0;
padding: 0;
}
body {
/* background-image: linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)), url(../img/bg.jpg); */
background-color: rgb(1,112,254);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
z-index:-2000;
}
#bg{
background-repeat: no-repeat;
background-attachment: fixed;
background-size:cover;
position:fixed;
width:100%;
height:100%;
z-index:-1000;
opacity:0.8;
}
.login-box {
width: 60%;
position: absolute;
left: 50%;
height: 25em;
top: 50%;
margin-top: -12.5em;
margin-left: -30%;
}
.login-box .bg_title{
width: 100%;
font-weight: bold;
font-size: 2em;
text-align: center;
margin-bottom: 1.2em;
background-color: #4dc47d;
color: white;
float: left;
opacity: 0.8;
}
.login-box .admin,
.login-box .dormManage,
.login-box .student{
width: 30%;
height: 75%;
margin-left: 2.3%;
float: left;
opacity: 0.8;
}
.login-box .admin .titel,
.login-box .dormManage .titel,
.login-box .student .titel{
width: 100%;
height: 15%;
float: left;
line-height: 3em;
text-align: center;
color: white;
font-weight: bold;
font-size: 1em;
background-color: #4dc47d;
}
.login-box .admin .content,
.login-box .dormManage .content,
.login-box .student .content{
background-color: white;
width: 100%;
height: 100%;
}
.login-box .admin .content ul,
.login-box .dormManage .content ul,
.login-box .student .content ul{
width: 100%;
height: 82%;
}
.login-box .admin .content li,
.login-box .dormManage .content li,
.login-box .student .content li{
width: 100%;
font-size:15px;
margin-top: 8px;
float: left;
list-style: none;
text-align:center;
}
.login-box .admin .content button,
.login-box .dormManage .content button,
.login-box .student .content button{
width: 100px;
height: 30px;
float: left;
bottom: 10px;
margin-left: 70px;
color: white;
border: none;
background-color: #4dc47d;
border-radius: 5px;
}
.box2{
display: none
}
.login-box .content{
width: 100%;
margin-left: 0;
}
.content .left{
width: 50%;
height: 100%;
float: left;
background-color: white;
}
.content .right{
width: 50%;
height: 100%;
float: left;
background-color: white;
}
.right ul li{
width: 100%;
height: 25px;
margin-top: 25px;
}
.right ul li input{
height: 25px;
border-radius: 5px;
border: 2px solid #4dc47d;
}
.right .button{
position: relative;
top: 25px;
left: 82px;
}
.right .a{
position: relative;
top: 50px;
left: 35px;
}

@ -1,193 +0,0 @@
.data_list {
border: 1px solid #E5E5E5;
padding: 10px;
background-color: #FDFDFD;
width: 96%;
margin-left:40px;
}
.data_list .data_list_title{
font-size: 15px;
font-weight: bold;
border-bottom: 1px solid #E5E5E5;
padding-bottom: 10px;
padding-top: 5px;
}
.data_list .data_list_title img{
vertical-align: top;
}
.data_list .form-search .btn{
display: inline-block;
padding: 4px 12px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
text-align: center;
vertical-align: middle;
border: 1px solid #cccccc;
cursor: pointer;
border-radius: 4px;
color: #ffffff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
background-color: #4dc47d;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.data_list .data_search select{
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
background-color: #ffffff;
border: 1px solid #cccccc;
}
select, input[type="file"] {
height: 30px;
line-height: 30px;
}
imput{
outline: none;
outline: medium;
}
select,input{
border-radius: 4px;
}
.data_list .diary_datas ul{
list-style-type: none;
}
.data_list .diary_datas ul li{
margin-top: 5px;
}
.data_list .datas{
padding: 5px;
}
.data_list .datas ul {
list-style-type: none;
}
.data_list .datas ul li {
margin-top: 5px;
}
.data_list .user_image{
text-align: center;
}
.data_list .user_image img{
padding-top:10px;
width: 200px;;
height: 250px;;
}
.data_list .nickName , .data_list .userSign{
text-align: center;
}
.data_list .diary_title{
margin-top:20px;
text-align: center;
}
.data_list .diary_info{
text-align: center;
}
.data_list .diary_content{
margin-top:20px;
}
.data_list .diary_action{
margin-top:20px;
}
.data_list .diary_type{
margin-top:10px;
}
.data_list .diary_title{
margin-top:20px;
text-align: center;
}
.data_list .data_list_title .dormBuild_add{
float: right;
margin-right: 20px;
}
.data_list .data_form{
margin-top:20px;
}
.form-search{
margin-top:5px;
margin-bottom: 5px;
}
.data_search{
float:right;
}
.select_form {
margin-top: 5px;
margin-bottom: 5px;
}
.data_select {
float: right;
}
.pagination .pagination_box{
width:14em;
height:2em;
float:right;
}
.pagination .pagination_box .page_up,
.pagination .pagination_box .page_down{
width:5em;
background-color:#4dc47d;
color:white;
border-radius: 3px;
border:none;
}
.pagination .pagination_box .page_cur{
width:4em;
background-color:#F0EEF5;
}
.pagination .pagination_box .page_up,
.pagination .pagination_box .page_cur,
.pagination .pagination_box .page_down{
float:left;
height:100%;
line-height:2em;
text-align:center;
}
.edit_dorm{
border: 1px solid #E5E5E5;
padding: 0;
background-color: #FDFDFD;
width: 100%;
margin-left: 0;
}
.dropdown .dropdown-menu li{
width:100%;
}
.dropdown .dropdown-menu li a{
text-align:center;
}

@ -1,238 +0,0 @@
*{
padding: 0;
}
h4,
h5,
h6,
h1,
h2,
h3 {
margin: 0;
}
ul,
ol {
margin: 0;
padding: 0;
}
p {
margin: 0;
}
html,
body {
font-family: 'OpenSans-Regular';
font-size: 100%;
}
@font-face {
font-family: 'OpenSans-Regular';
src: url(../fonts/OpenSans-Regular.ttf)format('truetype');
}
@font-face {
font-family: 'Ubuntu-Medium';
src: url(../fonts/Ubuntu-Medium.ttf) format('truetype');
}
body a {
transition: 0.5s all;
-webkit-transition: 0.5s all;
-moz-transition: 0.5s all;
-o-transition: 0.5s all;
-ms-transition: 0.5s all;
}
/*-- banner --*/
.banner {
background: url(../img/banner.jpg) no-repeat;
background-size: cover;
min-height: 270px;
}
.logo {
float: left;
margin-left: 5em;
width: 14em;
height: 5em;
background-color: #4dc47d;
}
.logo a{
display:block;
width:100%;
height:100%;
color:white;
text-decoration:none;
font-size:25px;
font-weight:blod;
line-height:70px;
text-align:center;
}
.top-menu {
float: right;
background: #4dc47d;
margin: 13em 0 0 0;
padding: 0 11em 0 0em;
}
.top-menu ul li {
display: inline-block;
}
.top-menu ul li a {
display: block;
color: #181a1b;
font-size: 1.1em;
padding: 1em 1em;
text-decoration: none;
}
.top-menu ul li.active a,
.top-menu ul li a:hover {
color: #fff;
}
.center-conent {
padding: 3em 0;
}
.center-content{
width: 90%;
height: 100%;
float: left;
margin-left: 5%;
/* background-color: #169FE6; */
}
.center-content .left{
width: 23%;
height: 100%;
float: left;
/* background-color: red; */
}
.center-content .right{
width: 77%;
float: left;
height: 100%;
margin-top: 20px;
/* background-color: blue; */
}
.center-content .left .gongGao{
margin-top: 20px;
width: 100%;
float: left;
}
.center-content .left .gongGao .title{
width: 100%;
height: 40px;
text-align: center;
background-color: #4dc47d;
color: #fff;
font-size: 20px;
line-height: 40px;
}
.center-content .left .gongGao .context{
width: 100%;
min-height: 150px;
background-color: #FDFDFD;
color: black;
font-size: 16px;
padding:10px;
}
.center-content .left .gongGao .import{
height: 150px;
}
.center-content .left .gongGao .context marquee label{
font-size:14px;
font-weight:normal;
}
.center-content .left .gongGao .context a{
display: block;
margin-top: 5px;
}
.center-content .left .container{
width: 100%;
}
/*-- footer --*/
.copywrite {
background: #4dc47d;
width: 100%;
height: 50px;
float: left;
}
.copywrite .container{
width:100%;
height:100%
}
.copywrite p {
display: inline-block;
margin-left: auto;
margin-right: auto;
color: #fff;
font-size: 1em;
text-align: left;
margin-top:20px;
margin-left:170px;
}
.copywrite p a {
color: #fff;
}
@media (max-width: 1024px) {
.logo {
width: 17%
}
.logo img {
background-size: 100%;
width: 100%
}
.top-menu {
padding: 0 5em 0 2em;
}
.top-menu ul li a {
font-size: 0.95em;
}
.banner {
min-height: 200px;
}
}
.center-content .right .data_list .wele{
width:100%;
font-size: 40px;
}
.center-content .right .data_list .list-content{
margin-top:20px;
}
.center-content .right .data_list .list-content .quanxian{
font-size:30px;
}
.center-content .right .data_list .list-content li{
font-size:20px;
list-style: none;
margin-top:20px;
}

@ -1,258 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】 宿管首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-dropdown.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session_app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li class="active">
<a href="javascript:window.location.reload();">首页</a>
</li>
<li >
<a href="studentManage.html">学生信息</a>
</li>
<li>
<a href="recordManage.html">考勤信息</a>
</li>
<li>
<a href="punchClockManage.html">打卡信息</a>
</li>
<li class="dropdown">
<a href="#" class="" role="button" data-hover="dropdown">我的</a>
<ul class="dropdown-menu">
<li onclick="my()"><a href="#updateinfo" data-toggle="modal">个人资料</a></li>
<li><a href="#updatepwd" data-toggle="modal">修改密码</a></li>
<li><a href="javascript:exitSys();">退出</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context import">
<marquee width="100%" height="100%" direction="up" scrolldelay="300">
<div v-for="item in noticeList">
<label>发布人:{{item.noticePerson}}</label><br>
<label>发布时间:{{item.date}}</label><br>
<label>{{item.content}}</label><br>
<label>-------------------------------------------</label><br>
</div>
</marquee>
</div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="wele">宿舍管理员,欢迎你登录寝室管理系统</div>
<div class="list-content">
<div class="quanxian">你拥有以下权限</div>
<ul>
<li>1、查看公告</li>
<li>2、查看、删除自己管理的学生</li>
<li>3、添加、修改、删除考勤记录</li>
<li>4、查看学生打卡记录</li>
<li>5、查看、修改个人信息</li>
</ul>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!-------------------------个人资料模糊框------------------------------------->
<form class="form-horizontal" method="get" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="updateinfo" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
<div id="user_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="ModalLabel">
个人资料
</h4>
</div>
<div class="modal-body">
<!--正文-->
<input type="hidden" name="tip" value="2">
<input type="hidden" name="url" value="admin/index">
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">用户名</label>
<div class="col-sm-7">
<input v-model="user.userName" type="text" class="form-control" placeholder="请输入用户名"
>
<label class="control-label" for="name" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">真实姓名</label>
<div class="col-sm-7">
<input v-model="user.name" type="text" class="form-control" id="name" name="name" placeholder="请输入您的真实姓名">
<label class="control-label" for="name" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">手机号</label>
<div class="col-sm-7">
<input v-model="user.tel" type="text" class="form-control" id="phone" name="tel" placeholder="请输入您的手机号">
<label class="control-label" for="phone" style="display: none"></label>
</div>
</div>
<!--正文-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button onclick="editMyMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------------------------------------->
<!-------------------------------------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="updatepwd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="updatepwd_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
修改密码
</h4>
</div>
<div class="modal-body">
<!--正文-->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">原密码</label>
<div class="col-sm-7">
<input required="required" onBlur="checkedPassword()" type="password" class="form-control" name="password" id="oldPwd"
placeholder="请输入原密码">
<label class="control-label" for="oldPwd" style="display: none"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">新密码</label>
<div class="col-sm-7">
<input required="required" type="password" class="form-control" name="password2" id="newPwd"
placeholder="请输入新密码">
<label class="control-label" for="newPwd" style="display: none"></label>
</div>
</div>
<!--正文-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="editPassword()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------------------------------------->
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/dormManage_dormManage.js"></script>
<script src="../js/vue/dormManage_loginManage.js"></script>
</body>
</html>

@ -1,166 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】宿管端端 打卡记录</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session_app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="dormManage_index.html">首页</a>
</li>
<li>
<a href="studentManage.html">学生信息</a>
</li>
<li>
<a href="recordManage.html">考勤信息</a>
</li>
<li class="active">
<a href="#">打卡信息</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context import">
<marquee width="100%" height="100%" direction="up" scrolldelay="300">
<div v-for="item in noticeList">
<label>发布人:{{item.noticePerson}}</label><br>
<label>发布时间:{{item.date}}</label><br>
<label>{{item.content}}</label><br>
<label>-------------------------------------------</label><br>
</div>
</marquee>
</div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
打卡记录
</div>
<form name="myForm" class="form-search" method="post" action="#">
<span class="data_search">
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="date" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchRecordMsg()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>发起日期</th>
<th>发起人</th>
<th>打卡主题</th>
<th>打卡说明</th>
<th>学生学号</th>
<th>学生姓名</th>
<th>宿舍楼</th>
<th>寝室号</th>
<th>手机</th>
<th>是否打卡</th>
<th>打卡内容</th>
</tr>
<tr v-for="(item,index) in punchClockRecordManageList">
<td>{{index+1}}</td>
<td>{{item.punchClockDate}}</td>
<td>{{item.punchClockPerson}}</td>
<td>{{item.punchClockTheme}}</td>
<td>{{item.punchClockDetail}}</td>
<td>{{item.stuNum}}</td>
<td>{{item.name}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.dormName}}</td>
<td>{{item.tel}}</td>
<td>{{item.record==true?'已打卡':'未打卡'}}</td>
<td>{{item.punckClockContent}}</td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<script src="../js/vue/dormManage_punchClockRecordManage.js"></script>
<script src="../js/vue/dormManage_loginManage.js"></script>
</body>
</html>

@ -1,262 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】考勤管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
<script src="../js/jquerysession.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session_app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="dormManage_index.html">首页</a>
</li>
<li>
<a href="studentManage.html">学生信息</a>
</li>
<li class="active">
<a href="#">考勤信息</a>
</li>
<li>
<a href="punchClockManage.html">打卡信息</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context import">
<marquee width="100%" height="100%" direction="up" scrolldelay="300">
<div v-for="item in noticeList">
<label>发布人:{{item.noticePerson}}</label><br>
<label>发布时间:{{item.date}}</label><br>
<label>{{item.content}}</label><br>
<label>-------------------------------------------</label><br>
</div>
</marquee>
</div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
考勤管理
</div>
<form name="myForm" class="form-search" method="post" action="#">
<button onclick="addRecordJILU()" type="button" class="btn btn-primary" id="btn_add" data-toggle="modal"
data-target="#addModal">添加记录</button>
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="studentName">姓名</option>
<option value="studentNumber">学号</option>
<option value="dormName">寝室号</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchDormManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>日期</th>
<th>学号</th>
<th>姓名</th>
<th>宿舍楼</th>
<th>寝室号</th>
<th>记录</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in recordMsgList">
<td>{{index+1}}</td>
<td>{{item.date}}</td>
<td>{{item.studentNumber}}</td>
<td>{{item.studentName}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.dormName}}</td>
<td>{{item.detail}}</td>
<td><button class="btn btn-mini btn-info" type="button" @click="getRecordById(item.recordId)" id="btn_edit" data-toggle="modal" data-target="#updateModal">修改</button>&nbsp;
<button class="btn btn-mini btn-danger" type="button" @click="recordManagerDeleteById(item.recordId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addRecordMsg_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加记录
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">添加学生</label>
<div class="col-sm-7">
<select v-model="stuIndex" class="form-control" id="addSex" name="sex">
<option value="-1">请选择学生</option>
<option v-for="(item,index) in studentManageList" v-bind:value="index">{{item.name}}</option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">记录</label>
<div class="col-sm-7">
<input v-model="recordMsg.detail" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入记录">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addRecordMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ---------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getRecordMsgById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改考勤记录信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">考勤信息</label>
<div class="col-sm-7">
<input v-model="recordMsg.detail" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入考勤信息">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataRecordMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/dormManage_recordManage.js"></script>
<script src="../js/vue/dormManage_loginManage.js"></script>
</body>
</html>

@ -1,380 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>公众号【C you again】学生管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<link href="../css/style.css" rel='stylesheet' type='text/css' />
<link href="../css/dorm.css" rel='stylesheet' type='text/css' />
<link href="../css/bootstrap/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/vue/vue.js"></script>
<script src="../js/vue/axios.min.js"></script>
<script src="../js/jquerysession.js"></script>
</head>
<body >
<!-- banner -->
<div class="banner" >
<div class="header">
<div class="logo" id="session_app">
<a href="javascript:window.location.reload();">{{login.userName}}</a>
</div>
<div class="top-menu">
<ul class="navig">
<li>
<a href="dormManage_index.html">首页</a>
</li>
<li class="active">
<a href="#">学生信息</a>
</li>
<li>
<a href="recordManage.html">考勤信息</a>
</li>
<li>
<a href="punchClockManage.html">打卡信息</a>
</li>
</ul>
</div>
</div>
</div>
<!---->
<!-- -->
<div class="center-content" id="app">
<div class="left">
<div class="gongGao">
<div class="title">公 告</div>
<div class="context import">
<marquee width="100%" height="100%" direction="up" scrolldelay="300">
<div v-for="item in noticeList">
<label>发布人:{{item.noticePerson}}</label><br>
<label>发布时间:{{item.date}}</label><br>
<label>{{item.content}}</label><br>
<label>-------------------------------------------</label><br>
</div>
</marquee>
</div>
</div>
<div class="gongGao">
<div class="title">友 情 链 接</div>
<div class="context">
<a href="https://blog.csdn.net/qq_40625778">》CSDN技术分享</a>
<a href="https://gzh.cyouagain.cn/">》热门文章推荐</a>
<a href="https://y0ahx3.coding-pages.com/">》个人博客,系统源码大全</a>
<a href="https://www.cnblogs.com/cafuc20160512056/">》博客园,技术分享</a>
<a href="https://www.jianshu.com/u/33531987c9a7">》简书,技术分享</a>
</div>
</div>
<div class="gongGao">
<div class="title">源 码 下 载</div>
<div class="context">
<div style="font-size:14px; width: 100%; height: 400px;margin-bottom: 20px;">
<div style="padding: 5px; color: black">
<label style="font-size:15px;font-weight: normal;">下载源码请到公众号C you again</label><br />
<label style="font-size:15px;font-weight: normal;">1、求职者面试题、面试经验、面试技巧</label><br />
<label style="font-size:15px;font-weight: normal;">2、职场人技术分享、程序人生</label><br />
<label style="font-size:15px;font-weight: normal;">3、学生党Java从入门到精通PDF版教程、数据结构与算法、各类系统实战教程</label><br />
<label style="font-size:15px;font-weight: normal;">4、其它PPT模板、简历模板、计算机使用技术及技巧</label>
</div>
<img width="160px" style="margin-left:50px;" src="../img/gzh.jpg" />
</div>
</div>
</div>
</div>
<div class="right">
<div class="data_list">
<div class="data_list_title">
学生信息
</div>
<form name="myForm" class="form-search" method="post" action="#">
<span class="data_search">
<select v-model="search.filter" id="searchType" name="searchType" style="width: 80px;">
<option value="name">姓名</option>
<option value="stuNum">学号</option>
<option value="dormName">寝室号</option>
</select>
&nbsp;<input v-model="search.key" id="s_dormManagerText" name="s_dormManagerText" type="text" style="width:120px;height: 30px;" class="input-medium search-query" >
&nbsp;<button onclick="searchDormManage()" type="button" class="btn btn-info" >搜索</button>
</span>
</form>
<div>
<table class="table table-hover table-striped table-bordered">
<tr>
<th>编号</th>
<th>学号</th>
<th>姓名</th>
<th>性别</th>
<th>宿舍楼</th>
<th>寝室号</th>
<th>手机</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in studentManageList">
<td>{{index+1}}</td>
<td>{{item.stuNum}}</td>
<td>{{item.name}}</td>
<td>{{item.sex}}</td>
<td>{{item.dormBuildId==0?'暂未安排':item.dormBuildId+'栋'}}</td>
<td>{{item.dormName}}</td>
<td>{{item.tel}}</td>
<td>
<button class="btn btn-mini btn-danger" type="button" @click="studentMsgDeleteById(item.studentId)">删除</button></td>
</tr>
</table>
</div>
<div class="pagination pagination-centered">
<div class="pagination_box">
<button id="page_up" type="button" onclick="pageUp()" class="page_up">上一页</button>
<div class="page_cur">{{pagination.pageNum}}/{{pagination.pageTotal}}</div>
<button id="page_down" onclick="pageDown()" type="button" class="page_down">下一页</button>
</div>
</div>
</div>
</div>
</div>
<!---->
<div class="copywrite">
<div class="container">
<p>版权声明此系统来自于公众号【C you again】使用过程中请注明来源欢迎大家学习参考
<a href="https://cyouagain.cn/">公众号官网,点击查看更细系统源码</a> |
<a href="https://gzh.cyouagain.cn/">热文推荐</a>
</p>
</div>
</div>
<!--------------------------------------添加的模糊框------------------------>
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<!-- 模态框Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div id="addStudentManage_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="myModalLabel">
添加学生
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">学号</label>
<div class="col-sm-7">
<input v-model="studentManage.stuNum" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入学号">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="addPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="studentManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('add')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="studentManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="studentManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">宿舍楼</label>
<div class="col-sm-7">
<input v-model="studentManage.dormBuildId" type="text" class="form-control" id="addDormBuildId" required="required" name="dormBuildId"
placeholder="请输入宿舍楼">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">寝室号</label>
<div class="col-sm-7">
<input v-model="studentManage.dormName" type="text" class="form-control" id="addDormName" required="required" name="dormName"
placeholder="请输入寝室号">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="studentManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<!---------------------表单-------------------->
</div>
<div class="modal-footer">
<button onclick="exit()" type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="addStudentManageMsg()" class="btn btn-primary hidden_btn">
添加
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!--------------------------------------添加的模糊框------------------------>
<!------------------------------ 修改模态框Modal ---------------------------------->
<form class="form-horizontal" method="post" action="#"> <!--保证样式水平不混乱-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog" aria-labelledby="updateModalLabel"
aria-hidden="true">
<div id="getStudentMangerById_app" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" id="updateModalLabel">
修改宿管信息
</h4>
</div>
<div class="modal-body">
<!---------------------表单-------------------->
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">学号</label>
<div class="col-sm-7">
<input v-model="studentManage.stuNum" type="text" class="form-control" id="addStuNum" required="required" name="stuNum"
placeholder="请输入学号">
<label class="control-label" for="addUserName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">密码</label>
<div class="col-sm-7">
<input type="password" class="form-control" id="editPassword" required="required" name="password"
placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">重复密码</label>
<div class="col-sm-7">
<input v-model="studentManage.password" type="password" class="form-control" id="addPassword2" required="required" name=""
onBlur="checkPassword('add')" placeholder="请输入密码">
<label class="control-label" for="addPassword" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">姓名</label>
<div class="col-sm-7">
<input v-model="studentManage.name" type="text" class="form-control" id="addName" required="required" name="name"
placeholder="请输入姓名">
<label class="control-label" for="addName" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">性别</label>
<div class="col-sm-7">
<select v-model="studentManage.sex" class="form-control" id="addSex" name="sex">
<option value="0"></option>
<option value="1" ></option>
</select>
<label class="control-label" for="addSex" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">宿舍楼</label>
<div class="col-sm-7">
<input v-model="studentManage.dormBuildId" type="text" class="form-control" id="addDormBuildId" required="required" name="dormBuildId"
placeholder="请输入宿舍楼">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">寝室号</label>
<div class="col-sm-7">
<input v-model="studentManage.dormName" type="text" class="form-control" id="addDormName" required="required" name="dormName"
placeholder="请输入寝室号">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
<div class="form-group">
<label for="firstname" class="col-sm-3 control-label">联系电话</label>
<div class="col-sm-7">
<input v-model="studentManage.tel" type="text" class="form-control" id="addTel" required="required" name="tel"
placeholder="请输入电话">
<label class="control-label" for="tel" style="display: none;"></label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" onclick="updataStudentManageMsg()" class="btn btn-primary">
修改
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</form>
<!-------------------------------修改的模态框------------------------------->
<script src="../js/vue/dormManage_studentManage.js"></script>
<script src="../js/vue/dormManage_loginManage.js"></script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 543 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

@ -1,62 +0,0 @@
//判断是否是PC端
window.onload=function(){
isPc();
}
function isPc(){
var sUserAgent = navigator.userAgent.toLowerCase();
if (/iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent)) {
}
//PC端
else{
var bg_pc =["0.jpg", "1.jpg", "2.jpg","3.jpg","4.jpg","5.jpg"]; //(设定想要显示的图片)
var length=bg_pc.length;
var imgPath="dorm/img/bg_pc/";
var pc=$("#bg");
$("#body").css({
backgroundImage:"linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)),url("+imgPath+bg_pc[getIndex(length)]+")"
});
setInterval(function (){time(pc,bg_pc,length,imgPath)},5000);//循环调用time1()函数时间间隔为2000ms
}
}
function time(object,arr,length,imgPath){
object.fadeOut(1000,function(){
object.css({
backgroundImage:"linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)),url("+imgPath+arr[getIndex(length)]+")"
});
})
object.fadeIn(1500);
}
function getIndex(length){
return Math.floor(Math.random()*length);
}
function move(titel,role){
if(role=='admin'){
$("#role").val("admin")
}
if(role=="dormManager"){
$("#role").val("dormManager")
}
if(role=='student'){
$("#role").val("student")
}
$(".role_titel").text(titel)
$(".box1").slideToggle('slow',function(){
$(".box2").slideToggle()
})
}

@ -1,3 +0,0 @@
(function(e,t,n){var r=e();e.fn.dropdownHover=function(n){r=r.add(this.parent());return this.each(function(){var i=e(this),s=i.parent(),o={delay:500,instantlyCloseOthers:!0},u={delay:e(this).data("delay"),instantlyCloseOthers:e(this).data("close-others")},a=e.extend(!0,{},o,n,u),f;s.hover(function(e){if(!s.hasClass("open")&&!i.is(e.target))return!0;a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")},function(){f=t.setTimeout(function(){s.removeClass("open")},a.delay)});i.hover(function(){a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")});s.find(".dropdown-submenu").each(function(){var n=e(this),r;n.hover(function(){t.clearTimeout(r);n.children(".dropdown-menu").show();n.siblings().children(".dropdown-menu").hide()},function(){var e=n.children(".dropdown-menu");r=t.setTimeout(function(){e.hide()},a.delay)})})})};e(document).ready(function(){e('[data-hover="dropdown"]').dropdownHover()})})(jQuery,this);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1,133 +0,0 @@
(function($){
var cookieExpireTime = 1209600; // cookie项过期时间 2周
$.session = {
_id: null,
_cookieCache: undefined,
_init: function()
{
//if (!window.name) {
// window.name = Math.random();
//}
//this._id = window.name;
// 如果id设置为动态会导致浏览器不断生成cookie进而导致取值有问题
this._id = 'sessionID';
this._initCache();
// See if we've changed protcols
var matches = (new RegExp(this._generatePrefix() + "=([^;]+);")).exec(document.cookie);
if (matches && document.location.protocol !== matches[1]) {
this._clearSession();
for (var key in this._cookieCache) {
try {
window.sessionStorage.setItem(key, this._cookieCache[key]);
} catch (e) {};
}
}
document.cookie = this._generatePrefix() + "=" + document.location.protocol + ';path=/;expires=' + (new Date((new Date).getTime() + 28800000 + cookieExpireTime)).toUTCString(); // 28800000 含义:世界时间+8天=北京时间
},
_generatePrefix: function()
{
return '__session:' + this._id + ':';
},
_initCache: function()
{
var cookies = document.cookie.split(';');
this._cookieCache = {};
for (var i in cookies) {
var kv = cookies[i].split('=');
if ((new RegExp(this._generatePrefix() + '.+')).test(kv[0]) && kv[1]) {
this._cookieCache[kv[0].split(':', 3)[2]] = kv[1];
}
}
},
_setFallback: function(key, value, onceOnly)
{
var cookie = this._generatePrefix() + key + "=" + value + ";path=/";
if (onceOnly) { // 只一次设置项,为其添加过期时间,过期自动删除
cookie += ";expires=" + (new Date(Date.now() + 28800000 + cookieExpireTime)).toUTCString();
}
document.cookie = cookie;
this._cookieCache[key] = value;
return this;
},
_getFallback: function(key)
{
if (!this._cookieCache) {
this._initCache();
}
return this._cookieCache[key];
},
_clearFallback: function()
{
for (var i in this._cookieCache) {
document.cookie = this._generatePrefix() + i + '=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
this._cookieCache = {};
},
_deleteFallback: function(key)
{
document.cookie = this._generatePrefix() + key + '=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;'; // 把有效时间设置为过期
delete this._cookieCache[key];
},
get: function(key)
{
return window.sessionStorage.getItem(key) || this._getFallback(key);
},
set: function(key, value, onceOnly)
{
try {
window.sessionStorage.setItem(key, value);
} catch (e) {}
this._setFallback(key, value, onceOnly || false);
return this;
},
'delete': function(key){
return this.remove(key);
},
remove: function(key)
{
try {
window.sessionStorage.removeItem(key);
} catch (e) {};
this._deleteFallback(key);
return this;
},
_clearSession: function()
{
try {
window.sessionStorage.clear();
} catch (e) {
for (var i in window.sessionStorage) {
window.sessionStorage.removeItem(i);
}
}
},
clear: function()
{
this._clearSession();
this._clearFallback();
return this;
}
};
$.session._init();
})(jQuery);

@ -1,8 +0,0 @@
/*! http://responsiveslides.com v1.54 by @viljamis */
(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on",
w=d+"_s",k=c("<ul class='"+g+"_tabs "+d+"_tabs' />"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c<s.length;c++)if("string"===typeof b[s[c]+a])return!0;return!1}(),z=function(b){a.before(b);F?(e.removeClass(j).css(y).eq(b).addClass(j).css(x),
n=b,setTimeout(function(){a.after(b)},h)):e.stop().fadeOut(h,function(){c(this).removeClass(j).css(y).css("opacity",1)}).eq(b).fadeIn(h,function(){c(this).addClass(j).css(x);a.after(b);n=b})};a.random&&(e.sort(function(){return Math.round(Math.random())-0.5}),f.empty().append(e));e.each(function(a){this.id=w+a});f.addClass(g+" "+d);l&&l.maxwidth&&f.css("max-width",u);e.hide().css(y).eq(0).addClass(j).css(x).show();F&&e.show().css({"-webkit-transition":"opacity "+h+"ms ease-in-out","-moz-transition":"opacity "+
h+"ms ease-in-out","-o-transition":"opacity "+h+"ms ease-in-out",transition:"opacity "+h+"ms ease-in-out"});if(1<e.size()){if(D<h+100)return;if(a.pager&&!a.manualControls){var A=[];e.each(function(a){a+=1;A+="<li><a href='#' class='"+w+a+"'>"+a+"</a></li>"});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q=
k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1<C?n+1:0;(a.pager||a.manualControls)&&r(b);z(b)},D)},t());m=function(){a.auto&&(clearInterval(p),t())};a.pause&&f.hover(function(){clearInterval(p)},function(){m()});if(a.pager||a.manualControls)q.bind("click",function(b){b.preventDefault();a.pauseControls||m();b=q.index(this);n===b||c("."+j).queue("fx").length||(r(b),z(b))}).eq(0).closest("li").addClass(v),
a.pauseControls&&q.hover(function(){clearInterval(p)},function(){m()});if(a.nav){g="<a href='#' class='"+E+" prev'>"+a.prevText+"</a><a href='#' class='"+E+" next'>"+a.nextText+"</a>";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1<C?n+1:0;z(c(this)[0]===G[0]?b:d);if(a.pager||a.manualControls)r(c(this)[0]===G[0]?b:d);a.pauseControls||m()}});
a.pauseControls&&d.hover(function(){clearInterval(p)},function(){m()})}}if("undefined"===typeof document.body.style.maxWidth&&l.maxwidth){var H=function(){f.css("width","100%");f.width()>u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0);

@ -1,81 +0,0 @@
/**
*
*/
window.onload=function(){
getSession({role:"admin"});
}
/*--------------------个人--------------------*/
function my(){
console.log(this.session_vue.login.adminId)
var that=this;
axios.post('../../getMyMsgById',this.session_vue.login).then(function (res) {
that.user_vue.user=res.data;
}).catch(function (error) {
alert(error);
});
}
function editMyMsg(){
var admin=this.user_vue.user;
that=this;
axios.post('../../updateMyMsgById',admin).then(function (res) {
console.log(res)
if(res.data.result==true){
window.location.reload()
}
}).catch(function (error) {
alert(error);
});
}
function checkedPassword(){
my();
var password= this.user_vue.user.password;
var oldPwd=$("#oldPwd").val().trim();
if(password != null && password == oldPwd){
}
else{
alert("原密码不正确")
console.log(password)
console.log(oldPwd)
$("#oldPwd").val('')
}
}
function editPassword(){
var newPwd=$("#newPwd").val().trim();
this.user_vue.user.password=newPwd;
var admin =this.user_vue.user;
console.log(admin)
axios.post('../../updatePsd',admin).then(function (res) {
console.log(res)
if(res.data.result==true){
window.location.reload();
}
}).catch(function (error) {
alert(error);
});
}
/*--------------------个人--------------------*/
var user_vue=new Vue({
el:'#user_app',
data:{
user:{
}
}
});

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save