|
@@ -15,245 +15,258 @@ Vue.use(Router);
|
|
|
*/
|
|
|
|
|
|
export default new Router({
|
|
|
- mode: "history",
|
|
|
- scrollBehavior: (to, from, savedPosition) => {
|
|
|
- if (savedPosition) {
|
|
|
- return savedPosition;
|
|
|
- } else {
|
|
|
- return { x: 0, y: 0 };
|
|
|
- }
|
|
|
- },
|
|
|
- base: process.env.BASE_URL,
|
|
|
- routes: [
|
|
|
- {
|
|
|
- path: "/login",
|
|
|
- component: () =>
|
|
|
- import(/* webpackChunkName: "login" */ "@/views/login/index.vue"),
|
|
|
- meta: { hidden: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/",
|
|
|
- redirect: "/project/index",
|
|
|
- component: Layout,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "project/index",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "project" */ "@/views/project/index.vue"
|
|
|
- ),
|
|
|
- meta: {
|
|
|
- title: "项目管理",
|
|
|
- icon: "icon-xiangmuguanli"
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/allDetails",
|
|
|
- component: Layout,
|
|
|
- meta:{
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "index",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "project" */ "@/layout/components/Navbar/MessageSever/MsgAllDetails.vue"
|
|
|
- ),
|
|
|
- meta: {
|
|
|
- title: "消息中心"
|
|
|
- }
|
|
|
+ mode: "history",
|
|
|
+ scrollBehavior: (to, from, savedPosition) => {
|
|
|
+ if (savedPosition) {
|
|
|
+ return savedPosition;
|
|
|
+ } else {
|
|
|
+ return { x: 0, y: 0 };
|
|
|
}
|
|
|
- ]
|
|
|
},
|
|
|
- {
|
|
|
- path: "/manage",
|
|
|
- component: Layout,
|
|
|
- meta: {
|
|
|
- title: "文件管理",
|
|
|
- icon: "icon-wenjianguanli"
|
|
|
- },
|
|
|
- children: [
|
|
|
+ base: process.env.BASE_URL,
|
|
|
+ routes: [
|
|
|
{
|
|
|
- path: "build",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "build" */ "@/views/manage/build/index.vue"
|
|
|
- ),
|
|
|
- meta: {
|
|
|
- title: "建筑楼层管理",
|
|
|
- // icon: "tree"
|
|
|
- }
|
|
|
+ path: "/login",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "login" */ "@/views/login/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { hidden: true }
|
|
|
},
|
|
|
{
|
|
|
- path: "model",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "model" */ "@/views/manage/model/index.vue"
|
|
|
- ),
|
|
|
- meta: {
|
|
|
- title: "模型修改任务",
|
|
|
- // icon: "table"
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/maintain",
|
|
|
- component: Layout,
|
|
|
- redirect: "/maintain/device",
|
|
|
- meta: {
|
|
|
- title: "数据维护",
|
|
|
- icon: "icon-shujuweihu"
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "device",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "device" */ "@/views/maintain/device/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "设备" }
|
|
|
+ path: "/",
|
|
|
+ redirect: "/project/index",
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "project/index",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "project" */ "@/views/project/index.vue"
|
|
|
+ ),
|
|
|
+ meta: {
|
|
|
+ title: "项目管理",
|
|
|
+ icon: "icon-xiangmuguanli"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: "space",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "space" */ "@/views/maintain/space/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "空间" }
|
|
|
+ path: "/allDetails",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "index",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "project" */ "@/layout/components/Navbar/MessageSever/MsgAllDetails.vue"
|
|
|
+ ),
|
|
|
+ meta: {
|
|
|
+ title: "消息中心"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: "system",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "system" */ "@/views/maintain/system/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "系统" }
|
|
|
+ path: "/manage",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "文件管理",
|
|
|
+ icon: "icon-wenjianguanli"
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "build",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "build" */ "@/views/manage/build/index.vue"
|
|
|
+ ),
|
|
|
+ meta: {
|
|
|
+ title: "建筑楼层管理"
|
|
|
+ // icon: "tree"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "model",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "model" */ "@/views/manage/model/index.vue"
|
|
|
+ ),
|
|
|
+ meta: {
|
|
|
+ title: "模型修改任务"
|
|
|
+ // icon: "table"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "path",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "path" */ "@/views/manage/path/index.vue"
|
|
|
+ ),
|
|
|
+ meta: {
|
|
|
+ hidden: true,
|
|
|
+ title: "模型后台处理监控"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: "relationship",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "relationship" */ "@/views/maintain/relationship/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "关系" }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ path: "/maintain",
|
|
|
+ component: Layout,
|
|
|
+ redirect: "/maintain/device",
|
|
|
+ meta: {
|
|
|
+ title: "数据维护",
|
|
|
+ icon: "icon-shujuweihu"
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "device",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "device" */ "@/views/maintain/device/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "设备" }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "space",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "space" */ "@/views/maintain/space/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "空间" }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "system",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "system" */ "@/views/maintain/system/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "系统" }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "relationship",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "relationship" */ "@/views/maintain/relationship/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "关系" }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
|
|
|
- {
|
|
|
- path: "/scene",
|
|
|
- component: Layout,
|
|
|
- redirect: "/scene/tiepoint",
|
|
|
- meta: {
|
|
|
- title: "现场实施",
|
|
|
- icon: "icon-xianchangshishi"
|
|
|
- },
|
|
|
- children: [
|
|
|
{
|
|
|
- path: "tiepoint",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "tiepoint" */ "@/views/scene/tiepoint/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "绑点" }
|
|
|
+ path: "/scene",
|
|
|
+ component: Layout,
|
|
|
+ redirect: "/scene/tiepoint",
|
|
|
+ meta: {
|
|
|
+ title: "现场实施",
|
|
|
+ icon: "icon-xianchangshishi"
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "tiepoint",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "tiepoint" */ "@/views/scene/tiepoint/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "绑点" }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "system",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "system" */ "@/views/scene/system/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "系统图" }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "plane",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "plane" */ "@/views/scene/plane/index.vue"
|
|
|
+ ),
|
|
|
+ meta: { title: "平面图" }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: "system",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "system" */ "@/views/scene/system/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "系统图" }
|
|
|
+ path: "/tools",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "一致性检查工具",
|
|
|
+ icon: "icon-yizhixingjianchagongju"
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- path: "plane",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "plane" */ "@/views/scene/plane/index.vue"
|
|
|
- ),
|
|
|
- meta: { title: "平面图" }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/tools",
|
|
|
- component: Layout,
|
|
|
- meta: {
|
|
|
- title: "一致性检查工具",
|
|
|
- icon: "icon-yizhixingjianchagongju"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/model-tool",
|
|
|
- component: Layout,
|
|
|
- meta: {
|
|
|
- title: "模型检查工具",
|
|
|
- icon: "icon-moxingjianchagongju"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/management",
|
|
|
- component: Layout,
|
|
|
- meta: {
|
|
|
- title: "综合管理与其他",
|
|
|
- icon: "icon-zongheguanliyuqita"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: "/error",
|
|
|
- component: Layout,
|
|
|
- redirect: "noredirect",
|
|
|
- meta: {
|
|
|
- title: "错误页面",
|
|
|
- icon: "icon-weihubangzhu"
|
|
|
- },
|
|
|
- children: [
|
|
|
+ path: "/model-tool",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "模型检查工具",
|
|
|
+ icon: "icon-moxingjianchagongju"
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
- path: "401",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "error-page-401" */ "@/views/error-page/401.vue"
|
|
|
- ),
|
|
|
- name: "Page401",
|
|
|
- meta: {
|
|
|
- title: "401",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
+ path: "/management",
|
|
|
+ component: Layout,
|
|
|
+ meta: {
|
|
|
+ title: "综合管理与其他",
|
|
|
+ icon: "icon-zongheguanliyuqita"
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- path: "404",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "error-page-404" */ "@/views/error-page/404.vue"
|
|
|
- ),
|
|
|
- name: "404",
|
|
|
- meta: {
|
|
|
- title: "404",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
+ path: "/error",
|
|
|
+ component: Layout,
|
|
|
+ redirect: "noredirect",
|
|
|
+ meta: {
|
|
|
+ title: "错误页面",
|
|
|
+ icon: "icon-weihubangzhu"
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "401",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "error-page-401" */ "@/views/error-page/401.vue"
|
|
|
+ ),
|
|
|
+ name: "Page401",
|
|
|
+ meta: {
|
|
|
+ title: "401",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "404",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "error-page-404" */ "@/views/error-page/404.vue"
|
|
|
+ ),
|
|
|
+ name: "404",
|
|
|
+ meta: {
|
|
|
+ title: "404",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "demo",
|
|
|
+ component: () =>
|
|
|
+ import(
|
|
|
+ /* webpackChunkName: "error-page-demo" */ "@/views/error-page/demo.vue"
|
|
|
+ ),
|
|
|
+ name: "demo",
|
|
|
+ meta: {
|
|
|
+ title: "demo",
|
|
|
+ noCache: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
- {
|
|
|
- path: "demo",
|
|
|
- component: () =>
|
|
|
- import(
|
|
|
- /* webpackChunkName: "error-page-demo" */ "@/views/error-page/demo.vue"
|
|
|
- ),
|
|
|
- name: "demo",
|
|
|
- meta: {
|
|
|
- title: "demo",
|
|
|
- noCache: true
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: "*",
|
|
|
- redirect: "/404",
|
|
|
- meta: { hidden: true }
|
|
|
- }
|
|
|
- ]
|
|
|
+ {
|
|
|
+ path: "*",
|
|
|
+ redirect: "/404",
|
|
|
+ meta: { hidden: true }
|
|
|
+ }
|
|
|
+ ]
|
|
|
});
|