productSiezChart.js
1.37 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
exports.domain = require('../config/common.js').domain;
exports.res = [{
// 产品管理【尺寸】页面渲染
route: '/erpproduct/size/index',
method: 'GET',
view: 'pages/product/siezChart',
url:'/product/querySizeList',
isJsonRaw:true,
params: [
{name: 'page', type: 'Number',def:1},
{name: 'size', type: 'Number',def:10}
],
src: '/product/sizeChart'
},{
// 产品管理【尺寸】页面分页渲染
route: '/erpproduct/size/index/:page',
method: 'GET',
view: 'pages/product/siezChart',
url:'/product/querySizeList',
isJsonRaw:true,
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number',def:10}
],
src: '/product/sizeChart'
},{
// 获取单个尺码
route: '/erpproduct/size/getSize',
method: 'POST',
url:"/product/getSize",
isJsonRaw:true,
params:[
{name: 'id', type: 'Number'}
]
},{
// 新增尺码
route: '/erpproduct/size/addSize',
method: 'POST',
url:"/product/addSize",
isJsonRaw:true,
params:[
{name: 'sizeName', type: 'String'}
]
},{
// 新增尺码
route: '/erpproduct/size/updateSize',
method: 'POST',
url:"/product/updateSize",
isJsonRaw:true,
params:[
{name: 'id', type: 'Number'},
{name: 'sizeName', type: 'String'}
]
}]