|
@@ -9125,6 +9125,63 @@ router.route("/update_teachingModeWorks_summaryById").all((req,res,next)=>{
|
|
|
postmysql(req, res, "update_teachingModeWorks_summaryById");
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+//qgt 课程管理-ppt模式添加课程
|
|
|
+router.route("/insert_teacher_work_pptCourse").all((req, res, next) => {
|
|
|
+ if (req.body[0]) {
|
|
|
+ p = [
|
|
|
+ req.body[0].uid,
|
|
|
+ req.body[0].title,
|
|
|
+ req.body[0].brief,
|
|
|
+ req.body[0].cover,
|
|
|
+ req.body[0].evaId,
|
|
|
+ req.body[0].astudent,
|
|
|
+ req.body[0].see,
|
|
|
+ req.body[0].chapters,
|
|
|
+ req.body[0].template,
|
|
|
+ req.body[0].ateacher,
|
|
|
+ ];
|
|
|
+ p.unshift(_mysqlLabor[0], _mysqlLabor[1], "insert_teacher_work_pptCourse"); //執行存儲過程
|
|
|
+ mysql.usselect(p, function(ret) {
|
|
|
+ let course = req.body[0].courseType;
|
|
|
+ let courseId = ret[0][0].courseId;
|
|
|
+ let userid = req.body[0].uid;
|
|
|
+ delCourseType(course, courseId, userid);
|
|
|
+ res.end(
|
|
|
+ JSON.stringify({
|
|
|
+ ordernumber: ret[0][0].ordernumber,
|
|
|
+ courseId: ret[0][0].courseId,
|
|
|
+ success: 1,
|
|
|
+ })
|
|
|
+ );
|
|
|
+ });
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+//qgt 课程管理-单独修改课程的chapters
|
|
|
+router.route("/update_course_chapters").all((req,res,next)=>{
|
|
|
+ postmysql(req, res, "update_teacher_work_new4");
|
|
|
+})
|
|
|
+
|
|
|
+//qgt 课程管理-添加workPage数据
|
|
|
+router.route("/insert_workPage").all((req,res,next)=>{
|
|
|
+ postmysql(req, res, "insert_workPage");
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+//qgt workPage查询作业
|
|
|
+router.route("/select_workPageById").all((req,res,next)=>{
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "select_workPageById", json["id"]);
|
|
|
+})
|
|
|
+
|
|
|
+//qgt workPage上传作业
|
|
|
+router.route("/addCourseWorks_workPage").all((req,res,next)=>{
|
|
|
+ postmysql(req, res, "addCourseWorks_workPage");
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
//教师管理 查看填写范围的教师权限
|
|
|
router.route("/getTestWorkTeacherCount").all((req,res,next)=>{
|
|
|
postmysql(req, res, "getTestWorkTeacherCount");
|