一、源码特点
springboot VUE 课程设计管理系统是一套完善的完整信息管理类型系统,结合springboot框架和VUE完成本系统,对理解JSP java编程开发语言有帮助系统采用springboot框架(MVC模式开发),系统具有完整的源代码和数据库,系统主要采用B/S模式开发。
springboot VUE 课程设计管理系统1
前段主要技术 vue
后端主要技术 Springboot java
数据库 sqlserver
开发工具 IDEA JDK1.8
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以 不建议。
2.IDE环境:推荐IDEA;
3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可,本系统不需要
4.硬件环境:windows 7/8/10 1G内存以上;;
5.数据库:sqlserver企业版等版本均可;
6.maven项目
使用说明
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目;
3. 将项目中kcsj\src\main\resources 下的 application.properties 配置文件中的数据库配置改为自己的配置;
数据库支持sqlserver
4.vscode 开vue项目工程
5.vue 项目启动 npm run serve
vue 版本 2.9.6
node 版本 16.14.2
二、功能介绍
(1)教师管理:对教师信息进行添加、删除、修改和查看
(2)学生管理:对学生信息进行添加、删除、修改和查看
(3)课程管理:对课程信息进行添加、删除、修改和查看
(4)设计项目管理:对设计项目信息进行添加、删除、修改和查看
(5)选题管理:对选题信息进行添加、删除、修改和查看
(6)团队管理:对团队信息进行添加、删除、修改和查看
(7)组员管理:对组员信息进行添加、删除、修改和查看
(8)用户登录 个人信息修改
后端代码
@GetMapping("list")
public Result list(@RequestParam(value = "pageNum",defaultValue = "1") int page,
@RequestParam(value = "pageSize",defaultValue = "10") int szie,
@RequestParam(defaultValue = "") String kcmc,
@RequestParam(defaultValue = "") String js
) {
Result res=new Result();
List list=null;
String sql="";
try{
if(js!=null&&!js.equals("")){
sql+=" and js like '"+js+"'";//符合条件 拼接sql 课程名称
}
if(kcmc!=null&&!kcmc.equals("")){
sql+=" and kcmc like '%"+kcmc+"%'";//符合条件 拼接sql 课程名称
}
list=kechengdao.querylist(sql,page,szie);//查询kecheng表数据返回 list对象
res.setCode(200);
res.setMessage("查询成功");
res.setData(tl.ltoj(list));
list=kechengdao.querylist(sql);
res.setNum(list.size());
}catch(Exception e){
e.printStackTrace();;
}
return res;
}
/**课程列表 查询kecheng
*
*/
@GetMapping("listpage")
public Result listpage(
@RequestParam(defaultValue = "") String kcmc,
@RequestParam(defaultValue = "") String js
) {
Result res=new Result();
List list=null;
String sql="";
if(kcmc!=null&&!kcmc.equals("")){
sql+=" and kcmc like '%"+kcmc+"%'";//符合条件 拼接sql 课程名称
}
if(js!=null&&!js.equals("")){
sql+=" and js like '"+js+"'";//符合条件 拼接sql 课程名称
}
try{
list=kechengdao.querylist(sql);//查询gly 表数据返回 list对象
res.setCode(200);
res.setMessage("查询成功");
res.setData(tl.ltoj(list));
}catch(Exception e){
e.printStackTrace();;
}
return res;
}
/**课程添加方法 对表 kecheng 进行添加
*
*/
@PostMapping(value = "add")
public Result add(@RequestBody kecheng bean){
Result res=new Result();
try{
if(bean.getKcid()!=null&&!bean.getKcid().equals("")){
kechengdao.update(bean);//执行 修改 kecheng 添加操作
res.setMessage("操作成功");
}else{
kechengdao.add(bean);//执行 添加kecheng 添加操作
res.setMessage("添加成功");
}
}catch(Exception e){
e.printStackTrace();;
}
res.setCode(200);
//System.out.println(res);
return res;
}
/**课程删除方法 对表kecheng 进行删除
*
*/
@DeleteMapping("del/{id}")
public Result del( @PathVariable String id){
Result res=new Result();
try{
kechengdao.delete(id);//执行 删除kecheng 方法
}catch(Exception e){
e.printStackTrace();;
}
res.setCode(200);
res.setMessage("删除成功");
return res;
}
/**课程查看方法 对表 kecheng 进行查看
*
*/
@GetMapping("detail/{id}")
public Result detail(@RequestParam String id){
Result res=new Result();
Map map = new HashMap<>();
kecheng bean=new kecheng();//初始对象课程
try{
map=kechengdao.getkechengMap(id);//查询获得当前课程对象
res.setCode(200);
res.setMessage("查询成功");
res.setData(tl.mtoj(map));
System.out.println(tl.mtoj(map));
}catch(Exception e){
e.printStackTrace();;
}
return res;
}
/**课程修改页面 对表 kecheng 进行查看
*
*/
@GetMapping("modifypage")
public Result modifypage(@RequestParam String id){
Result res=new Result();
Map map = new HashMap<>();
tool tl=new tool();
try{
map=kechengdao.getkechengMap(id);//获取kecheng 对象
//String str=obj.toString();
res.setCode(200);
res.setMessage("查询成功");
res.setData(tl.mtoj(map));//赋值
}catch(Exception e){
e.printStackTrace();;
}
return res;
}
前段代码
详情
删除
{{form.mc}}
{{form.js}}
{{form.dz}}
{{form.zt}}
{{form.cjsj}}