#
vincentlu
2025-05-13 ebd2f4397a92c6a5096de1b86d59154363344720
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import {
    ListGuesser,
    EditGuesser,
    ShowGuesser,
} from "react-admin";
 
import host from "./host";
import config from './config';
import tenant from './tenant';
import role from './role';
import userLogin from './userLogin';
import dept from "./dept";
import menu from './menu'
import user from './user';
import operationRecord from './operationRecord';
import zone from './zone';
import staSts from './staSts';
import staType from './staType';
import code from './code';
import sta from './sta';
import codeGap from './codeGap';
import route from './route';
import funcSta from './funcSta';
import locSts from './locSts';
import locType from './locType';
import loc from './loc';
import agvSts from './agvSts';
import agvModel from './agvModel';
import agv from './agv';
import agvDetail from './agvDetail';
import actionSts from './actionSts';
import actionType from './actionType';
import busSts from './busSts';
import taskSts from './taskSts';
import taskType from './taskType';
import vehFaultRec from './vehFaultRec';
import bus from './bus';
import task from './task';
import travel from './travel';
import segment from './segment';
import jam from './jam';
import action from './action';
import mission from "./mission";
 
const ResourceContent = (node) => {
    switch (node.component) {
        case 'host':
            return host;
        case 'config':
            return config;
        case 'tenant':
            return tenant;
        case 'role':
            return role;
        case 'userLogin':
            return userLogin;
        case 'dept':
            return dept;
        case 'menu':
            return menu;
        case 'user':
            return user;
        case 'operationRecord':
            return operationRecord;
        case 'zone':
            return zone;
        case 'staSts':
            return staSts;
        case 'staType':
            return staType;
        case 'code':
            return code;
        case 'sta':
            return sta;
        case 'codeGap':
            return codeGap;
        case 'route':
            return route;
        case 'funcSta':
            return funcSta;
        case 'locSts':
            return locSts;
        case 'locType':
            return locType;
        case 'loc':
            return loc;
        case 'agvSts':
            return agvSts;
        case 'agvModel':
            return agvModel;
        case 'agv':
            return agv;
        case 'agvDetail':
            return agvDetail;
        case 'actionSts':
            return actionSts;
        case 'actionType':
            return actionType;
        case 'busSts':
            return busSts;
        case 'taskSts':
            return taskSts;
        case 'taskType':
            return taskType;
        case 'vehFaultRec':
            return vehFaultRec;
        case 'bus':
            return bus;
        case 'task':
            return task;
        case 'travel':
            return travel;
        case 'segment':
            return segment;
        case 'jam':
            return jam;
        case 'action':
            return action;
        case 'mission':
            return mission;
        default:
            return {
                list: ListGuesser,
                edit: EditGuesser,
                show: ShowGuesser,
            }
    }
}
 
export default ResourceContent;