limitcode.js 2.29 KB
exports.domain = require('../config/common.js').domain;


//路由配置
exports.res = [
    {
        route: '/limit/index',
        method: 'GET',
        view: 'pages/limitcode/index',
        src: '/limitcode/index',
        noApi: true,
        data: {
            pageTitle: '限购码列表',
            createUrl: '/limit/code/add',
            gridurl:'/limit/code/ajax/index'
        }
    },
    {
        route: '/limit/code/ajax/index',
        method: 'POST',
        url: '/limitCode/getLimitCodeList',
        isJsonRaw:true,
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'}
        ]
    },
    {
        //添加限购码页面
        route: '/limit/code/add',
        method: 'GET',
        view: 'pages/limitcode/edit',
        data: {
            action:"/limit/code/ajax/add",
            type:"add",            
            data:{
                reqDepartment: "零售运营部/平台运营",
            }
        },
        src:'/limitcode/edit'
    },{
        route:'/limit/code/ajax/add',
        method:'POST',
        url:'/limitCode/addLimitCode',
        params:[
            {name:"name",type:"String"},
            {name:"limitTimes",type:"Number"},
            {name:"reqDepartment",type:"String"},
            {name:"limitDateFrom",type:"String"},
            {name:"limitDateTo",type:"String"},
            {name:"describe",type:"String"},
            {name:"userUseLimit",type:"Number"},
            {name:"userTypeLimit",type:"Number"},
            //{name:"limitSkn",type:"String"},
            {name:"creatorName",type:"String"},
            {name:"creatorId",type:"Number"},
            {name:"status",type:"Number"}
        ]
    }
    ,{
        route: '/limit/code/info/:id',
        method: 'GET',
        view: 'pages/limitcode/info',
        url:"/limitCode/getLimitCode",
        isJsonRaw: true,
        params: [
             {name: 'id',type: 'String'}
        ]
    },{//审核限购码接口
        route: '/limit/code/auditLimitCode',
        method: 'GET',
        view: 'pages/limitcode/info',
        url:"/limitCode/auditLimitCode",
        isJsonRaw: true,
        params: [
             {name: 'id',type: 'Number'},
             {name: 'status',type: 'Number'},
             {name: 'reason',type: 'String'}
        ]
    }
]