salecategory.js
3.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* 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/salesCategory/delSC","salecategory_delSC");
/*批量添加标签接口*/
app.post("/sale/salesCategoryLabel/addSCLabel","salecategory_addSCLabel");
/**
* 搜索标签,销售类目绑定搜索标签
*/
/*标签管理页面*/
app.get("/sale/category/searchLabel/:categoryId","operations.salecategory.SearchTagMgmt", "salecategory_productSearchLabelList", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "标签管理"
}
});
/*搜索标签列表数据接口*/
app.post("/searchLabel/productSearchLabelList","salecategory_productSearchLabelList");
/*销售类目绑定搜索标签列表,修改排序值接口*/
app.post("/salesCategorySearchLabel/updateSCSearchLabelOrderBy","salecategory_updateSCSearchLabelOrderBy");
/*销售类目绑定搜索标签接口*/
app.post("/salesCategorySearchLabel/batchInsertSCSearchLabel","salecategory_batchInsertSCSearchLabel");
/*销售类目已关联搜索标签列表数据接口*/
app.post("/salesCategorySearchLabel/querySCSearchLabelList","salecategory_querySCSearchLabelList");
/*取消销售类目绑定搜索标签接口*/
app.post("/salesCategorySearchLabel/batchDeleteSCSearchLabel","salecategory_batchDeleteSCSearchLabel");
/*取消销售类目绑定搜索标签接口*/
app.post("/salesCategorySearchLabel/deleteSCSearchLabelByCategoryId","salecategory_deleteSCSearchLabelByCategoryId");
/*搜索资源位直通车管理页面*/
app.get("/sale/category/resource/:categoryId","operations.salecategory.CategorySource", "salecategory_queryCategorySourceList", function () {
this.$extend = {
moduleName: "运营管理",
pageName: "搜索资源位直通车管理"
}
});
app.post("/categorySource/queryCategorySourceList","salecategory_queryCategorySourceList");
app.post("/categorySource/insertCategorySourceLink","salecategory_insertCategorySourceLink");
app.post("/categorySource/deleteCategorySourceLink","salecategory_deleteCategorySourceLink");
app.post("/categorySource/batchInsertCategorySourceLink","salecategory_batchInsertCategorySourceLink");
app.post("/categorySource/batchDeleteCategorySourceLink","salecategory_batchDeleteCategorySourceLink");
}