category.js
1.13 KB
module.exports=function(app) {
/*物理类目管理*/
app.get("/erpproduct/sort/index","category.Index","category_queryAllProductSortList",function(plist,req,res){
this.$extend={
moduleName:'物理类目管理',
pageName:'物理类目管理列表',
data:plist.data
}
});
/*添加物理类目管理*/
app.get("/product/class/new","category.Edit",function(){
this.$extend={
moduleName:'物理类目管理',
pageName:'添加物理类目',
action:'/product/sort/addProductSort'
}
});
/*修改物理类目管理*/
app.get("/product/class/edit/:param","category.Edit","category_getProductSort",function(sort){
this.$extend={
moduleName:'物理类目管理',
pageName:'修改物理类目',
action:'/product/sort/update'
}
return sort;
});
/*【添加品类】ajax请求接口*/
app.post("/product/sort/addProductSort","category_addProductSort");
/*【修改品类】ajax请求接口*/
app.post("/product/sort/update","category_updateProductSort");
/*打开*/
app.post("/erpproduct/sorter/open","category_publishProductSort");
/*关闭*/
app.post("/erpproduct/sorter/close","category_closeProductSort");
}