brand.js 3.8 KB
exports.domain = require('../config/common.js').domain;
//exports.domain ="http://172.16.6.246:8081/platform/";
//路由配置

//路由配置
exports.res = [
    {
        //品牌管理页面渲染
        route: '/erpproduct/brands/index',
        method: 'GET',
        view: 'pages/brand/index',
        src: '/brand/index',
        data: {
            bottons:'{"edit":true}',
            gridurl:'/brand/getBrandList'
        },
    }, {
        route: '/brand/getBrandNames',
        method: 'POST',
        url: '/erpproduct/brands/getBrandNames',
        params: [
            {
                name: 'idName',
                type: 'String'
            },{
                name:'status',
                type:'Number'
            }
        ]
    }, {
        //品牌管理 -> 列表ajax
        route: '/brand/getBrandList',
        method: 'POST',
        url: '/erpproduct/brands/index',
        params: [
            {name: 'brandId',type: 'Number'},
            {name: 'status', type: 'Number'},
            {name: 'brandLevel',type: 'string'},
            {name: 'startTime',type: 'string'},
            {name: 'endTime',type: 'string'},
            {name: 'page',type: 'Number'},
            {name: 'size',type: 'Number'}
        ]
    }, {
        //品牌管理 -> 编辑/关闭/开启品牌ajax
        route: '/brand/edit',
        method: 'POST',
        url: '/erpproduct/brands/editBrand',
        params: [
            {name: 'id',type: 'Number'},
            {name: 'status',type: 'Number'},
            {name: 'brandName',type: 'string'},
            {name: 'brandNameEn',type: 'string'},
            {name: 'brandDomain',type: 'string'},
            {name: 'brandIco',type: 'string'},
            {name: 'brandLevel',type: 'string'},
            {name: 'promotionLevel',type: 'Number'},
            {name: 'mainCategory',type: 'Number'},
            {name: 'brandHeadstream',type: 'Number'},
            {name: 'brandTypes',type: 'Number'},
            {name: 'brandUrl',type: 'string'},
            {name: 'brandIntro',type: 'string'},
            {name: 'brandOutline',type: 'string'},
            {name: 'brandFounder',type: 'string'},
            {name: 'brandStyle',type: 'string'},
            {name: 'brandNature',type: 'Number'},
            {name: 'brandTonality',type: 'string'}
        ]
    }, {
        route: '/erpproduct/brands/edit/:brandId',
        method: 'GET',
        view: 'pages/brand/edit',
        src: '/brand/edit',
        url: '/erpproduct/brands/getBrandDetail',
        data: {
            action: '/brand/edit'
        },
        params:[
            {
                name: 'brandId',
                type: 'String'
            }
        ]
    }, {
        route: '/erpproduct/brands/add',
        method: 'GET',
        view: 'pages/brand/edit',
        src:'/brand/edit',
        data:{
            action:'/erpproduct/ajax/brands/add',
            data:{}
        }
    }, {
        route: '/erpproduct/ajax/brands/add',
        method: 'POST',
        url: '/erpproduct/brands/addBrand',
        params:[
            {name: 'brandName',type: 'string'},
            {name: 'brandNameEn',type: 'string'},
            {name: 'brandDomain',type: 'string'},
            {name: 'brandIco',type: 'string'},
            {name: 'brandLevel',type: 'string'},
            {name: 'promotionLevel',type: 'Number'},
            {name: 'mainCategory',type: 'Number'},
            {name: 'brandHeadstream',type: 'Number'},
            {name: 'brandTypes',type: 'Number'},
            {name: 'brandUrl',type: 'string'},
            {name: 'brandIntro',type: 'string'},
            {name: 'brandOutline',type: 'string'},
            {name: 'brandFounder',type: 'string'},
            {name: 'brandStyle',type: 'string'},
            {name: 'brandNature',type: 'Number'},
            {name: 'brandTonality',type: 'string'}
        ]
    }
]