|
@@ -666,7 +666,7 @@ router.route('/restoreWork').all((req, res, next) => {
|
|
|
}
|
|
|
}
|
|
|
_unitJson2.splice(chpaindex, 0, _chapters[chpaindex])
|
|
|
- // console.log(_unitJson2);
|
|
|
+ // console.log(_unitJson2);
|
|
|
let p2 = [req.body[0].cid, JSON.stringify(_unitJson2).replaceAll(/%/g, "%25")];
|
|
|
p2.unshift(_mysqlLabor[0], _mysqlLabor[1], "update_teacher_work_new4"); //執行存儲過程
|
|
|
mysql.usselect(p2, function(ret) {
|
|
@@ -1046,6 +1046,10 @@ router.route('/selectCase').all((req, res, next) => {
|
|
|
var json = queryString(req.url);
|
|
|
getmysql(req, res, "selectCase", json['org']);
|
|
|
});
|
|
|
+//新增赛事项目
|
|
|
+router.route('/addRace').all((req, res, next) => {
|
|
|
+ postmysql(req, res, "addRace");
|
|
|
+});
|
|
|
|
|
|
|
|
|
|