|
@@ -1,3 +1,4 @@
|
|
|
+import { params } from "@/env";
|
|
|
import { ui18n } from "@/lang";
|
|
|
|
|
|
export enum RoutesName {
|
|
@@ -37,9 +38,8 @@ export enum RoutesName {
|
|
|
signModel = "signModel",
|
|
|
error = "error",
|
|
|
|
|
|
-
|
|
|
// 安防
|
|
|
- security = 'security'
|
|
|
+ security = "security",
|
|
|
}
|
|
|
|
|
|
export const paths = {
|
|
@@ -62,7 +62,7 @@ export const paths = {
|
|
|
[RoutesName.view]: "view",
|
|
|
|
|
|
[RoutesName.show]: "/show",
|
|
|
- // [RoutesName.fireInfo]: "fireInfo",
|
|
|
+ [RoutesName.fireInfo]: "fireInfo",
|
|
|
[RoutesName.summaryShow]: "summary",
|
|
|
[RoutesName.recordShow]: "record",
|
|
|
[RoutesName.viewShow]: "view",
|
|
@@ -72,71 +72,72 @@ export const paths = {
|
|
|
[RoutesName.security]: "security",
|
|
|
};
|
|
|
|
|
|
-export const metas = {
|
|
|
+export const metas: any = {
|
|
|
[RoutesName.merge]: {
|
|
|
icon: "joint",
|
|
|
- title: ui18n.t('fuse.join'),
|
|
|
- sysTitle: ui18n.t('fuse.name'),
|
|
|
+ title: ui18n.t("fuse.join"),
|
|
|
+ sysTitle: ui18n.t("fuse.name"),
|
|
|
},
|
|
|
- [RoutesName.proportion]: { full: true, sysTitle: ui18n.t('fuse.name') },
|
|
|
- [RoutesName.registration]: { full: true, sysTitle: ui18n.t('fuse.name') },
|
|
|
+ [RoutesName.proportion]: { full: true, sysTitle: ui18n.t("fuse.name") },
|
|
|
+ [RoutesName.registration]: { full: true, sysTitle: ui18n.t("fuse.name") },
|
|
|
[RoutesName.tagging]: {
|
|
|
icon: "label",
|
|
|
- title: ui18n.t('tagging.name'),
|
|
|
- sysTitle: ui18n.t('fuse.name'),
|
|
|
+ title: ui18n.t("tagging.name"),
|
|
|
+ sysTitle: ui18n.t("fuse.name"),
|
|
|
},
|
|
|
[RoutesName.guide]: {
|
|
|
icon: "path",
|
|
|
- title: ui18n.t('guide.name'),
|
|
|
- sysTitle: ui18n.t('fuse.name'),
|
|
|
+ title: ui18n.t("guide.name"),
|
|
|
+ sysTitle: ui18n.t("fuse.name"),
|
|
|
},
|
|
|
[RoutesName.measure]: {
|
|
|
icon: "nav-measure",
|
|
|
- title: ui18n.t('measure.name') ,
|
|
|
- sysTitle: ui18n.t('fuse.name'),
|
|
|
+ title: ui18n.t("measure.name"),
|
|
|
+ sysTitle: ui18n.t("fuse.name"),
|
|
|
},
|
|
|
[RoutesName.setting]: {
|
|
|
icon: "nav-setup",
|
|
|
- title: ui18n.t('setting.name'),
|
|
|
- sysTitle: ui18n.t('fuse.name'),
|
|
|
+ title: ui18n.t("setting.name"),
|
|
|
+ sysTitle: ui18n.t("fuse.name"),
|
|
|
},
|
|
|
|
|
|
[RoutesName.view]: {
|
|
|
- sysTitle: ui18n.t('view.name'),
|
|
|
+ sysTitle: ui18n.t("view.name"),
|
|
|
icon: "nav-setup",
|
|
|
- title: ui18n.t('view.name'),
|
|
|
- left: 'scene-list'
|
|
|
+ title: ui18n.t("view.name"),
|
|
|
+ left: "scene-list",
|
|
|
},
|
|
|
- [RoutesName.record]: { sysTitle: ui18n.t('record.name') },
|
|
|
+ [RoutesName.record]: { sysTitle: ui18n.t("record.name") },
|
|
|
[RoutesName.show]: { sysTitle: "" },
|
|
|
|
|
|
[RoutesName.summaryShow]: {
|
|
|
icon: "list_s",
|
|
|
- title: ui18n.t('scene.list'),
|
|
|
+ title: ui18n.t("scene.list"),
|
|
|
},
|
|
|
[RoutesName.viewShow]: {
|
|
|
icon: "list-scene",
|
|
|
- title: ui18n.t('view.vName'),
|
|
|
+ title: ui18n.t("view.vName"),
|
|
|
},
|
|
|
- // [RoutesName.fireInfo]: {
|
|
|
- // icon: "message_c",
|
|
|
- // title:ui18n.t('case.name'),
|
|
|
- // },
|
|
|
[RoutesName.recordShow]: {
|
|
|
icon: "list-record",
|
|
|
- title: ui18n.t('record.vName'),
|
|
|
+ title: ui18n.t("record.vName"),
|
|
|
},
|
|
|
[RoutesName.folderShow]: {
|
|
|
icon: "list-file",
|
|
|
- title: ui18n.t('floder.name')
|
|
|
-
|
|
|
+ title: ui18n.t("floder.name"),
|
|
|
},
|
|
|
[RoutesName.error]: {
|
|
|
- title: ui18n.t('sys.errPage'),
|
|
|
+ title: ui18n.t("sys.errPage"),
|
|
|
},
|
|
|
[RoutesName.security]: {
|
|
|
icon: "path",
|
|
|
- title: ui18n.t('security.name'),
|
|
|
+ title: ui18n.t("security.name"),
|
|
|
},
|
|
|
};
|
|
|
+if (params.ga === 'true') {
|
|
|
+ (metas as any)[RoutesName.fireInfo] = {
|
|
|
+ icon: "message_c",
|
|
|
+ title: ui18n.t("case.name"),
|
|
|
+ };
|
|
|
+}
|
|
|
export const ViewHome = RoutesName.merge;
|