routes.js
2.63 KB
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 login from "@/views/login/login.vue";
const errorPage = [
{
path: "/404",
component: () => import("@/views/404"),
hidden: true,
},
{ path: "*", redirect: "/404", hidden: true },
];
/*const frameOut = [
{
path: "/",
name: "login",
component: login,
},
];*/
const constantRoutes = [
{
path: "/",
component: () => import("@/views/Home"),
redirect: "/",
children: [
{
path: "/",
name: "首页",
code: "0-1",
component: () => import("@/views/panel/index"),
},
{
path: "/panel",
name: "首页",
code: "0-1",
component: () => import("@/views/panel/index"),
},
{
path: "/add",
name: "添加",
code: "0-6",
component: () => import("@/views/panel/add/index"),
},
{
path: "/modify",
name: "更正",
code: "0-3",
component: () => import("@/views/panel/modify/index"),
},
{
path: "/change",
name: "变更",
code: "0-4",
component: () => import("@/views/panel/change/index"),
},
{
path: "/search",
name: "综合查询",
code: "0-5",
component: () => import("@/views/panel/search/index"),
},
{
path: "/zrz",
name: "自然幢",
code: "1-1",
component: () => import("@/views/zrz/index"),
},
{
path: "/dz",
name: "多幢",
code: "1-2",
component: () => import("@/views/dz/index"),
},
{
path: "/zd",
name: "宗地",
code: "1-5",
component: () => import("@/views/zd/index"),
},{
path: "/h",
name: "户",
code: "1-6",
component: () => import("@/views/systemH/index"),
},
{
path: "/gzw",
name: "构筑物",
code: "1-7",
component: () => import("@/views/gzw/index"),
},
{
path: "/viewMap",
name: "地图",
code: "0-6",
component: () => import("@/views/systemTX/map"),
},
{
path: "/manage",
name: "系统管理",
code: "0-7",
component: () => import("@/views/manage/index"),
},
{
path: "/dbx",
name: "待办箱",
code: "2-1",
component: () => import("@/views/dbx/index"),
},
{
path: "/ybx",
name: "已办箱",
code: "2-1",
component: () => import("@/views/ybx/index"),
},
{
path: "/lq",
name: "林权",
code: "1-3",
component: () => import("@/views/lq/index"),
},
{
path: "/zykfzddgxhgl",
name: "个性化管理",
code: "1-4",
component: () => import("@/views/manage/gxhgl/index"),
},
],
},
];
// 在这里面动态引入路由文件 达成权限处理得问题
// 重新组织后导出
export default [...errorPage, ...constantRoutes];