menu.js 2.93 KB
Newer Older
1
// // TODO: authority
xiaohu's avatar
xiaohu committed
2 3 4 5 6 7 8
// const menuData = [
//   {
//     name: 'dashboard',
//     icon: 'dashboard',
//     path: 'dashboard',
//     children: [
//       {
9
//         name: 'analysis',
xiaohu's avatar
xiaohu committed
10 11 12
//         path: 'analysis',
//       },
//       {
13
//         name: 'monitor',
xiaohu's avatar
xiaohu committed
14 15 16
//         path: 'monitor',
//       },
//       {
17
//         name: 'workplace',
xiaohu's avatar
xiaohu committed
18 19 20 21 22 23 24
//         path: 'workplace',
//         // hideInBreadcrumb: true,
//         // hideInMenu: true,
//       },
//     ],
//   },
//   {
25
//     name: 'form',
xiaohu's avatar
xiaohu committed
26 27 28 29
//     icon: 'form',
//     path: 'form',
//     children: [
//       {
30
//         name: 'basicform',
xiaohu's avatar
xiaohu committed
31 32 33
//         path: 'basic-form',
//       },
//       {
34
//         name: 'stepform',
xiaohu's avatar
xiaohu committed
35 36 37
//         path: 'step-form',
//       },
//       {
38 39
//         // authority: 'admin',
//         name: 'advancedform',
xiaohu's avatar
xiaohu committed
40 41 42 43 44 45
//         authority: 'admin',
//         path: 'advanced-form',
//       },
//     ],
//   },
//   {
46
//     name: 'list',
xiaohu's avatar
xiaohu committed
47 48 49 50
//     icon: 'table',
//     path: 'list',
//     children: [
//       {
51
//         name: 'searchlist',
xiaohu's avatar
xiaohu committed
52 53 54
//         path: 'table-list',
//       },
//       {
55
//         name: 'basiclist',
xiaohu's avatar
xiaohu committed
56 57 58
//         path: 'basic-list',
//       },
//       {
59
//         name: 'cardlist',
xiaohu's avatar
xiaohu committed
60 61 62
//         path: 'card-list',
//       },
//       {
63
//         name: 'searchlist',
xiaohu's avatar
xiaohu committed
64 65 66
//         path: 'search',
//         children: [
//           {
67
//             name: 'articles',
xiaohu's avatar
xiaohu committed
68 69 70
//             path: 'articles',
//           },
//           {
71
//             name: 'projects',
xiaohu's avatar
xiaohu committed
72 73 74
//             path: 'projects',
//           },
//           {
75
//             name: 'applications',
xiaohu's avatar
xiaohu committed
76 77 78 79 80 81 82
//             path: 'applications',
//           },
//         ],
//       },
//     ],
//   },
//   {
83
//     name: 'profile',
xiaohu's avatar
xiaohu committed
84 85 86 87
//     icon: 'profile',
//     path: 'profile',
//     children: [
//       {
88
//         name: 'basic',
xiaohu's avatar
xiaohu committed
89 90 91
//         path: 'basic',
//       },
//       {
92
//         name: 'advanced',
xiaohu's avatar
xiaohu committed
93
//         path: 'advanced',
94
//         // authority: 'admin',
xiaohu's avatar
xiaohu committed
95 96 97 98
//       },
//     ],
//   },
//   {
99
//     name: 'result',
xiaohu's avatar
xiaohu committed
100 101 102 103
//     icon: 'check-circle-o',
//     path: 'result',
//     children: [
//       {
104
//         name: 'success',
xiaohu's avatar
xiaohu committed
105 106 107
//         path: 'success',
//       },
//       {
108
//         name: 'fail',
xiaohu's avatar
xiaohu committed
109 110 111 112 113
//         path: 'fail',
//       },
//     ],
//   },
//   {
114
//     name: 'exception',
xiaohu's avatar
xiaohu committed
115 116 117 118
//     icon: 'warning',
//     path: 'exception',
//     children: [
//       {
119
//         name: 'not-permission',
xiaohu's avatar
xiaohu committed
120 121 122
//         path: '403',
//       },
//       {
123
//         name: 'not-find',
xiaohu's avatar
xiaohu committed
124 125 126
//         path: '404',
//       },
//       {
127
//         name: 'server-error',
xiaohu's avatar
xiaohu committed
128 129 130
//         path: '500',
//       },
//       {
131
//         name: 'trigger',
xiaohu's avatar
xiaohu committed
132 133 134 135 136 137
//         path: 'trigger',
//         hideInMenu: true,
//       },
//     ],
//   },
//   {
138
//     name: 'account',
xiaohu's avatar
xiaohu committed
139 140 141 142
//     icon: 'user',
//     path: 'account',
//     children: [
//       {
143
//         name: 'center',
xiaohu's avatar
xiaohu committed
144 145 146
//         path: 'center',
//       },
//       {
147
//         name: 'settings',
xiaohu's avatar
xiaohu committed
148 149 150 151 152
//         path: 'settings',
//       },
//     ],
//   },
// ];