1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();
import Mock from 'mockjs'
const Random = Mock.Random;
// 基于 APP/src/mock/app/%CTRL_PKGPATH%-appmenu/%CTRL_PKGPATH%-appmenu.ts.ftl 生成
// 获取应用数据
mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, {
name: 'appmenu',
items: [
{
id: '6D010B99-E521-4723-B2CE-6F0BBF9CAA45',
name: 'menuitem1',
text: '菜单1',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单1',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc66',
resourcetag: '',
},
{
id: 'A5823AC8-C818-42F2-B5FB-C8C6B45E0CC5',
name: 'menuitem2',
text: '菜单2',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单2',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'UsrAppFunc1108357066',
resourcetag: '',
},
{
id: 'CBA0A6CE-0592-432F-B7A3-93C8D23FE82B',
name: 'menuitem3',
text: '菜单3',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单3',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto393',
resourcetag: '',
},
{
id: 'E35F291C-5D2B-4851-B302-2B5533A57819',
name: 'menuitem4',
text: '菜单4',
type: 'MENUITEM',
counterid: '',
tooltip: '菜单4',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc31',
resourcetag: '',
},
],
}];
});