brand.js
804 Bytes
module.exports = function (app){
app.get("/erpproduct/brands/index", "brand.Index", function (req,res){
this.$extend={
bottons:'{"edit":true}',
gridurl:'/brand/getBrandList'
}
});
app.get("/erpproduct/brands/edit/:brandId", "brand.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
app.get("/erpproduct/brands/add", "brand.Edit", function (req,res){
this.$extend={
action:'/erpproduct/ajax/brands/add',
data:{}
}
});
//品牌管理列表
app.post("/brand/getBrandList","brand_index");
//保存修改品牌
app.post("/brand/edit","brand_editBrand");
//添加品牌
app.post("/erpproduct/ajax/brands/add","brand_addBrand");
}