11wqe1 3 недель назад
Родитель
Сommit
abbb85ffd0
1 измененных файлов с 41 добавлено и 0 удалено
  1. 41 0
      pbl.js

+ 41 - 0
pbl.js

@@ -1658,6 +1658,47 @@ router.route("/selectStudentManage").all((req, res, next) => {
         json["num"]
     );
 });
+
+//  查询自主学习学习任务  yym
+router.route("/get_cocostudytest").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "get_cocostudytest",
+        json["uid"],
+        json["cid"],
+        json["type"],
+        json["sea"],
+        json["state"],
+        json["page"],
+        json["pagesize"]
+    );
+});
+
+//  查询题目  yym
+router.route("/getCocostudyTestData").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "getCocostudyTestData",
+        json["uid"],
+        json["tid"]
+    );
+});
+
+//  自主学习提交答案  yym
+router.route("/updateCocostudyTestData").all((req, res, next) => {
+    postmysql(req, res, "updateCocostudyTestData");
+});
+
+
+//  自主学习批改作业  yym
+router.route("/updateCocostudysco").all((req, res, next) => {
+    postmysql(req, res, "updateCocostudysco");
+});
+
 //  新学生管理查询学生带排序  yym
 router.route("/selectStudentManagesrt").all((req, res, next) => {
     var json = queryString(req.url);