riku
2024-10-24 71ed602a8b17430c119b2ae6472a47dd6e6e0c95
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
// eslint-disable-next-line no-unused-vars
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import pinia from '../stores/index'
import { useLoadingStore } from '../stores/loadingStore'
 
const routes = [
  // {
  //   //整改审核
  //   name: 'changecheck',
  //   path: '/changecheck',
  //   component: () => import('@/views/check/ChangeCheck.vue')
  // },
  /**********************************飞羽监管***********************************************/
  {
    //问题动态跟踪
    name: 'profollow',
    path: '/fysp/data-product/profollow',
    component: () => import('@/views/fysp/data-product/ProdProFollow.vue')
  },
  {
    //问题整改分析
    name: 'proanalysis',
    path: '/fysp/data-product/proanalysis',
    component: () => import('@/views/fysp/data-product/ProdProAnalysis.vue')
  },
  {
    //规范性评估
    name: 'standardjudge',
    path: '/fysp/data-product/standardjudge',
    component: () => import('@/views/fysp/data-product/ProdStandardJudge.vue')
  },
  {
    //日报管理
    name: 'dailyreport',
    path: '/fysp/data-product/dailyreport',
    component: () => import('@/views/fysp/data-product/ProdDailyReport.vue')
  },
  {
    //场景报告
    name: 'scenereport',
    path: '/fysp/data-product/scenereport',
    component: () => import('@/views/fysp/data-product/ProdSceneReport.vue')
  },
  // {
  //   //场景报告-工地
  //   name: 'construction',
  //   path: '/scenereport/construction',
  //   component: () => import('@/views/fysp/scenereport/ConstructionReport.vue')
  // },
  // {
  //   //场景报告-码头
  //   name: 'wharf',
  //   path: '/scenereport/wharf',
  //   component: () => import('@/views/fysp/scenereport/WharfReport.vue')
  // },
  // {
  //   //场景报告-搅拌站
  //   name: 'mixing',
  //   path: '/scenereport/mixing',
  //   component: () => import('@/views/fysp/scenereport/MixingReport.vue')
  // },
  // {
  //   //场景报告-堆场
  //   name: 'storage',
  //   path: '/scenereport/storage',
  //   component: () => import('@/views/fysp/scenereport/StorageReport.vue')
  // },
 
  {
    //监管任务
    name: 'taskmanage',
    path: '/fysp/task/manage',
    component: () => import('@/views/fysp/task/TaskManage.vue'),
    meta: { keepAlive: true }
  },
  {
    //监管任务场景编辑
    name: 'monitorObjEdit',
    path: '/fysp/task/edit',
    component: () => import('@/views/fysp/task/MonitorObjEdit.vue')
  },
  {
    //监管任务计划编辑
    name: 'monitorPlanEdit',
    path: '/fysp/task/plan/edit',
    component: () => import('@/views/fysp/task/MonitorPlanEdit.vue')
  },
  {
    //监管任务计划编辑
    name: 'monitorTaskCreate',
    path: '/fysp/task/create',
    component: () => import('@/views/fysp/task/MonitorTaskCreate.vue')
  },
  {
    //问题审核
    name: 'procheck',
    path: '/fysp/procheck',
    component: () => import('@/views/fysp/check/ProCheck.vue')
  },
  // {
  //   //账户管理
  //   name: 'fyspUser',
  //   path: '/fysp/userInfo',
  //   component: () => import('@/views/baseinfo/fysp/user/UserInfo.vue')
  // },
  {
    //监管问题
    name: 'fyspProblemType',
    path: '/fysp/config/problemType',
    component: () => import('@/views/fysp/config/ProblemType.vue')
  },
  {
    //设备匹配
    name: 'fyspDeviceMatch',
    path: '/fysp/config/deviceMatch',
    component: () => import('@/views/fysp/config/DeviceMatch.vue')
  },
  {
    //评估规则管理
    name: 'fyspEvalutationRule',
    path: '/fysp/config/evalutationRule',
    component: () => import('@/views/fysp/config/EvalutationRule.vue')
  },
  {
    //评估数据源
    name: 'fyspEvalutationTask',
    path: '/fysp/evaluation/evalutationTask',
    component: () => import('@/views/fysp/evaluation/EvalutationTask.vue'),
    meta: { keepAlive: false }
  },
  {
    //评估管理
    name: 'fyspEvalutationRecord',
    path: '/fysp/evaluation/evalutationRecord',
    component: () => import('@/views/fysp/evaluation/EvalutationRecord.vue'),
    meta: { keepAlive: true }
  },
  {
    //评估结果详情
    name: 'fyspEvalutationEdit',
    path: '/fysp/evaluation/evalutationEdit/:subTaskId',
    component: () => import('@/views/fysp/evaluation/EvalutationEdit.vue'),
  },
  {
    //场景信息
    name: 'fyspSceneInfo',
    path: '/fysp/sceneInfo',
    component: () => import('@/views/fysp/scene/SceneInfo.vue'),
    meta: { keepAlive: true }
  },
  {
    //场景编辑
    name: 'fyspSceneEdit',
    path: '/fysp/sceneEdit/:sid',
    component: () => import('@/views/fysp/scene/SceneEdit.vue'),
    meta: { transition: 'slide-left' }
  },
  {
    //对外支持
    name: 'fyspSupport',
    path: '/fysp/support',
    component: () => import('@/views/fysp/support/JingAnSupport.vue'),
  },
 
  /**********************************飞羽环境***********************************************/
  {
    //台账审核
    name: 'ledger',
    path: '/fytz/ledger',
    component: () => import('@/views/fytz/ledger/LedgerManage.vue')
  },
  {
    //通知管理
    name: 'notice',
    path: '/fytz/notice',
    component: () => import('@/views/fytz/notice/NoticeManage.vue')
  },
  {
    //账户管理
    name: 'fytzUser',
    path: '/fytz/userInfo',
    component: () => import('@/views/fytz/user/UserInfo.vue'),
    meta: { keepAlive: true }
  },
  {
    //账户编辑
    name: 'fytzUserEdit',
    path: '/fytz/userEdit/:userId',
    component: () => import('@/views/fytz/user/UserEdit.vue'),
    meta: { transition: 'slide-left' }
  },
  {
    //环保督察案例
    name: 'enforceCase',
    path: '/fytz/enforceCase',
    component: () => import('@/views/fytz/enforce-case/EnforceCase.vue')
  },
 
  /**********************************通用模块***********************************************/
  {
    //账户匹配
    name: 'userMatch',
    path: '/common/userMatch',
    component: () => import('@/views/common/UserMatch.vue')
  }
]
 
const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL)
  history: createWebHashHistory(),
  routes: routes
})
 
const loadingStore = useLoadingStore(pinia)
// eslint-disable-next-line no-unused-vars
router.afterEach((to, from) => {
  loadingStore.clearLoading()
})
 
export { router, routes }