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
| import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
| import pinia from "../stores/index";
| import { useLoadingStore } from "../stores/loadingStore";
|
|
| const routes = [
| {
| //问题审核
| name: 'procheck',
| path: '/procheck',
| component: () => import('@/views/check/ProCheck.vue'),
| },
| {
| //整改审核
| name: 'changecheck',
| path: '/changecheck',
| component: () => import('@/views/check/ChangeCheck.vue'),
| },
| {
| //台账审核
| name: 'ledger',
| path: '/ledger',
| component: () => import('@/views/ledger/LedgerManage.vue'),
| },
| {
| //问题动态跟踪
| name: 'profollow',
| path: '/analysis/profollow',
| component: () => import('@/views/analysis/ProFollow.vue'),
| },
| {
| //问题整改分析
| name: 'proanalysis',
| path: '/analysis/proanalysis',
| component: () => import('@/views/analysis/ProAnalysis.vue'),
| },
| {
| //规范性评估
| name: 'standardjudge',
| path: '/analysis/standardjudge',
| component: () => import('@/views/analysis/StandardJudge.vue'),
| },
| {
| //日报管理
| name: 'dailyreport',
| path: '/dailyreport',
| component: () => import('@/views/dailyreport/DailyReport.vue'),
| },
| {
| //场景报告-工地
| name: 'construction',
| path: '/scenereport/construction',
| component: () => import('@/views/scenereport/ConstructionReport.vue'),
| },
| {
| //场景报告-码头
| name: 'wharf',
| path: '/scenereport/wharf',
| component: () => import('@/views/scenereport/WharfReport.vue'),
| },
| {
| //场景报告-搅拌站
| name: 'mixing',
| path: '/scenereport/mixing',
| component: () => import('@/views/scenereport/MixingReport.vue'),
| },
| {
| //场景报告-堆场
| name: 'storage',
| path: '/scenereport/storage',
| component: () => import('@/views/scenereport/StorageReport.vue'),
| },
| {
| //通知管理
| name: 'notice',
| path: '/notice',
| component: () => import('@/views/notice/NoticeManage.vue'),
| },
|
| // 飞羽监管
| {
| //账户管理
| name: 'fyspUser',
| path: '/fysp/userInfo',
| component: () => import('@/views/baseinfo/fysp/user/UserInfo.vue'),
| },
| // {
| // //场景管理
| // name: 'fyspSceneManage',
| // path: '/fysp/sceneManage/',
| // component: () => import('@/views/user/fysp/SceneManage.vue'),
| // children: [
|
| // ]
| // },
| {
| //场景信息
| name: 'fyspSceneInfo',
| path: '/fysp/sceneInfo',
| component: () => import('@/views/baseinfo/fysp/scene/SceneInfo.vue'),
| meta: { keepAlive: true },
| },
| {
| //场景编辑
| name: 'fyspSceneEdit',
| path: '/fysp/sceneEdit/:sid',
| component: () => import('@/views/baseinfo/fysp/scene/SceneEdit.vue'),
| meta: { transition: 'slide-left' },
| },
|
| // 飞羽环境
| {
| //账户管理
| name: 'fytzUser',
| path: '/fytz/userInfo',
| component: () => import('@/views/baseinfo/fytz/user/UserInfo.vue'),
| },
| ];
|
| const router = createRouter({
| // history: createWebHistory(import.meta.env.BASE_URL)
| history: createWebHashHistory(),
| routes: routes,
| });
|
| const loadingStore = useLoadingStore(pinia)
| router.afterEach((to, from) => {
| loadingStore.clearLoading()
| })
|
| export { router, routes };
|
|