-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtreeMockData.js
43 lines (38 loc) · 1.9 KB
/
treeMockData.js
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
export const data1 = [
{ id: 1, name: 'company', parent: null, children: [
{ id: 2 , name: 'company2' , parent: {id: 1} , departmenttype: { id: 1 }, children: []},
{ id: 3 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 2 }, children: []},
{ id: 4 , name: 'compsany3' , parent: {id: 1} , departmenttype: { id: 3 }, children: [
{ id: 9 , name: 'compsdfany3' , parent: {id: 1} , departmenttype: { id: 4 }, children: []},
{ id: 10 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 5 }, children: [
{ id: 11 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 5 }, children: []},
{ id: 12 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 5 }, children: []},
{ id: 13 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 5 }, children: []},
]},
]},
{ id: 5 , name: 'compasdfny3' , parent: {id: 1} , departmenttype: { id: 4 }, children: []},
{ id: 6 , name: 'compasdfny3' , parent: {id: 1} , departmenttype: { id: 5 }, children: []},
{ id: 7 , name: 'company3' , parent: {id: 1} , departmenttype: { id: 2 }, children: []},
{ id: 8 , name: 'comp33any3' , parent: {id: 1} , departmenttype: { id: 1 }, children: []
},
]
}
];
export const data2 = [
{ id: 1, name: 'company', parent: null, children: [] }
];
export const data3 = [
{ id: 1, name: 'company', parent: null, children: [
{ id: 2 , name: 'company2' , parent: {id: 1} , departmenttype: { id: 1 }, children: []},
]}
];
export const data4 = [
{id: 1, name: 'company', parent: null, children: [
{id: 2, parent: {id: 1}, name: 'subcompany1', children: []},
{id: 3, parent: {id: 1}, name: 'subcompany2', children: [
{id: 4, parent: {id: 3}, name: 'example-company', children: []}
]},
{id: 5, parent: {id: 1}, name: 'company2', children: []},
{id: 6, parent: {id: 1}, name: 'company3', children: []}
]}
]