baserule.color.js
1.06 KB
module.exports=function(app) {
app.get("/erpproduct/color/index","baserule.color.Index",function(pros){
this.$extend={
moduleName:'商品基础规则',
pageName:'颜色管理列表'
}
});
/*获取颜色列表*/
app.post("/erpproduct/product/colorList","color_queryProductColors");
/*获取单个颜色*/
// app.post("/erpproduct/product/getColor","color_queryProductColor");
/*新增颜色页面渲染*/
app.get("/erpproduct/product/addColor","baserule.color.Edit",function(){
this.$extend={
moduleName:'商品基础规则',
pageName:'添加颜色',
url:'/erpproduct/product/saveColor',
data:{}
}
});
/*新增颜色*/
app.post("/erpproduct/product/saveColor","color_addProductColor");
app.get("/erpproduct/product/addColor/:param","baserule.color.Edit","color_queryProductColor",function(color,req,res){
this.$extend={
moduleName:'商品基础规则',
pageName:'修改颜色',
url:'/erpproduct/product/updatColor',
data:color.data
}
});
/*修改颜色*/
app.post("/erpproduct/product/updatColor","color_updateProductColor");
}