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

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

// 获取应用数据
mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '801bacb689744f3de00c39b84618cbf5',
	name: 'menuitem1',
	text: '车险单建立',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '车险单建立',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto1',
	resourcetag: '',
},
            {
	id: 'edcf745c76c1c398b5e5511586f4e4c8',
	name: 'menuitem2',
	text: '基础信息',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '基础信息',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
	items: [
		{
	id: 'cddcb581ccd422e521770f7a9ec996e4',
	name: 'menuitem6',
	text: '数据字典',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '数据字典',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto3',
	resourcetag: '',
},
		{
	id: 'a080449a849e33a8abd71d8c6011df50',
	name: 'menuitem7',
	text: '特别约定库',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '特别约定库',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto6',
	resourcetag: '',
},
	],
},
        ],
    }];
});

