brand.js
2.52 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
module.exports = function (app){
app.get("/erpproduct/brands/index", "brand.Index", function (req,res){
this.$extend={
moduleName:"品牌管理",
pageName:"品牌管理"
}
});
app.get("/erpproduct/brands/edit/:brandId", "brand.Edit", "brand_getBrandDetail", function (rs,req,res){
this.$extend={
action: '/brand/edit',
data:rs.data
};
return rs.data;
});
app.get("/erpproduct/brands/add", "brand.Edit", function (req,res){
this.$extend={
action:'/erpproduct/ajax/brands/add',
data:{}
}
});
//品牌管理列表
app.post("/brand/getBrandList","brand_index");
//品牌管理列表
app.post("/brand/getBrandCradle","brand_getBrandCradle");
//保存修改品牌
app.post("/brand/edit","brand_editBrand");
//修改品牌状态
app.post("/brand/updateStatus","brand_updateStatus");
//添加品牌
app.post("/erpproduct/ajax/brands/add","brand_addBrand");
//品牌装修 - 列表页
app.get("/erpproduct/brands/decorate/index", "brand.decorate.Index", function (req,res){
this.$extend={
moduleName:"品牌装修管理",
pageName:"品牌装修管理"
}
});
//品牌装修管理列表
app.post("/brand/getBrandDecorateList","brand_decorateList");
//修改hot
app.post("/brand/updateIsHot","brand_updateIsHot");
//修改new
app.post("/brand/updateIsNew","brand_updateIsNew");
app.get("/erpproduct/brands/decorate/edit/:brandId", "brand.decorate.Edit", "brand_getBrandDetail", function (rs,req,res){
this.$extend={
action: '/brand/editDecorate',
data:rs.data
};
return rs.data;
});
//保存修改品牌
app.post("/brand/editDecorate","brand_editBrandDecorate");
//品牌图片列表页
app.get("/BrandImageRest/brandImageList", "brand.brandImage",function(req,res){
this.$extend={
moduleName:"品牌图片管理",
pageName:"品牌图片管理"
}
});
//品牌图片列表
app.post("/brandImage/list","brandImage_getList");
//删除品牌图片
app.post("/brandImage/delete","brandImage_delete");
//新增
app.post("/brandImage/add","brandImage_insert");
//详情
app.post("/brandImage/detail","brandImage_detail");
//修改
app.post("/brandImage/update","brandImage_update");
app.post("/sensitiveWord/validate","brand_validateSensitiveWord");
}