Compare commits

...

8 Commits
Ablish ... main

@ -59,7 +59,6 @@
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
@ -69,7 +68,6 @@
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>

@ -1,77 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<webroots />
<sourceRoots>
<root url="file://$MODULE_DIR$/src/main/java" />
<root url="file://$MODULE_DIR$/src/main/resources" />
</sourceRoots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.5.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.5.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.5.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.5.9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.5.9" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.10" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.10" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.33" level="project" />
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.28" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.5.9" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.12.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.12.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.12.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.6" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.5.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.56" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.56" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.56" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.15" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.28" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.5.9" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.33" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.15" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.1" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.9" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.4.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.5" level="project" />
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.8.18" level="project" />
</component>
</module>

@ -0,0 +1,6 @@
package com.example.common;
public enum RoleEnum {
ADMIN, // 管理员
STUDENT // 学生
}

@ -0,0 +1,57 @@
package com.example.controller;
import com.example.common.Result;
import com.example.entity.Course;
import com.example.service.CourseService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/course")
public class CourserController {
@Resource
private CourseService courseService;
/**
*
*/
@GetMapping("/selectPage")
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "5") Integer pageSize,
Course course) { // ?name=xx&no=xx
PageInfo<Course> pageInfo = courseService.selectPage(pageNum, pageSize, course);
return Result.success(pageInfo);
}
/**
*
*/
@PostMapping("/add")
public Result add(@RequestBody Course course) {
courseService.add(course);
return Result.success();
}
/**
*
*/
@PutMapping("/update")
public Result update(@RequestBody Course course) {
courseService.updateById(course);
return Result.success();
}
/**
*
*/
@DeleteMapping("/delete/{id}")
public Result delete(@PathVariable Integer id) {
courseService.deleteById(id);
return Result.success();
}
}

@ -0,0 +1,64 @@
package com.example.controller;
import cn.hutool.core.io.FileUtil;
import com.example.common.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.net.URLEncoder;
@RestController
@RequestMapping("/files")
public class FileController {
@Value("${ip}")
private String ip;
@Value("${server.port}")
private String port;
private static final String ROOT_PATH = System.getProperty("user.dir") + "/files";
/**
*
*/
@PostMapping("/upload")
public Result upload(MultipartFile file) throws IOException {
String originalFilename = file.getOriginalFilename(); // 获取到原始的文件名 aaa.png aaa.png
long flag = System.currentTimeMillis(); // 唯一标识
String fileName = flag + "_" + originalFilename; // 1561231313132_aaa.png
File finalFile = new File(ROOT_PATH + "/" + fileName); // 最终存到磁盘的文件对象
if (!finalFile.getParentFile().exists()) { // 如果父级目录不存在 就得创建
finalFile.getParentFile().mkdirs();
}
file.transferTo(finalFile);
// 返回文件的url
String url = "http://" + ip + ":" + port + "/files/download?fileName=" + fileName;
return Result.success(url);
}
/**
*
*/
@GetMapping("/download")
public void download(String fileName, HttpServletResponse response) throws IOException {
File file = new File(ROOT_PATH + "/" + fileName); // 文件在存盘存储的对象
ServletOutputStream os = response.getOutputStream();
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8"));
response.setContentType("application/octet-stream");
// os.write(FileUtil.readBytes(file));
FileUtil.writeToStream(file, os);
os.flush();
os.close();
}
}

@ -0,0 +1,54 @@
package com.example.controller;
import com.example.common.Result;
import com.example.entity.Grade;
import com.example.service.GradeService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
*
*/
@RestController
@RequestMapping("/grade")
public class GradeController {
@Resource
GradeService gradeService;
@PostMapping("/add")
public Result add(@RequestBody Grade grade) {
gradeService.add(grade);
return Result.success();
}
@PutMapping("/update")
public Result update(@RequestBody Grade grade) {
gradeService.update(grade);
return Result.success();
}
/**
*
*/
@DeleteMapping("/delete/{id}")
public Result delete(@PathVariable Integer id) {
gradeService.deleteById(id);
return Result.success();
}
/**
*
*/
@GetMapping("/selectPage")
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "5") Integer pageSize,
Grade grade) { // ?name=xx&no=xx
PageInfo<Grade> pageInfo = gradeService.selectPage(pageNum, pageSize, grade);
return Result.success(pageInfo);
}
}

@ -0,0 +1,57 @@
package com.example.controller;
import com.example.common.Result;
import com.example.entity.Student;
import com.example.service.StudentService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/student")
public class StudentController {
@Resource
StudentService studentService;
/**
*
*/
@PostMapping("/add")
public Result add(@RequestBody Student student) {
studentService.add(student);
return Result.success();
}
/**
*
*/
@DeleteMapping("/delete/{id}")
public Result delete(@PathVariable Integer id) {
studentService.deleteById(id);
return Result.success();
}
/**
*
*/
@PutMapping("/update")
public Result update(@RequestBody Student student) {
studentService.updateById(student);
return Result.success();
}
/**
*
*/
@GetMapping("/selectPage")
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "10") Integer pageSize,
Student student) {
PageInfo<Student> pageInfo = studentService.selectPage(pageNum, pageSize, student);
return Result.success(pageInfo);
}
}

@ -0,0 +1,48 @@
package com.example.controller;
import com.example.common.Result;
import com.example.entity.Course;
import com.example.entity.StudentCourse;
import com.example.service.StudentCourseService;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@RestController
@RequestMapping("/studentCourse")
public class StudentCourseController {
@Resource
StudentCourseService studentCourseService;
/**
*
*/
@PostMapping("/add")
public Result add(@RequestBody StudentCourse studentCourse) {
studentCourseService.add(studentCourse);
return Result.success();
}
/**
*
*/
@DeleteMapping("/delete/{id}")
public Result delete(@PathVariable Integer id) {
studentCourseService.deleteById(id);
return Result.success();
}
/**
*
*/
@GetMapping("/selectPage")
public Result selectPage(@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "5") Integer pageSize,
StudentCourse studentCourse) { // ?name=xx&no=xx
PageInfo<StudentCourse> pageInfo = studentCourseService.selectPage(pageNum, pageSize, studentCourse);
return Result.success(pageInfo);
}
}

@ -1,8 +1,11 @@
package com.example.controller;
import cn.hutool.core.util.ObjectUtil;
import com.example.common.Result;
import com.example.entity.Admin;
import com.example.common.RoleEnum;
import com.example.entity.Account;
import com.example.service.AdminService;
import com.example.service.StudentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ -16,6 +19,8 @@ public class WebController {
@Resource
private AdminService adminService;
@Resource
private StudentService studentService;
/**
*
@ -28,9 +33,28 @@ public class WebController {
/**
*
*/
@PostMapping("/login")
public Result login(@RequestBody Admin admin) {
Admin dbAdmin=adminService.login(admin);
@PostMapping("/login")
public Result login(@RequestBody Account account) {
Account dbAccount;
if (RoleEnum.ADMIN.name().equals(account.getRole())) { // 管理员登录
dbAccount = adminService.login(account);
} else if (RoleEnum.STUDENT.name().equals(account.getRole())) { // 学生登录
dbAccount = studentService.login(account);
} else {
return Result.error("角色错误");
}
return Result.success(dbAccount);
}
/**
*
*/
@PostMapping("/register")
public Result register(@RequestBody Account account) {
if (ObjectUtil.isEmpty(account.getUsername()) || ObjectUtil.isEmpty(account.getPassword())) {
return Result.error("账号或密码必填");
}
studentService.register(account);
return Result.success();
}

@ -0,0 +1,41 @@
package com.example.entity;
public class Account {
private String username;
private String password;
private String name;
private String role;
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
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;
}
}

@ -0,0 +1,60 @@
package com.example.entity;
public class Admin extends Account {
private Integer id;
// 账号
private String username;
// 密码
private String password;
private String name;
private String role;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Override
public String getUsername() {
return username;
}
@Override
public void setUsername(String username) {
this.username = username;
}
@Override
public String getPassword() {
return password;
}
@Override
public void setPassword(String password) {
this.password = password;
}
@Override
public String getName() {
return name;
}
@Override
public void setName(String name) {
this.name = name;
}
@Override
public String getRole() {
return role;
}
@Override
public void setRole(String role) {
this.role = role;
}
}

@ -0,0 +1,58 @@
package com.example.entity;
public class Course {
private Integer id;
private String name;
private String no;
private String descr;
private String times;
private String teacher;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
public String getDescr() {
return descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
public String getTimes() {
return times;
}
public void setTimes(String times) {
this.times = times;
}
public String getTeacher() {
return teacher;
}
public void setTeacher(String teacher) {
this.teacher = teacher;
}
}

@ -0,0 +1,77 @@
package com.example.entity;
public class Grade {
private Integer id;
private Integer courseId;
private Integer studentId;
private Double score;
private String comment;
private String feedback;
private String studentName;
private String courseName;
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
public Integer getStudentId() {
return studentId;
}
public void setStudentId(Integer studentId) {
this.studentId = studentId;
}
public Double getScore() {
return score;
}
public void setScore(Double score) {
this.score = score;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getFeedback() {
return feedback;
}
public void setFeedback(String feedback) {
this.feedback = feedback;
}
}

@ -0,0 +1,97 @@
package com.example.entity;
public class Student extends Account{
private Integer id;
private String username;
private String password;
private String name;
private String phone;
private String email;
private String sex;
private String birth;
private String avatar;
private String role;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
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 String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getBirth() {
return birth;
}
public void setBirth(String birth) {
this.birth = birth;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
@Override
public String getRole() {
return role;
}
@Override
public void setRole(String role) {
this.role = role;
}
}

@ -0,0 +1,60 @@
package com.example.entity;
public class StudentCourse {
private Integer id;
private String name;
private String no;
private Integer studentId;
private Integer courseId;
private String studentName;
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
public Integer getStudentId() {
return studentId;
}
public void setStudentId(Integer studentId) {
this.studentId = studentId;
}
public Integer getCourseId() {
return courseId;
}
public void setCourseId(Integer courseId) {
this.courseId = courseId;
}
}

@ -4,6 +4,7 @@ import com.example.entity.Admin;
import org.apache.ibatis.annotations.Select;
public interface AdminMapper {
@Select("select * from admin where username = #{username}")
Admin selectByUsername(String username);

@ -0,0 +1,26 @@
package com.example.mapper;
import com.example.entity.Course;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
public interface CourseMapper {
@Select("select * from course where name like concat('%', #{name} ,'%') and no like concat('%', #{no} ,'%') " +
"and teacher like concat('%', #{teacher} ,'%') order by id desc")
List<Course> selectAll(Course course);
@Insert("insert into course (name, no,descr,times,teacher) values(#{name}, #{no}, #{descr}, #{times}, #{teacher})")
void insert(Course course);
@Update("update course set name = #{name}, no = #{no}, descr = #{descr}, times = #{times}, teacher = #{teacher} where id = #{id}")
void updateById(Course course);
@Delete("delete from course where id = #{id}")
void deleteById(Integer id);
}

@ -0,0 +1,27 @@
package com.example.mapper;
import com.example.entity.Grade;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
public interface GradeMapper {
@Insert("insert into grade (course_id, student_id, score, comment, feedback) " +
"values (#{courseId}, #{studentId}, #{score}, #{comment}, #{feedback})")
void insert(Grade grade);
List<Grade> selectAll(Grade grade); // 关联查询
@Update("update grade set score = #{score}, comment = #{comment}, feedback = #{ feedback } where id = #{id}")
void update(Grade grade);
@Select("select * from grade where student_id = #{studentId} and course_id = #{courseId}")
Grade selectByCondition(Grade grade);
@Delete("delete from grade where id = #{id}")
void deleteById(Integer id);
}

@ -0,0 +1,23 @@
package com.example.mapper;
import com.example.entity.StudentCourse;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface StudentCourseMapper {
@Insert("insert into student_course (name, no, student_id, course_id) values(#{name}, #{no}, #{studentId}, #{courseId})")
void insert(StudentCourse studentCourse);
@Select("select * from student_course where student_id = #{studentId} and course_id = #{courseId}")
StudentCourse selectByCondition(StudentCourse studentCourse);
// @Select("select * from student_course where name like concat('%', #{name}, '%') and no like concat('%', #{no}, '%') and student_id = #{studentId}")
List<StudentCourse> selectAll(StudentCourse studentCourse);
@Delete("delete from student_course where id = #{id}")
void deleteById(Integer id);
}

@ -0,0 +1,29 @@
package com.example.mapper;
import com.example.entity.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
public interface StudentMapper {
@Select("select * from student where username = #{username}")
Student selectByUsername(String username);
@Insert("insert into student (username, password, name, phone, email, sex, birth, avatar, role) " +
"values (#{username}, #{password}, #{name}, #{phone}, #{email}, #{sex}, #{birth}, #{avatar}, #{role})")
void insert(Student student);
@Delete("delete from student where id = #{id}")
void deleteById(Integer id);
@Update("update student set username = #{username}, password = #{password}, name = #{name}, phone = #{phone}, " +
"email = #{email}, sex = #{sex}, birth = #{birth}, avatar = #{avatar} where id = #{id}")
void updateById(Student student);
@Select("select * from student where username like concat('%', #{username}, '%') and name like concat('%', #{name}, '%') order by id desc")
List<Student> selectAll(Student student);
}

@ -1,4 +1,6 @@
package com.example.service;
import com.example.entity.Account;
import com.example.entity.Admin;
import com.example.exception.CustomException;
import com.example.mapper.AdminMapper;
@ -8,24 +10,25 @@ import javax.annotation.Resource;
@Service
public class AdminService {
@Resource
private AdminMapper adminMapper;
/**
*
*/
public Admin login(Admin admin){
Admin dbAdmin = adminMapper.selectByUsername(admin.getUsername());
if(dbAdmin==null){
//没有用户
public Account login(Account account) {
Account dbAdmin = adminMapper.selectByUsername(account.getUsername());
if (dbAdmin == null) {
// 没有用户
throw new CustomException("账号或密码错误");
}
//比较密码
if(!admin.getPassword().equals(dbAdmin.getPassword())){
// 比较密码
if (!account.getPassword().equals(dbAdmin.getPassword())) {
throw new CustomException("账号或密码错误");
}
//登录成功
// 登录成功
return dbAdmin;
}
}

@ -0,0 +1,38 @@
package com.example.service;
import com.example.entity.Course;
import com.example.mapper.CourseMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CourseService {
@Resource
private CourseMapper courseMapper;
// total 是查询的总数 list是数据列表
// pageNum 当前的页码 pageSize是每页的个数
public PageInfo<Course> selectPage(Integer pageNum, Integer pageSize, Course course) {
PageHelper.startPage(pageNum, pageSize);
List<Course> courseList = courseMapper.selectAll(course);
return PageInfo.of(courseList);
}
// 新增数据
public void add(Course course) {
courseMapper.insert(course);
}
public void updateById(Course course) {
courseMapper.updateById(course);
}
public void deleteById(Integer id) {
courseMapper.deleteById(id);
}
}

@ -0,0 +1,40 @@
package com.example.service;
import com.example.entity.Grade;
import com.example.exception.CustomException;
import com.example.mapper.GradeMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class GradeService {
@Resource
GradeMapper gradeMapper;
public void add(Grade grade) {
Grade dbGrade = gradeMapper.selectByCondition(grade);
if (dbGrade != null) { // 打过分了
throw new CustomException("您已打过分了");
}
gradeMapper.insert(grade);
}
public PageInfo<Grade> selectPage(Integer pageNum, Integer pageSize, Grade grade) {
PageHelper.startPage(pageNum, pageSize);
List<Grade> list = gradeMapper.selectAll(grade);
return PageInfo.of(list);
}
public void update(Grade grade) {
gradeMapper.update(grade);
}
public void deleteById(Integer id) {
gradeMapper.deleteById(id);
}
}

@ -0,0 +1,36 @@
package com.example.service;
import com.example.entity.StudentCourse;
import com.example.exception.CustomException;
import com.example.mapper.StudentCourseMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class StudentCourseService {
@Resource
StudentCourseMapper studentCourseMapper;
public void add(StudentCourse studentCourse) {
StudentCourse course = studentCourseMapper.selectByCondition(studentCourse);// 通过学生ID和课程ID做一次查询的筛选看看这个学生之前有没有选过这个课程
if (course != null) {
throw new CustomException("您已选过这个课程");
}
studentCourseMapper.insert(studentCourse);
}
public PageInfo<StudentCourse> selectPage(Integer pageNum, Integer pageSize, StudentCourse studentCourse) {
PageHelper.startPage(pageNum, pageSize);
List<StudentCourse> list = studentCourseMapper.selectAll(studentCourse);
return PageInfo.of(list);
}
public void deleteById(Integer id) {
studentCourseMapper.deleteById(id);
}
}

@ -0,0 +1,79 @@
package com.example.service;
import cn.hutool.core.util.ObjectUtil;
import com.example.common.RoleEnum;
import com.example.entity.Account;
import com.example.entity.Student;
import com.example.exception.CustomException;
import com.example.mapper.StudentMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class StudentService {
@Resource
private StudentMapper studentMapper;
/**
*
*/
public Account login(Account account) {
Account dbStudent = studentMapper.selectByUsername(account.getUsername());
if (dbStudent == null) {
// 没有用户
throw new CustomException("账号或密码错误");
}
// 比较密码
if (!account.getPassword().equals(dbStudent.getPassword())) {
throw new CustomException("账号或密码错误");
}
// 登录成功
return dbStudent;
}
/**
*
*/
public void register(Account account) {
Student student = new Student();
student.setUsername(account.getUsername()); // 账号
student.setPassword(account.getPassword()); // 密码
this.add(student);
}
/**
*
*/
public void add(Student student) {
Student dbStudent = studentMapper.selectByUsername(student.getUsername());
if (dbStudent != null) { // 已有同名账号 不允许插入
throw new CustomException("账号已存在");
}
if (ObjectUtil.isEmpty(student.getName())) {
student.setName(student.getUsername());
}
student.setRole(RoleEnum.STUDENT.name());
studentMapper.insert(student);
}
public void deleteById(Integer id) {
studentMapper.deleteById(id);
}
public void updateById(Student student) {
studentMapper.updateById(student);
}
public PageInfo<Student> selectPage(Integer pageNum, Integer pageSize, Student student) {
PageHelper.startPage(pageNum, pageSize);
List<Student> studentList = studentMapper.selectAll(student);
return PageInfo.of(studentList);
}
}

@ -18,3 +18,6 @@ mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
mapper-locations: classpath:mapper/*.xml
ip: localhost

@ -0,0 +1,22 @@
<?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.example.mapper.GradeMapper">
<select id="selectAll" resultType="com.example.entity.Grade">
select grade.*, student.name as studentName, course.name as courseName
from grade
left join student
on grade.student_id = student.id
left join course
on grade.course_id = course.id
<where>
<if test="studentName != null">and student.name like concat('%', #{studentName}, '%')</if>
<if test="courseName != null">and course.name like concat('%', #{courseName}, '%')</if>
<if test="studentId != null">and grade.student_id = #{studentId}</if>
</where>
order by id desc
</select>
</mapper>

@ -0,0 +1,19 @@
<?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.example.mapper.StudentCourseMapper">
<select id="selectAll" resultType="com.example.entity.StudentCourse">
select student_course.*, student.name as studentName from student_course
left join student
on student_course.student_id = student.id
<where>
<if test="name != null">and student_course.name like concat('%', #{name}, '%')</if>
<if test="no != null">and student_course.no like concat('%', #{no}, '%')</if>
<if test="studentId != null">and student_course.student_id = #{studentId}</if>
</where>
order by id desc
</select>
</mapper>

@ -18,3 +18,6 @@ mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
mapper-locations: classpath:mapper/*.xml
ip: localhost

@ -0,0 +1,22 @@
<?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.example.mapper.GradeMapper">
<select id="selectAll" resultType="com.example.entity.Grade">
select grade.*, student.name as studentName, course.name as courseName
from grade
left join student
on grade.student_id = student.id
left join course
on grade.course_id = course.id
<where>
<if test="studentName != null">and student.name like concat('%', #{studentName}, '%')</if>
<if test="courseName != null">and course.name like concat('%', #{courseName}, '%')</if>
<if test="studentId != null">and grade.student_id = #{studentId}</if>
</where>
order by id desc
</select>
</mapper>

@ -0,0 +1,19 @@
<?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.example.mapper.StudentCourseMapper">
<select id="selectAll" resultType="com.example.entity.StudentCourse">
select student_course.*, student.name as studentName from student_course
left join student
on student_course.student_id = student.id
<where>
<if test="name != null">and student_course.name like concat('%', #{name}, '%')</if>
<if test="no != null">and student_course.no like concat('%', #{no}, '%')</if>
<if test="studentId != null">and student_course.student_id = #{studentId}</if>
</where>
order by id desc
</select>
</mapper>

@ -0,0 +1,111 @@
//waves.vue
<template>
<div data-tname="WaveItem">
<div class="main-container">
<div class="waves">
<div class="wave" v-for="(item, key) in waves" :key="key" :style="item">
<div
v-for="n in wavesConfig.total"
:key="n"
class="wave-item"
:style="{
transform: `scale(${0.1 * Math.sqrt(n - 1)})`, // 使
opacity: 0.3 * (1 / n), //
animationDelay: `${(n - 1) * 0.12}s`, //
animationDuration: `${0.6 +
n * 0.3 +
parseInt(item.width) * 0.002}s`, // 波纹动画时间渐增,表现波纹向外扩散渐慢的效果,波纹尺寸越大动画时间越长。
backgroundColor: wavesConfig.waveColor
}"
></div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "WaveItem",
data() {
return {
waves: [],
wavesConfig: {
maxSize: 300, // px
minSize: 100, // px
zIndexCount: 999, // z-index
waveColor: "#3E8CE3", //
total: 5 //
},
clear: {
delay: 5000,
timeoutId: null
}
};
},
mounted() {
document.getElementById("app").onclick = e => {
this.createWave(e);
this.intervalClearWave();
};
},
methods: {
createWave(e) {
//
if (this.wavesConfig.zIndexCount > 99999) {
this.wavesConfig.zIndexCount = 999;
} else {
this.wavesConfig.zIndexCount++;
}
//
const waveSize = parseInt(
Math.random() * (this.wavesConfig.maxSize - this.wavesConfig.minSize) +
this.wavesConfig.minSize
);
//
this.waves.push({
left: `${e.clientX - waveSize / 2}px`,
top: `${e.clientY - waveSize / 2}px`,
zIndex: this.wavesConfig.zIndexCount,
width: `${waveSize}px`,
height: `${waveSize}px`
});
},
intervalClearWave() {
clearTimeout(this.clear.timeoutId);
this.clear.timeoutId = setTimeout(() => {
this.waves = [];
}, this.clear.delay);
}
}
};
</script>
<style lang="scss" scoped>
.waves {
.wave {
position: fixed;
pointer-events: none; // 穿使穿ie11
@keyframes wave {
to {
//
transform: scale(1);
opacity: 0;
}
}
.wave-item {
width: 100%;
height: 100%;
position: absolute;
border-radius: 100%;
animation: {
name: wave;
fill-mode: forwards; //
timing-function: ease-out; //
}
}
}
}
</style>

@ -1,113 +1,212 @@
{
"hash": "d51fb1a6",
"browserHash": "855e89a7",
"hash": "3bc124fb",
"browserHash": "aa019a94",
"optimized": {
"@element-plus/icons-vue": {
"src": "../../@element-plus/icons-vue/dist/index.js",
"file": "@element-plus_icons-vue.js",
"fileHash": "c233a358",
"fileHash": "b5316f7e",
"needsInterop": false
},
"axios": {
"src": "../../axios/index.js",
"file": "axios.js",
"fileHash": "e95b97f9",
"fileHash": "1028bebd",
"needsInterop": false
},
"element-plus": {
"src": "../../element-plus/es/index.mjs",
"file": "element-plus.js",
"fileHash": "aaacfcf0",
"fileHash": "f5068395",
"needsInterop": false
},
"element-plus/dist/locale/zh-cn.mjs": {
"src": "../../element-plus/dist/locale/zh-cn.mjs",
"file": "element-plus_dist_locale_zh-cn__mjs.js",
"fileHash": "ff784b90",
"fileHash": "95ef5b3a",
"needsInterop": false
},
"vue": {
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "339ebefa",
"fileHash": "1eac3c98",
"needsInterop": false
},
"vue-router": {
"src": "../../vue-router/dist/vue-router.mjs",
"file": "vue-router.js",
"fileHash": "3b6dc7de",
"fileHash": "c8435521",
"needsInterop": false
},
"element-plus/es": {
"src": "../../element-plus/es/index.mjs",
"file": "element-plus_es.js",
"fileHash": "01baab2e",
"fileHash": "ea2ea794",
"needsInterop": false
},
"element-plus/es/components/base/style/index": {
"src": "../../element-plus/es/components/base/style/index.mjs",
"file": "element-plus_es_components_base_style_index.js",
"fileHash": "4140879d",
"fileHash": "0244bd1a",
"needsInterop": false
},
"element-plus/es/components/menu/style/index": {
"src": "../../element-plus/es/components/menu/style/index.mjs",
"file": "element-plus_es_components_menu_style_index.js",
"fileHash": "992401f8",
"fileHash": "c24526e8",
"needsInterop": false
},
"element-plus/es/components/sub-menu/style/index": {
"src": "../../element-plus/es/components/sub-menu/style/index.mjs",
"file": "element-plus_es_components_sub-menu_style_index.js",
"fileHash": "796af30a",
"fileHash": "b76e5b6b",
"needsInterop": false
},
"element-plus/es/components/menu-item/style/index": {
"src": "../../element-plus/es/components/menu-item/style/index.mjs",
"file": "element-plus_es_components_menu-item_style_index.js",
"fileHash": "9aefd327",
"fileHash": "d867ef4d",
"needsInterop": false
},
"element-plus/es/components/icon/style/index": {
"src": "../../element-plus/es/components/icon/style/index.mjs",
"file": "element-plus_es_components_icon_style_index.js",
"fileHash": "b96fc1bb",
"fileHash": "99aa693c",
"needsInterop": false
},
"element-plus/es/components/message/style/index": {
"src": "../../element-plus/es/components/message/style/index.mjs",
"file": "element-plus_es_components_message_style_index.js",
"fileHash": "34efc683",
"fileHash": "a98b5690",
"needsInterop": false
},
"element-plus/es/components/dialog/style/index": {
"src": "../../element-plus/es/components/dialog/style/index.mjs",
"file": "element-plus_es_components_dialog_style_index.js",
"fileHash": "77863f55",
"needsInterop": false
},
"element-plus/es/components/form/style/index": {
"src": "../../element-plus/es/components/form/style/index.mjs",
"file": "element-plus_es_components_form_style_index.js",
"fileHash": "a74d4b70",
"needsInterop": false
},
"element-plus/es/components/button/style/index": {
"src": "../../element-plus/es/components/button/style/index.mjs",
"file": "element-plus_es_components_button_style_index.js",
"fileHash": "9ca2c20b",
"fileHash": "0d3ef3e2",
"needsInterop": false
},
"element-plus/es/components/form-item/style/index": {
"src": "../../element-plus/es/components/form-item/style/index.mjs",
"file": "element-plus_es_components_form-item_style_index.js",
"fileHash": "7565c9dd",
"fileHash": "3d63df4d",
"needsInterop": false
},
"element-plus/es/components/pagination/style/index": {
"src": "../../element-plus/es/components/pagination/style/index.mjs",
"file": "element-plus_es_components_pagination_style_index.js",
"fileHash": "53858407",
"needsInterop": false
},
"element-plus/es/components/table/style/index": {
"src": "../../element-plus/es/components/table/style/index.mjs",
"file": "element-plus_es_components_table_style_index.js",
"fileHash": "56065944",
"needsInterop": false
},
"element-plus/es/components/table-column/style/index": {
"src": "../../element-plus/es/components/table-column/style/index.mjs",
"file": "element-plus_es_components_table-column_style_index.js",
"fileHash": "16c6a7b6",
"needsInterop": false
},
"element-plus/es/components/button/style/index": {
"src": "../../element-plus/es/components/button/style/index.mjs",
"file": "element-plus_es_components_button_style_index.js",
"fileHash": "91ae354d",
"needsInterop": false
},
"element-plus/es/components/input/style/index": {
"src": "../../element-plus/es/components/input/style/index.mjs",
"file": "element-plus_es_components_input_style_index.js",
"fileHash": "e30986b7",
"fileHash": "79cf5722",
"needsInterop": false
},
"element-plus/es/components/message-box/style/index": {
"src": "../../element-plus/es/components/message-box/style/index.mjs",
"file": "element-plus_es_components_message-box_style_index.js",
"fileHash": "7313f17c",
"needsInterop": false
},
"element-plus/es/components/select/style/index": {
"src": "../../element-plus/es/components/select/style/index.mjs",
"file": "element-plus_es_components_select_style_index.js",
"fileHash": "a5b7886f",
"needsInterop": false
},
"element-plus/es/components/option/style/index": {
"src": "../../element-plus/es/components/option/style/index.mjs",
"file": "element-plus_es_components_option_style_index.js",
"fileHash": "1b30b608",
"needsInterop": false
},
"element-plus/es/components/date-picker/style/index": {
"src": "../../element-plus/es/components/date-picker/style/index.mjs",
"file": "element-plus_es_components_date-picker_style_index.js",
"fileHash": "a891b8be",
"needsInterop": false
},
"element-plus/es/components/radio-group/style/index": {
"src": "../../element-plus/es/components/radio-group/style/index.mjs",
"file": "element-plus_es_components_radio-group_style_index.js",
"fileHash": "2c79b434",
"needsInterop": false
},
"element-plus/es/components/radio/style/index": {
"src": "../../element-plus/es/components/radio/style/index.mjs",
"file": "element-plus_es_components_radio_style_index.js",
"fileHash": "f18eaf94",
"needsInterop": false
},
"element-plus/es/components/upload/style/index": {
"src": "../../element-plus/es/components/upload/style/index.mjs",
"file": "element-plus_es_components_upload_style_index.js",
"fileHash": "a3137f82",
"needsInterop": false
},
"element-plus/es/components/image/style/index": {
"src": "../../element-plus/es/components/image/style/index.mjs",
"file": "element-plus_es_components_image_style_index.js",
"fileHash": "0ee5fa25",
"needsInterop": false
}
},
"chunks": {
"chunk-DOLTOQWJ": {
"file": "chunk-DOLTOQWJ.js"
"chunk-SZ53O7IE": {
"file": "chunk-SZ53O7IE.js"
},
"chunk-TAY2YFRR": {
"file": "chunk-TAY2YFRR.js"
},
"chunk-SM3Q55NJ": {
"file": "chunk-SM3Q55NJ.js"
},
"chunk-3Y2DITRB": {
"file": "chunk-3Y2DITRB.js"
},
"chunk-7TPSE7GV": {
"file": "chunk-7TPSE7GV.js"
},
"chunk-HJOC2NDO": {
"file": "chunk-HJOC2NDO.js"
},
"chunk-BVX2JA5D": {
"file": "chunk-BVX2JA5D.js"
},
"chunk-BE6VVV7A": {
"file": "chunk-BE6VVV7A.js"
},
"chunk-IKK5JTLD": {
"file": "chunk-IKK5JTLD.js"
},
"chunk-3XCPDPN3": {
"file": "chunk-3XCPDPN3.js"
},
"chunk-NBJCTYZW": {
"file": "chunk-NBJCTYZW.js"
@ -115,6 +214,9 @@
"chunk-QSMKXT32": {
"file": "chunk-QSMKXT32.js"
},
"chunk-LY2LXYUV": {
"file": "chunk-LY2LXYUV.js"
},
"chunk-AA5IK4IP": {
"file": "chunk-AA5IK4IP.js"
},

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/button/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/button.scss";
//# sourceMappingURL=chunk-3C3Q4STT.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/popper/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/popper.scss";
//# sourceMappingURL=chunk-3XCPDPN3.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/overlay/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/overlay.scss";
//# sourceMappingURL=chunk-3Y2DITRB.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/overlay/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/overlay.scss";
//# sourceMappingURL=chunk-5LORASOM.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/base/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/base.scss";
//# sourceMappingURL=chunk-5PUGSUH6.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/checkbox/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/checkbox.scss";
//# sourceMappingURL=chunk-6LQX4MK2.js.map

@ -0,0 +1,6 @@
// node_modules/element-plus/es/components/option-group/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/option-group.scss";
// node_modules/element-plus/es/components/select/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/select.scss";
//# sourceMappingURL=chunk-7TPSE7GV.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/option-group/style/index.mjs", "../../element-plus/es/components/select/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/option-group.scss';\n//# sourceMappingURL=index.mjs.map\n", "import '../../base/style/index.mjs';\nimport '../../input/style/index.mjs';\nimport '../../tag/style/index.mjs';\nimport '../../option/style/index.mjs';\nimport '../../option-group/style/index.mjs';\nimport '../../scrollbar/style/index.mjs';\nimport '../../popper/style/index.mjs';\nimport 'element-plus/theme-chalk/src/select.scss';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";AACA,OAAO;;;ACMP,OAAO;",
"names": []
}

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/scrollbar/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/scrollbar.scss";
//# sourceMappingURL=chunk-BCSZVOPJ.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/input/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/input.scss";
//# sourceMappingURL=chunk-BE6VVV7A.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/scrollbar/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/scrollbar.scss";
//# sourceMappingURL=chunk-BVX2JA5D.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/tag/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/tag.scss";
//# sourceMappingURL=chunk-HJOC2NDO.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/option/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/option.scss";
//# sourceMappingURL=chunk-IKK5JTLD.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/option/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/option.scss';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";AACA,OAAO;",
"names": []
}

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/tag/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/tag.scss";
//# sourceMappingURL=chunk-IU7V7WDW.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/tooltip/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/tooltip.scss";
//# sourceMappingURL=chunk-L7ODOQKF.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/base/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/base.scss";
//# sourceMappingURL=chunk-LY2LXYUV.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/tooltip/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/tooltip.scss";
//# sourceMappingURL=chunk-SM3Q55NJ.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/checkbox/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/checkbox.scss";
//# sourceMappingURL=chunk-SZ53O7IE.js.map

@ -0,0 +1,3 @@
// node_modules/element-plus/es/components/button/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/button.scss";
//# sourceMappingURL=chunk-TAY2YFRR.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/popper/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/popper.scss";
//# sourceMappingURL=chunk-TQA4HOTF.js.map

@ -1,3 +0,0 @@
// node_modules/element-plus/es/components/input/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/input.scss";
//# sourceMappingURL=chunk-YYI2N4ZZ.js.map

@ -1,2 +1,2 @@
import "./chunk-DOLTOQWJ.js";
import "./chunk-LY2LXYUV.js";
//# sourceMappingURL=element-plus_es_components_base_style_index.js.map

@ -1,5 +1,3 @@
import "./chunk-DOLTOQWJ.js";
// node_modules/element-plus/es/components/button/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/button.scss";
import "./chunk-TAY2YFRR.js";
import "./chunk-LY2LXYUV.js";
//# sourceMappingURL=element-plus_es_components_button_style_index.js.map

@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/button/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/button.scss';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";;;AACA,OAAO;",
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

@ -0,0 +1,9 @@
import "./chunk-TAY2YFRR.js";
import "./chunk-BVX2JA5D.js";
import "./chunk-BE6VVV7A.js";
import "./chunk-3XCPDPN3.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/date-picker/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/date-picker.scss";
//# sourceMappingURL=element-plus_es_components_date-picker_style_index.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/date-picker/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/date-picker.scss';\nimport '../../input/style/index.mjs';\nimport '../../scrollbar/style/index.mjs';\nimport '../../popper/style/index.mjs';\nimport '../../button/style/index.mjs';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";;;;;;;AACA,OAAO;",
"names": []
}

@ -1,6 +1,6 @@
import "./chunk-5LORASOM.js";
import "./chunk-5PUGSUH6.js";
import "./chunk-3Y2DITRB.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/dialog/style/index.mjs
import "C:/Users/MEI/Desktop/student/vue/node_modules/element-plus/theme-chalk/src/dialog.scss";
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/dialog.scss";
//# sourceMappingURL=element-plus_es_components_dialog_style_index.js.map

@ -1,5 +1,5 @@
import "./chunk-DOLTOQWJ.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/form-item/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/form-item.scss";
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/form-item.scss";
//# sourceMappingURL=element-plus_es_components_form-item_style_index.js.map

@ -1,5 +1,5 @@
import "./chunk-DOLTOQWJ.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/form/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/form.scss";
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/form.scss";
//# sourceMappingURL=element-plus_es_components_form_style_index.js.map

@ -1,5 +1,5 @@
import "./chunk-DOLTOQWJ.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/icon/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/icon.scss";
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/icon.scss";
//# sourceMappingURL=element-plus_es_components_icon_style_index.js.map

@ -0,0 +1,8 @@
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/image/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/image.scss";
// node_modules/element-plus/es/components/image-viewer/style/index.mjs
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/image-viewer.scss";
//# sourceMappingURL=element-plus_es_components_image_style_index.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/image/style/index.mjs", "../../element-plus/es/components/image-viewer/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/image.scss';\nimport '../../image-viewer/style/index.mjs';\n//# sourceMappingURL=index.mjs.map\n", "import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/image-viewer.scss';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";;;AACA,OAAO;;;ACAP,OAAO;",
"names": []
}

@ -1,5 +1,3 @@
import "./chunk-DOLTOQWJ.js";
// node_modules/element-plus/es/components/input/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/input.scss";
import "./chunk-BE6VVV7A.js";
import "./chunk-LY2LXYUV.js";
//# sourceMappingURL=element-plus_es_components_input_style_index.js.map

@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../element-plus/es/components/input/style/index.mjs"],
"sourcesContent": ["import '../../base/style/index.mjs';\nimport 'element-plus/theme-chalk/src/input.scss';\n//# sourceMappingURL=index.mjs.map\n"],
"mappings": ";;;AACA,OAAO;",
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

@ -1,5 +1,5 @@
import "./chunk-DOLTOQWJ.js";
import "./chunk-LY2LXYUV.js";
// node_modules/element-plus/es/components/menu-item/style/index.mjs
import "C:/Users/MEI/Desktop/student1/Demo/vue/node_modules/element-plus/theme-chalk/src/menu-item.scss";
import "C:/Users/MEI/Desktop/学生成绩管理系统/student/vue/node_modules/element-plus/theme-chalk/src/menu-item.scss";
//# sourceMappingURL=element-plus_es_components_menu-item_style_index.js.map

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

Loading…
Cancel
Save