forked from p59mgulzx/Demo
Compare commits
8 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
61883bbd3f | 2 years ago |
|
|
5668ea7939 | 2 years ago |
|
|
11a8f619af | 2 years ago |
|
|
50d402dee7 | 2 years ago |
|
|
48b5d08a11 | 2 years ago |
|
|
bdb3952d3a | 2 years ago |
|
|
a1993d8804 | 2 years ago |
|
|
3e6a5e84f4 | 2 years ago |
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
@ -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,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);
|
||||
}
|
||||
|
||||
}
|
||||
@ -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>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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>
|
||||
@ -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
|
||||
|
||||
6
vue/node_modules/.vite/deps/element-plus_es_components_button_style_index.js.map
generated
vendored
6
vue/node_modules/.vite/deps/element-plus_es_components_button_style_index.js.map
generated
vendored
@ -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": []
|
||||
}
|
||||
|
||||
9
vue/node_modules/.vite/deps/element-plus_es_components_date-picker_style_index.js
generated
vendored
9
vue/node_modules/.vite/deps/element-plus_es_components_date-picker_style_index.js
generated
vendored
@ -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
|
||||
|
||||
4
vue/node_modules/.vite/deps/element-plus_es_components_form-item_style_index.js
generated
vendored
4
vue/node_modules/.vite/deps/element-plus_es_components_form-item_style_index.js
generated
vendored
@ -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
|
||||
7
vue/node_modules/.vite/deps/element-plus_es_components_image_style_index.js.map
generated
vendored
7
vue/node_modules/.vite/deps/element-plus_es_components_image_style_index.js.map
generated
vendored
@ -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
|
||||
|
||||
6
vue/node_modules/.vite/deps/element-plus_es_components_input_style_index.js.map
generated
vendored
6
vue/node_modules/.vite/deps/element-plus_es_components_input_style_index.js.map
generated
vendored
@ -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": []
|
||||
}
|
||||
|
||||
4
vue/node_modules/.vite/deps/element-plus_es_components_menu-item_style_index.js
generated
vendored
4
vue/node_modules/.vite/deps/element-plus_es_components_menu-item_style_index.js
generated
vendored
@ -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…
Reference in new issue