|
@@ -237,6 +237,18 @@ router.route('/selectWorksDetail2').all((req, res, next) => {
|
|
getmysql(req, res, "selectWorksDetail2", json['uid'], json['cid'], json['stage'], json['task']);
|
|
getmysql(req, res, "selectWorksDetail2", json['uid'], json['cid'], json['stage'], json['task']);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+//学习中心查询作业
|
|
|
|
+router.route('/selectSWorks').all((req, res, next) => {
|
|
|
|
+ var json = queryString(req.url);
|
|
|
|
+ getmysql(req, res, "selectSWorks", json['cid'], json['s'], json['t']);
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+//学习中心查询学生
|
|
|
|
+router.route('/selectWorksStudent').all((req, res, next) => {
|
|
|
|
+ var json = queryString(req.url);
|
|
|
|
+ getmysql(req, res, "selectWorksStudent", json['oid']);
|
|
|
|
+});
|
|
|
|
+
|
|
router.route('/addWorkNew').all((req, res, next) => {
|
|
router.route('/addWorkNew').all((req, res, next) => {
|
|
// postmysql(req, res, "insert_teacher_work_new");
|
|
// postmysql(req, res, "insert_teacher_work_new");
|
|
if (req.body[0]) {
|
|
if (req.body[0]) {
|
|
@@ -841,7 +853,7 @@ router.route('/getWorkData').all((req, res, next) => {
|
|
//查询评价体系
|
|
//查询评价体系
|
|
router.route('/getEvaluation').all((req, res, next) => {
|
|
router.route('/getEvaluation').all((req, res, next) => {
|
|
var json = queryString(req.url); //cid 课程id,page 页数
|
|
var json = queryString(req.url); //cid 课程id,page 页数
|
|
- getmysql(req, res, "select_evaluation", json['n'], json['page'],10);
|
|
|
|
|
|
+ getmysql(req, res, "select_evaluation", json['n'], json['page'], 10);
|
|
});
|
|
});
|
|
|
|
|
|
//添加评价体系
|
|
//添加评价体系
|