|
@@ -683,6 +683,11 @@ router.route('/selectWorksDetailMore').all((req, res, next) => {
|
|
var json = queryString(req.url);
|
|
var json = queryString(req.url);
|
|
getmysql(req, res, "selectWorksDetailMore", json['uid'], json['cid']);
|
|
getmysql(req, res, "selectWorksDetailMore", json['uid'], json['cid']);
|
|
});
|
|
});
|
|
|
|
+//查询课程某个阶段某个任务下的评价
|
|
|
|
+router.route('/updateWorksEva').all((req, res, next) => {
|
|
|
|
+ var json = queryString(req.url);
|
|
|
|
+ getmysql(req, res, "updateWorksEva", json['cid'], json['s'], json['t'], json['wid'], json['rate']);
|
|
|
|
+});
|
|
|
|
|
|
|
|
|
|
//学习中心教师查询作业
|
|
//学习中心教师查询作业
|
|
@@ -3461,7 +3466,7 @@ router.route('/selectAllSourceType').all((req, res, next) => { //学生
|
|
getmysql(req, res, "selectAllSourceType", json['oid'], json['org']);
|
|
getmysql(req, res, "selectAllSourceType", json['oid'], json['org']);
|
|
});
|
|
});
|
|
|
|
|
|
-router.route('/addSource').all((req, res, next) => {//添加资源
|
|
|
|
|
|
+router.route('/addSource').all((req, res, next) => { //添加资源
|
|
if (req.body[0]) {
|
|
if (req.body[0]) {
|
|
p = [req.body[0].name, req.body[0].url, req.body[0].detail, req.body[0].label, req.body[0].userid];
|
|
p = [req.body[0].name, req.body[0].url, req.body[0].detail, req.body[0].label, req.body[0].userid];
|
|
p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addSource");
|
|
p.unshift(_mysqlLabor[0], _mysqlLabor[1], "addSource");
|
|
@@ -3476,7 +3481,7 @@ router.route('/addSource').all((req, res, next) => {//添加资源
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-router.route('/updateSource').all((req, res, next) => {//修改资源
|
|
|
|
|
|
+router.route('/updateSource').all((req, res, next) => { //修改资源
|
|
if (req.body[0]) {
|
|
if (req.body[0]) {
|
|
p = [req.body[0].id, req.body[0].name, req.body[0].url, req.body[0].detail, req.body[0].label, req.body[0].userid];
|
|
p = [req.body[0].id, req.body[0].name, req.body[0].url, req.body[0].detail, req.body[0].label, req.body[0].userid];
|
|
p.unshift(_mysqlLabor[0], _mysqlLabor[1], "updateSource");
|
|
p.unshift(_mysqlLabor[0], _mysqlLabor[1], "updateSource");
|