Explorar el Código

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-api

lsc hace 1 año
padre
commit
39a879e173
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      pbl.js

+ 16 - 0
pbl.js

@@ -2635,6 +2635,10 @@ router.route("/deleteStudentCourse").all((req, res, next) => {
 router.route("/copyCourse").all((req, res, next) => {
     postmysql(req, res, "copyCourse");
 });
+//复制评价体系
+router.route("/copyEva").all((req, res, next) => {
+    postmysql(req, res, "copyEva");
+});
 //复制课程
 router.route("/copySCourse").all((req, res, next) => {
     postmysql(req, res, "copySCourse");
@@ -4188,6 +4192,18 @@ router.route("/deleteEvaluation").all((req, res, next) => {
     postmysql(req, res, "delete_evaluation");
     // id评价id
 });
+
+//删除评价体系前查询课程是否有该评价
+router.route("/selectCourseEva").all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(
+        req,
+        res,
+        "select_course_eva",
+        json["eid"],
+    );
+});
+
 //批量添加学校
 router.route("/batchRegistrationSchool").post(function(req, res, next) {
     let users = req.body[0];