Admin
2022-07-14 96d5331c6d51975a28378e20051403fdd5b53d9a
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import { RouteRecordRaw } from 'vue-router';
 
export const dynamicRoutes: Array<RouteRecordRaw> = [
 
    {
        path: '/',
        name: '/',
        component: () => import('/@/layout/index.vue'),
        redirect: '/loginPage',
        meta: {
            isKeepAlive: true,
        },
        children: [
            {
                path: '/home',
                name: 'home',
                component: () => import('/@/views/home/index.vue'),
                meta: {
                    title: 'message.router.home',
                    isLink: '',
                    isHide: false,
                    isKeepAlive: true,
                    isAffix: true,
                    isIframe: false,
                    roles: ['admin', 'common'],
                    icon: 'iconfont icon-shouye',
                    button:'121231'
                }
            // },
            // {
            //     path: '/layoutPage',
            //     name: 'layoutPage',
            //     component: () => import('/@/views/layoutPage/index.vue'),
            //     meta: {
            //         title: 'message.router.layoutPage',
            //         isLink: '',
            //         isHide: false,
            //         isKeepAlive: true,
            //         isAffix: true,
            //         isIframe: false,
            //         roles: ['admin', 'common'],
            //         icon: 'iconfont icon-shouye',
            //         button:'121231'
            //     },
            }
        ],
    }
];
 
 
export const notFoundAndNoPower = [
    {
        path: '/:path(.*)*',
        name: 'notFound',
        component: () => import('/@/views/error/404.vue'),
        meta: {
            title: 'message.staticRoutes.notFound',
            isHide: true,
        },
    },
    {
        path: '/401',
        name: 'noPower',
        component: () => import('/@/views/error/401.vue'),
        meta: {
            title: 'message.staticRoutes.noPower',
            isHide: true,
        },
    },
];
 
export const staticRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: '/',
        component: () => import('/@/layout/index.vue'),
        meta: {
            title: '布局界面',
        },
        children: [
            // 请不要往这里 `children` 中添加内容,此内容为了防止 No match found for location with path "xxx" 问题
            ...notFoundAndNoPower,
        ],
    },
    {
        path: '/loginPage',
        name: 'loginPage',
        component: () => import('/@/views/loginPage/loginPage.vue'),
        meta: {
            title: '登录',
        },
    },
    {
        path: '/homeMenu',
        name: 'homeMenu',
        component: () => import('/@/views/homeMenu/homeMenu.vue'),
        meta: {
            title: '目录',
        }
    },
    {
        path: '/workReservation',
        name: 'workReservation',
        component: () => import('/@/views/specialWorkSystem/workPlan/workReservation/index.vue'),
        meta: {
            title: '作业预约',
        },
    },
    {
        path: '/workAppointSummary',
        name: 'workAppointSummary',
        component: () => import('/@/views/specialWorkSystem/workPlan/workAppointSummary/index.vue'),
        meta: {
            title: '作业预约汇总',
        },
    },
    {
        path: '/approveProcessSetting',
        name: 'approveProcessSetting',
        component: () => import('/@/views/specialWorkSystem/approveProcessManagement/approveProcessSetting/index.vue'),
        meta: {
            title: '审批流程编辑',
        },
    },
    {
        path: '/reportTypeSetting',
        name: 'reportTypeSetting',
        component: () => import('/@/views/specialWorkSystem/approveProcessManagement/reportTypeSetting/index.vue'),
        meta: {
            title: '新建上报类型',
        },
    },
    {
        path: '/addApproveProcess',
        name: 'addApproveProcess',
        component: () => import('/@/views/specialWorkSystem/approveProcessManagement/addApproveProcess/index.vue'),
        meta: {
            title: '新建审批环节',
        },
    },
    {
        path: '/approveProcessList',
        name: 'approveProcessList',
        component: () => import('/@/views/specialWorkSystem/approveProcessManagement/approveProcessList/index.vue'),
        meta: {
            title: '审批流程管理',
        },
    },
    {
        path: '/workApplyForm',
        name: 'workApplyForm',
        component: () => import('/@/views/specialWorkSystem/workApplyManagement/workApplyForm/index.vue'),
        meta: {
            title: '作业申请表单',
        },
    },
    {
        path: '/myApply',
        name: 'myApply',
        component: () => import('/@/views/specialWorkSystem/workApplyManagement/myApply/index.vue'),
        meta: {
            title: '我的申请',
        },
    },
    {
        path: '/workCheckinRecord',
        name: 'workCheckinRecord',
        component: () => import('/@/views/specialWorkSystem/workProcessManagement/workCheckinRecord/index.vue'),
        meta: {
            title: '作业签到记录',
        },
    },
    {
        path: '/gasCheckAnalyze',
        name: 'gasCheckAnalyze',
        component: () => import('/@/views/specialWorkSystem/workProcessManagement/gasCheckAnalyze/index.vue'),
        meta: {
            title: '气体检查分析',
        },
    },
    {
        path: '/workTicketRecord',
        name: 'workTicketRecord',
        component: () => import('/@/views/specialWorkSystem/afterWorkManagement/workTicketRecord/index.vue'),
        meta: {
            title: '作业票归档记录',
        },
    },
    {
        path: '/workTicketCheck',
        name: 'workTicketCheck',
        component: () => import('/@/views/specialWorkSystem/afterWorkManagement/workTicketCheck/index.vue'),
        meta: {
            title: '作业票抽查',
        },
    },
    {
        path: '/workTypeSetting',
        name: 'workTypeSetting',
        component: () => import('/@/views/specialWorkSystem/workBasicManagementSetting/workTypeSetting/index.vue'),
        meta: {
            title: '作业工种设置',
        },
    },
    {
        path: '/certificateFilterSetting',
        name: 'certificateFilterSetting',
        component: () => import('/@/views/specialWorkSystem/workBasicManagementSetting/certificateFilterSetting/index.vue'),
        meta: {
            title: '证书过滤设置',
        },
    },
    {
        path: '/personalProtectDevices',
        name: 'personalProtectDevices',
        component: () => import('/@/views/specialWorkSystem/workBasicManagementSetting/personalProtectDevices/index.vue'),
        meta: {
            title: '个人防护用品库',
        },
    },
    {
        path: '/securityMeasuresManagement',
        name: 'securityMeasuresManagement',
        component: () => import('/@/views/specialWorkSystem/workBasicManagementSetting/securityMeasuresManagement/index.vue'),
        meta: {
            title: '安全措施管理',
        },
    }
];