|
@@ -5755,34 +5755,16 @@ router.route("/addSource").all((req, res, next) => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-router.route("/addCourseEvaTType").all((req, res, next) => {
|
|
|
- //设置评价资源模板分类
|
|
|
- if (req.body[0]) {
|
|
|
- p = [
|
|
|
- req.body[0].cid,
|
|
|
- req.body[0].tid,
|
|
|
- req.body[0].uid,
|
|
|
- ];
|
|
|
- p1 = [req.body[0].cid];
|
|
|
- p1.unshift(_mysqlLabor[0], _mysqlLabor[1], "deleteCETLabel");
|
|
|
- //執行存儲過程
|
|
|
- mysql.usselect(p1, function(ret) {
|
|
|
- addCETLabel(req.body[0].cid, req.body[0].tid, req.body[0].uid);
|
|
|
- });
|
|
|
- }
|
|
|
+//删除资源模板分类
|
|
|
+router.route("/deleteCETLabel").all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "deleteCETLabel", json["cid"]);
|
|
|
});
|
|
|
|
|
|
-function addCETLabel(cid, tid, uid) {
|
|
|
- var _userdata = [
|
|
|
- cid,
|
|
|
- tid,
|
|
|
- uid,
|
|
|
- ];
|
|
|
- _userdata.unshift(_mysqlLabor[0], _mysqlLabor[1], "addCETLabel");
|
|
|
- mysql.usselect(_userdata, function(ret) {
|
|
|
- res.end(JSON.stringify({ success: 1 }));
|
|
|
- });
|
|
|
-}
|
|
|
+//添加资源模板分类
|
|
|
+router.route("/addCETLabel").all((req, res, next) => {
|
|
|
+ postmysql(req, res, "addCETLabel");
|
|
|
+});
|
|
|
|
|
|
router.route("/updateSource").all((req, res, next) => {
|
|
|
//修改资源
|