operations.salecategory.js
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Created by ty on 2016/6/23.
* 销售类目
*/
module.exports=function(app) {
/*销售类目主页*/
app.get("/sale/category/index","operations.salecategory.Index", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "销售类目管理",
gridurl: '/sale/salesCategory/querySCList'
}
});
/*标签管理页面*/
app.get("/sale/category/tag/:categoryId","operations.salecategory.TagMgmt", "salecategory_querySCById", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "标签管理"
}
});
/*销售类目列表*/
app.post("/sale/salesCategory/querySCList","salecategory_querySCList");
/*根据id获取单个销售类目*/
app.post("/sale/salesCategory/querySCById","salecategory_querySCById");
/*标签管理列表数据接口*/
app.post("/sale/salesCategoryLabel/querySCLabelList","salecategory_querySCLabelList");
/*更新标签接口*/
app.post("/sale/salesCategoryLabel/updateSCLabel","salecategory_updateSCLabel");
/*更新销售类目接口*/
app.post("/sale/salesCategory/updateSC","salecategory_updateSC");
/*添加销售类目接口*/
app.post("/sale/salesCategory/addSC","salecategory_addSC");
/*开关销售类目*/
app.post("/sale/salesCategory/updateSCStatus","salecategory_updateSCStatus");
/*批量添加标签接口*/
app.post("/sale/salesCategoryLabel/addSCLabel","salecategory_addSCLabel");
}