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
| -- save area record
| -- mysql
| insert into `sys_menu` ( `name`, `parent_id`, `route`, `component`, `type`, `sort`, `tenant_id`, `status`) values ( 'menu.area', '0', '/manager/area', 'area', '0' , '0', '1' , '1');
|
| insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Query Area', '', '1', 'manager:area:list', '0', '1', '1');
| insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Create Area', '', '1', 'manager:area:save', '1', '1', '1');
| insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Update Area', '', '1', 'manager:area:update', '2', '1', '1');
| insert into `sys_menu` ( `name`, `parent_id`, `type`, `authority`, `sort`, `tenant_id`, `status`) values ( 'Delete Area', '', '1', 'manager:area:remove', '3', '1', '1');
|
| -- locale menu name
| area: 'Area',
|
| -- locale field
| area: {
| uuid: "uuid",
| name: "name",
| code: "code",
| zoneId: "zoneId",
| type: "type",
| maxCount: "maxCount",
| speedLimit: "speedLimit",
| shapeType: "shapeType",
| shapeData: "shapeData",
| color: "color",
| priority: "priority",
| version: "version",
| },
|
| -- ResourceContent
| import area from './area';
|
| case 'area':
| return area;
|
|