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

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

// 获取全部数组
mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status,
    [
        {"type":"appde",
    "appCodeName":"OrmOrg",
    "appName":"组织管理",
    "portletCodeName": "OrmPNumList",
    "portletName": "组织人数",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"orm-org-orm-pnum-list-portlet"},
    {"type":"appde",
    "appCodeName":"OrmOrg",
    "appName":"组织管理",
    "portletCodeName": "OrgBar",
    "portletName": "组织分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"orm-org-org-bar-portlet"},
    {"type":"appde",
    "appCodeName":"PimVocational",
    "appName":"证书信息",
    "portletCodeName": "OrgVocNumList",
    "portletName": "职业资格",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"pim-vocational-org-voc-num-list-portlet"},
    {"type":"appde",
    "appCodeName":"PimOutput",
    "appName":"产值表",
    "portletCodeName": "OrgOutPutLine",
    "portletName": "月均产值",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"pim-output-org-out-put-line-portlet"},
    {"type":"appde",
    "appCodeName":"PimPerson",
    "appName":"人员信息",
    "portletCodeName": "OrgPersonAgeFunnel",
    "portletName": "年龄分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"pim-person-org-person-age-funnel-portlet"},
    {"type":"appde",
    "appCodeName":"PimPerson",
    "appName":"人员信息",
    "portletCodeName": "OrgPersonOrgTypePie",
    "portletName": "机关与项目人员",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"pim-person-org-person-org-type-pie-portlet"},
    {"type":"app",
    "appCodeName":"PimEducation",
    "appName":"教育信息",
    "portletCodeName": "OrgEduPie",
    "portletName": "学历分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-pim-education-org-edu-pie-portlet"},
    {"type":"app",
    "appCodeName":"PimPerson",
    "appName":"人员信息",
    "portletCodeName": "OrgPersonAgeFunnel",
    "portletName": "年龄分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-pim-person-org-person-age-funnel-portlet"},
    {"type":"app",
    "appCodeName":"PimOutput",
    "appName":"产值表",
    "portletCodeName": "OrgOutPutLine",
    "portletName": "月均产值",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-pim-output-org-out-put-line-portlet"},
    {"type":"app",
    "appCodeName":"PimPerson",
    "appName":"人员信息",
    "portletCodeName": "OrgPersonOrgTypePie",
    "portletName": "机关与项目人员",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-pim-person-org-person-org-type-pie-portlet"},
    {"type":"app",
    "appCodeName":"OrmOrg",
    "appName":"组织管理",
    "portletCodeName": "OrmPNumList",
    "portletName": "组织人数",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"app-orm-org-orm-pnum-list-portlet"},
    {"type":"app",
    "appCodeName":"OrmOrg",
    "appName":"组织管理",
    "portletCodeName": "OrgBar",
    "portletName": "组织分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-orm-org-org-bar-portlet"},
    {"type":"app",
    "appCodeName":"PimVocational",
    "appName":"证书信息",
    "portletCodeName": "OrgVocNumList",
    "portletName": "职业资格",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"LIST","componentName":"app-pim-vocational-org-voc-num-list-portlet"},
    {"type":"app",
    "appCodeName":"PimTitle",
    "appName":"职称信息",
    "portletCodeName": "OrgTitleBar",
    "portletName": "职称分布",
    "groupCodeName":"Ungroup",
    "groupName":"（未分类）",
    "portletTYpe":"CHART","componentName":"app-pim-title-org-title-bar-portlet"}
    ]];
});