SanHQin hai 1 ano
pai
achega
2fbf9c32a3
Modificáronse 1 ficheiros con 41 adicións e 0 borrados
  1. 41 0
      pbl.js

+ 41 - 0
pbl.js

@@ -4380,6 +4380,38 @@ router.route("/getCourseWorks3").all((req, res, next) => {
     );
 });
 
+//查询上传作业--加上筛选班级
+router.route("/getCourseWorks5").all((req, res, next) => {
+	var json = queryString(req.url); //cid 课程id,page 页数
+	getmysql(
+			req,
+			res,
+			"select_courseWorks5",
+			json["cid"],
+			json["uname"],
+			json["choseClass"],
+			json["stage"],
+			json["task"],
+			json["page"],
+			10
+	);
+});
+
+//查询所有学生上传作业--加上筛选班级
+router.route("/getCourseWorks6").all((req, res, next) => {
+	var json = queryString(req.url); //cid 课程id,page 页数
+	getmysql(
+			req,
+			res,
+			"select_courseWorks6",
+			json["cid"],
+			json["uname"],
+			json['choseClass'],
+			json["stage"],
+			json["task"]
+	);
+});
+
 //查询所有学生上传作业
 router.route("/getCourseWorks4").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
@@ -4414,6 +4446,15 @@ router.route("/getCourseWorksReport").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数
     getmysql(req, res, "getCourseWorksReport", json["cid"]);
 });
+
+//查询报告数据--根据班级
+router.route("/getCourseWorksReport2").all((req, res, next) => {
+	var json = queryString(req.url); //cid 课程id,page 页数
+	getmysql(req, res, "getCourseWorksReport2", json["cid"],json["choseClass"]);
+});
+
+
+
 //查询多个课程报告数据
 router.route("/getCourseWorksReportMore").all((req, res, next) => {
     var json = queryString(req.url); //cid 课程id,page 页数