import { MockAdapter } from '../mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取全部数组
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, [
        {
        "srfkey": "SysOperator",
        "emptytext": "未定义",
        "codelisttype":"dynamic",
        "appdataentity":"",
        "appdedataset":"",
        "items": []
    },
    {
        srfkey: 'CodeList43',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '机构直销',
                text: '机构直销',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A1_1',
                label: '直销',
                text: '直销',
                value: 'A1_1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '电销',
                text: '电销',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A2_1',
                label: '电销',
                text: '电销',
                value: 'A2_1',
                disabled: false,
            },
            {
                id: 'A3',
                label: '专业代理',
                text: '专业代理',
                value: 'A3',
                disabled: false,
            },
            {
                id: 'A3_1',
                label: '个人代理',
                text: '个人代理',
                value: 'A3_1',
                disabled: false,
            },
            {
                id: 'A3_2',
                label: '兼业代理',
                text: '兼业代理',
                value: 'A3_2',
                disabled: false,
            },
            {
                id: 'A3_3',
                label: '专业代理',
                text: '专业代理',
                value: 'A3_3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'YesNo',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: '1',
                label: '是',
                text: '是',
                value: 1,
                disabled: false,
            },
            {
                id: '0',
                label: '否',
                text: '否',
                value: 0,
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList25',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '机构直销',
                text: '机构直销',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '电销',
                text: '电销',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '专业代理',
                text: '专业代理',
                value: 'A3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList122',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '蓝色',
                text: '蓝色',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '黄色',
                text: '黄色',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '绿色',
                text: '绿色',
                value: 'A3',
                disabled: false,
            },
            {
                id: 'A4',
                label: '黑色',
                text: '黑色',
                value: 'A4',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList123',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A',
                label: 'A-进口',
                text: 'A-进口',
                value: 'A',
                disabled: false,
            },
            {
                id: 'B',
                label: 'B-国产',
                text: 'B-国产',
                value: 'B',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList44',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '小型汽车号牌',
                text: '小型汽车号牌',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '大型汽车号牌',
                text: '大型汽车号牌',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '使馆汽车号牌',
                text: '使馆汽车号牌',
                value: 'A3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList125',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A',
                label: '男',
                text: '男',
                value: 'A',
                disabled: false,
            },
            {
                id: 'B',
                label: '女',
                text: '女',
                value: 'B',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList120',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '被保人',
                text: '被保人',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '投保人',
                text: '投保人',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '车主',
                text: '车主',
                value: 'A3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList51',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '客车',
                text: '客车',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '挂车',
                text: '挂车',
                value: 'A2',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList126',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'JQX',
                label: '交强险',
                text: '交强险',
                value: 'JQX',
                disabled: false,
            },
            {
                id: 'SYX',
                label: '商业险',
                text: '商业险',
                value: 'SYX',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList73',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '客车',
                text: '客车',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A1_1',
                label: '客车',
                text: '客车',
                value: 'A1_1',
                disabled: false,
            },
            {
                id: 'A1_2',
                label: '警车',
                text: '警车',
                value: 'A1_2',
                disabled: false,
            },
            {
                id: 'A2',
                label: '挂车',
                text: '挂车',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A2_1',
                label: '挂车',
                text: '挂车',
                value: 'A2_1',
                disabled: false,
            },
            {
                id: 'A2_2',
                label: '特种二挂',
                text: '特种二挂',
                value: 'A2_2',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList2',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '按日',
                text: '按日',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '按月',
                text: '按月',
                value: 'A2',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList121',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '轿车',
                text: '轿车',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '客车',
                text: '客车',
                value: 'A2',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList119',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '家庭自用',
                text: '家庭自用',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '非营业企业',
                text: '非营业企业',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '非营业个人',
                text: '非营业个人',
                value: 'A3',
                disabled: false,
            },
        ]
    },
    {
        srfkey: 'CodeList124',
        emptytext: '未定义',
        "codelisttype":"static",
        items: [
            {
                id: 'A1',
                label: '身份证',
                text: '身份证',
                value: 'A1',
                disabled: false,
            },
            {
                id: 'A2',
                label: '护照',
                text: '护照',
                value: 'A2',
                disabled: false,
            },
            {
                id: 'A3',
                label: '军官证',
                text: '军官证',
                value: 'A3',
                disabled: false,
            },
            {
                id: 'A4',
                label: '港澳通行证',
                text: '港澳通行证',
                value: 'A4',
                disabled: false,
            },
        ]
    }
    ]];
});
