|
@@ -2006,7 +2006,26 @@ router.route('/addSStype').all((req, res, next) => {
|
|
|
var json = queryString(req.url);
|
|
|
getmysql(req, res, "addSStype", json["pid"], json["n"], json["uid"], json["oid"]);
|
|
|
});
|
|
|
-
|
|
|
+//根据学校查询工作分类
|
|
|
+router.route('/selectStudioPtype').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "selectStudioPtype", json["page"], 10);
|
|
|
+});
|
|
|
+//查询工作室项目子分类列表
|
|
|
+router.route('/selectStudioStype').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "selectStudioStype", json["pid"], json["oid"], json["page"], 10);
|
|
|
+});
|
|
|
+//添加工作室项目子分类
|
|
|
+router.route('/addStudioStype').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "addStudioStype", json["pid"], json["n"], json["uid"], json["oid"]);
|
|
|
+});
|
|
|
+//修改学生项目分类
|
|
|
+router.route('/updateStudioPtype').all((req, res, next) => {
|
|
|
+ var json = queryString(req.url);
|
|
|
+ getmysql(req, res, "updateStudioPtype", json["n"], json["tid"]);
|
|
|
+});
|
|
|
//查看本校所有学生(分页)
|
|
|
router.route('/selectAllStudent').all((req, res, next) => {
|
|
|
var json = queryString(req.url);
|