brandModels.js
2.65 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
90
91
92
93
/**
* Created by wangqianjun on 16/3/7.
* 【商品基础规则】->【品牌款型系列】路由
*/
exports.domain =require('../config/common.js').domain;
exports.res = [
{
//商品基础规则【品牌款型系列】页面渲染
route: '/erpproduct/brandfolder/index',
method: 'GET',
view: 'pages/product/brandModels',
src: '/product/brandModels',
data:{
title:'商品基础规则',
secondTitle:'品牌款型系列',
pageTitle:'品牌款型系列'
}
},
{
// 初始化列表 & 筛选
route: '/erpproduct/brandfolder/list',
method: 'POST',
url: '/brandSeries/queryAll',
src:'/product/brandModels',
params: [
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{ //增加
route: '/erpproduct/brandfolder/add',
method: 'POST',
url: '/brandSeries/add',
params:[
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'bannarImg', type: 'String'}
],
src:'/product/brandModels'
},
{ //修改
route: '/erpproduct/brandfolder/update',
method: 'POST',
url: '/brandSeries/update',
params:[
{name: 'id', type: 'Number'},
{name: 'seriesName', type: 'String'},
{name: 'shopsId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'type', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'bannarImg', type: 'String'}
],
src:'/product/brandModels'
},
{ //关闭
route: '/erpproduct/brandfolder/close',
method: 'POST',
url: '/brandSeries/close',
params:[
{name: 'id', type: 'Number'},
{name: 'type', type: 'Number'}
],
src:'/product/brandModels'
},
{ //开启
route: '/erpproduct/brandfolder/open',
method: 'POST',
url: '/brandSeries/open',
params:[
{name: 'id', type: 'Number'},
{name: 'type', type: 'Number'}
],
src:'/product/brandModels'
}
];