baserule.proattr.js
2.54 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
module.exports={
namespace:"porattr",
apis:{
queryProductSortListByConf:{
title:'产品属性',
url:'/product/queryProductSortListByConf',
params:{
status:{type:String,default:1}
}
},
addProductAttribute:{
title:'添加产品属性ajax',
url: '/product/addProductAttribute',
params: [
{name: 'attributeName', type: 'String'},
{name: 'saleType', type: 'Number'},
{name: 'inputType', type: 'String'},
{name: 'attributeType', type: 'String'},
{name: 'isMust', type: 'String'},
{name: 'isSearch', type: 'String'},
{name: 'maxValueLen', type: 'Number'},
{name: 'isAllowAlias', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'state', type: 'Number'},
{name: 'remark', type: 'String'},
{name: 'attributeValues', type: 'String'},
{name: 'displayPosition', type: 'Number'},
{name: 'categoryId', type: 'Number'}
]
},
updateProductAttribute:{
title:'更新产品属性ajax',
url: '/product/updateProductAttribute',
params: [
{name: 'attributeName', type: 'String'},
{name: 'saleType', type: 'Number'},
{name: 'inputType', type: 'String'},
{name: 'attributeType', type: 'String'},
{name: 'isMust', type: 'String'},
{name: 'isSearch', type: 'String'},
{name: 'maxValueLen', type: 'Number'},
{name: 'isAllowAlias', type: 'String'},
{name: 'orderBy', type: 'Number'},
{name: 'state', type: 'Number'},
{name: 'remark', type: 'String'},
{name: 'attributeValues', type: 'String'},
{name: 'displayPosition', type: 'Number'},
{name: 'attributeId', type: 'Number'},
{name: 'categoryId', type: 'Number'}
]
},
queryProductAttributeList:{
title:'根据类目ID ajax查询属性列表',
url: '/product/queryProductAttributeList',
params: [
{name: 'categoryId', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
getProductAttribute:{
title:'ajax查询属性的详细信息',
url: '/product/getProductAttribute',
params: [
{name: 'attributeId', type: 'Number'}
]
}
}
}