shopAdministrator.js 948 Bytes
module.exports = function (app){
    app.get("/supplier/storeadmin/index", "shop.Administrator", function (req,res){
        this.$extend={
            gridurl:'/supplier/storeadmin/indexPage'
        }
    });

    app.get("/supplier/store/adminupdate/:id", "shop.Administrator");

    app.get("/supplier/storeadmin/adminAdd", "shop.Administrator");

    //店铺管理员列表
    app.post("/supplier/storeadmin/indexPage","shopAdministrator_getShopsAdminList");

    //删除店铺管理员
    app.post("/supplier/storeadmin/delete","shopAdministrator_delAdminRelation");

    //添加店铺管理员
    app.post("/supplier/storeadmin/addguanxi","shopAdministrator_addAdminRelation");

    //保存修改店铺管理员
    app.post("/supplier/storeadmin/updateguanxi","shopAdministrator_updateAdminRalation");

    //根据品牌选择供应商
    app.post("/supplier/storeadmin/supplierlist","shopAdministrator_selectSupplierByBrandId");
}