brandModels.js 2.65 KB
/**
 * Created by wangqianjun on 16/3/7.
 * 【商品基础规则】->【品牌款型系列】路由
 */

exports.domain =require('../config/common.js').domain;
exports.res = [
    {
        //商品基础规则【品牌款型系列】页面渲染
        route: '/erpproduct/brandfolder/index',
        method: 'GET',
        view: 'pages/product/brandModels',
        src: '/product/brandModels',
        data:{
            title:'商品基础规则',
            secondTitle:'品牌款型系列',
            pageTitle:'品牌款型系列'
        }
    },

    {
        // 初始化列表 & 筛选
        route: '/erpproduct/brandfolder/list',
        method: 'POST',
        url: '/brandSeries/queryAll',
        src:'/product/brandModels',
        params: [
            {name: 'seriesName', type: 'String'},
            {name: 'shopsId', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'type', type: 'Number'},
            {name: 'status', type: 'Number'},
            {name: 'orderBy', type: 'Number'},
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },

    {   //增加
        route: '/erpproduct/brandfolder/add',
        method: 'POST',
        url: '/brandSeries/add',
        params:[
            {name: 'seriesName', type: 'String'},
            {name: 'shopsId', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'type', type: 'Number'},
            {name: 'orderBy', type: 'Number'},
            {name: 'bannarImg', type: 'String'}
        ],
        src:'/product/brandModels'
    },

    {   //修改
        route: '/erpproduct/brandfolder/update',
        method: 'POST',
        url: '/brandSeries/update',
        params:[
            {name: 'id', type: 'Number'},
            {name: 'seriesName', type: 'String'},
            {name: 'shopsId', type: 'Number'},
            {name: 'brandId', type: 'Number'},
            {name: 'type', type: 'Number'},
            {name: 'orderBy', type: 'Number'},
            {name: 'bannarImg', type: 'String'}
        ],
        src:'/product/brandModels'
    },

    {   //关闭
        route: '/erpproduct/brandfolder/close',
        method: 'POST',
        url: '/brandSeries/close',
        params:[
            {name: 'id', type: 'Number'},
            {name: 'type', type: 'Number'}
        ],
        src:'/product/brandModels'
    },

    {   //开启
        route: '/erpproduct/brandfolder/open',
        method: 'POST',
        url: '/brandSeries/open',
        params:[
            {name: 'id', type: 'Number'},
            {name: 'type', type: 'Number'}
        ],
        src:'/product/brandModels'
    }


];