rt-sim-training-client/src/scripts/ProjectConfig.js

324 lines
11 KiB
JavaScript
Raw Normal View History

import LangStorage from '@/utils/lang';
import Favicon from '@/assets/icon/favicon.png';
import FaviconXty from '@/assets/icon/favicon_xty.png';
import FaviconGzb from '@/assets/icon/favicon_gzb.png';
import FaviconHyd from '@/assets/icon/favicon_hyd.png';
2020-04-16 16:14:28 +08:00
import FaviconXadt from '@/assets/icon/favicon_xas.png';
2020-06-15 10:05:27 +08:00
import FaviconJyd from '@/assets/icon/favicon_jyd.png';
2020-06-15 13:03:24 +08:00
import Bottom_Jyd from '@/assets/icon/bottom_jyd.png';
import Link_Jyd from '@/assets/icon/link_jyd.png';
2020-07-03 09:26:17 +08:00
import FaviconTky from '@/assets/icon/favicon_tky.png';
import { LoginParams } from '@/utils/login';
// title:页面title; loginPath:退出登录跳转路径; loginParam:登录接口参数project;loginTitle:登录页左上角titlelogoWidth登录页左上角logo宽度
// homeTitle:导航栏title(没有采用title); browserTitle:浏览器窗口titlebottomColumn底部栏描述bottomIcon底部栏Icon;linkIcon:浏览器窗口icon(没有采用ProjectIcon)
export const loginInfo = {
xty: {
title: '西安铁路职业技术学院城市轨道交通实训平台',
// loginPath: '/xty/login',
loginPath:'/login?pro=xty',
loginParam: 'XTY',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
login: {
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Practical Training Platform' : '城市轨道交通实训平台',
2020-06-19 10:23:13 +08:00
loginPath: '/login',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
design: {
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Design Platform' : '城市轨道交通设计平台',
2020-06-19 10:23:13 +08:00
loginPath: '/design/login',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
designxty: {
title: '西安铁路职业技术学院城市轨道交通设计平台',
// loginPath: '/designxty/login',
loginPath:'/design/login?project=xty',
loginParam: 'XTY',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
gzb: {
title: '贵州装备制造职业学院城市轨道交通实训平台',
// loginPath: '/gzb/login',
loginPath:'/login?project=gzb',
loginParam: 'GZB',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
designgzb: {
title: '贵州装备制造职业学院城市轨道交通设计平台',
// loginPath: '/designgzb/login',
loginPath:'/design/login?project=gzb',
loginParam: 'GZB',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
hyd: {
title: '城市轨道交通综合行车模拟仿真系统V1.0',
loginTitle: '城市轨道交通综合行车模拟仿真系统V1.0',
logoWidth: '140px',
loginPath: '/login?project=hyd',
2020-06-19 10:23:13 +08:00
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
loginParam: 'DEFAULT',
navigationLogoWidth: '120px',
navigationMarginLeft: '140px'
},
designhyd: {
title: '城市轨道交通设计平台V1.0',
loginTitle: '城市轨道交通设计平台V1.0',
logoWidth: '140px',
loginPath: '/design/login?project=hyd',
2020-06-19 10:23:13 +08:00
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
loginParam: 'DEFAULT',
navigationLogoWidth: '120px',
navigationMarginLeft: '140px'
},
2020-04-16 16:14:28 +08:00
xadt: {
2020-04-21 15:47:25 +08:00
title: '城市轨道交通实训平台',
2020-06-28 10:33:35 +08:00
logoWidth: '60px',
2020-04-21 15:47:25 +08:00
loginTitle: '调度一部',
homeTitle: '调度一部',
browserTitle: '西安地铁调度一部城市轨道交通实训平台',
loginPath:'/login?project=xadt',
// loginPath: '/xadt/login',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
},
2020-04-16 16:14:28 +08:00
designxadt: {
2020-04-21 15:47:25 +08:00
title: '城市轨道交通设计平台',
2020-06-28 10:33:35 +08:00
logoWidth: '60px',
2020-04-21 15:47:25 +08:00
loginTitle: '调度一部',
homeTitle: '调度一部',
browserTitle: '西安地铁调度一部城市轨道交通设计平台',
// loginPath: '/designxadt/login',
loginPath:'/design/login?project=xadt',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
2020-05-15 11:12:06 +08:00
},
2020-05-15 11:29:24 +08:00
jsxt:{
title: '城市轨道交通竞赛平台',
2020-06-19 10:23:13 +08:00
loginPath: '/jsxt/login',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
2020-05-15 14:50:05 +08:00
},
refereeJsxt:{
title: '城市轨道交通裁判平台',
2020-06-19 10:23:13 +08:00
loginPath: '/refereeJsxt/login',
loginParam: 'DEFAULT',
navigationLogoWidth: '40px',
navigationMarginLeft: '60px'
2020-06-15 10:05:27 +08:00
},
jyd: {
2020-06-15 13:03:24 +08:00
title: '城市轨道交通实训平台',
// loginPath: '/jyd/login',
loginPath:'/login?project=jyd',
2020-06-28 10:33:35 +08:00
logoWidth: '300px',
navigationLogoWidth: '120px',
navigationMarginLeft: '140px',
2020-06-28 10:33:35 +08:00
loginTitle: '空串',
2020-06-16 15:10:39 +08:00
bottomColumn: '',
2020-06-15 13:03:24 +08:00
bottomIcon: Bottom_Jyd,
2020-06-19 10:23:13 +08:00
linkIcon: Link_Jyd,
loginParam: 'DEFAULT'
2020-06-15 10:05:27 +08:00
},
designjyd: {
2020-06-15 13:03:24 +08:00
title: '城市轨道交通设计平台',
2020-06-28 10:33:35 +08:00
loginTitle: '空串',
logoWidth: '300px',
navigationLogoWidth: '120px',
navigationMarginLeft: '140px',
// loginPath: '/designjyd/login',
loginPath:'/design/login?project=jyd',
2020-06-16 15:10:39 +08:00
bottomColumn: '',
2020-06-15 13:03:24 +08:00
bottomIcon: Bottom_Jyd,
2020-06-19 10:23:13 +08:00
linkIcon: Link_Jyd,
loginParam: 'DEFAULT'
2020-07-03 09:26:17 +08:00
},
tky: {
title: '城市轨道交通实训平台',
// loginPath: '/tky/login',
loginPath:'/login?project=tky',
loginTitle: '空串',
2020-07-03 09:26:17 +08:00
bottomColumn: '',
bottomIcon: FaviconTky,
loginParam: 'DEFAULT',
navigationLogoWidth: '75px',
navigationMarginLeft: '90px'
2020-07-03 09:26:17 +08:00
},
designtky: {
title: '城市轨道交通设计平台',
// loginPath: '/designtky/login',
loginPath:'/design/login?project=tky',
loginTitle: '空串',
2020-07-03 09:26:17 +08:00
bottomIcon: FaviconTky,
bottomColumn: '',
loginParam: 'DEFAULT',
navigationLogoWidth: '75px',
navigationMarginLeft: '90px'
}
};
export const ProjectIcon = {
xty: FaviconXty,
login: Favicon,
design: Favicon,
designxty: FaviconXty,
gzb: FaviconGzb,
designgzb:FaviconGzb,
hyd: FaviconHyd,
designhyd: FaviconHyd,
2020-04-16 16:14:28 +08:00
xadt: FaviconXadt,
2020-05-15 11:31:22 +08:00
designxadt: FaviconXadt,
2020-05-15 14:50:05 +08:00
jsxt: Favicon,
2020-06-15 10:05:27 +08:00
refereeJsxt: Favicon,
jyd: FaviconJyd,
2020-07-03 09:26:17 +08:00
designjyd: FaviconJyd,
tky: FaviconTky,
designtky: FaviconTky
};
export const ProjectCode = {
xty: 'XTY',
designxty: 'XTY',
gzb: 'GZB',
designgzb: 'GZB',
hyd: 'HYD',
designhyd: 'HYD',
xadt: 'XADT',
2020-06-15 10:05:27 +08:00
designxadt: 'XADT',
jyd: 'JYD',
2020-07-03 09:26:17 +08:00
designjyd: 'JYD',
tky: 'TKY',
designtky: 'TKY'
};
2020-07-03 09:26:17 +08:00
export const BottomColumnOnlyConInfo = ['hyd', 'designhyd', 'jyd', 'designjyd', 'tky', 'designtky']; // 底部栏仅展示公司信息不展示备案号
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt']; // 实训设计平台通过项目code获取地图列表的项目
export const CaseHideProjectList = ['hyd', 'designhyd']; // 案例展示隐藏的项目
2020-06-16 15:10:39 +08:00
export const VersionBaseNoShow = ['hyd', 'designhyd']; // 登录页右下角版本开发基于不展示
2020-07-03 09:26:17 +08:00
export const MainBodyNoShow = ['hyd', 'designhyd', 'jyd', 'designjyd', 'tky', 'designtky']; // 登录页右下角主体不展示
2020-07-07 17:54:11 +08:00
export const GenerateRouteProjectList = ['jsxt', 'refereeJsxt', 'gzb', 'designgzb', 'xty', 'designxty'];// 需要在公共路由中生成登录页面的项目&登录页样式
export const goOtherPlatformMenu = { // 导航栏快速切换平台
login: '/design/login',
design: '/login',
xty: '/design/login?project=xty',
designxty: '/login?project=xty',
gzb: '/design/login?project=gzb',
designgzb: '/login?project=gzb',
hyd: '/design/login?project=hyd',
designhyd: '/login?project=hyd',
xadt: '/design/login?project=xadt',
designxadt: '/login?project=xadt',
jyd: '/design/login?project=jyd',
designjyd: '/login?project=jyd',
tky: '/design/login?project=tky',
designtky: '/login?project=tky'
};
export const PermissionParam = { // 路径权限处理所需参数配置(跳转白名单&路径正则匹配&clientId
2020-05-21 15:03:42 +08:00
hyd: {
// systemType: '011'
whitePage: '/login?project=hyd',
reg: /^\/hyd/,
systemType: '011',
clientId: null
2020-05-21 15:03:42 +08:00
},
designhyd: {
// systemType: '011'
whitePage: '/design/login?project=hyd',
reg: /^\/designhyd/,
systemType: '011',
clientId: LoginParams.Design.clientId
2020-05-21 15:03:42 +08:00
},
2020-05-20 13:25:31 +08:00
login: {
systemType: '011'
},
design: {
systemType: '011'
},
designxty: {
whitePage: '/design/login?project=xty',
reg: /^\/designxty/,
2020-05-20 13:25:31 +08:00
systemType: '013',
clientId: LoginParams.Design.clientId
},
designgzb: {
whitePage: '/design/login?project=gzb',
reg: /^\/designgzb/,
2020-05-20 13:25:31 +08:00
systemType: '014',
clientId: LoginParams.Design.clientId
},
designxadt: {
whitePage: '/design/login?project=xadt',
reg: /^\/designxadt/,
2020-05-20 13:25:31 +08:00
systemType: '012',
clientId: LoginParams.Design.clientId
},
2020-06-15 10:05:27 +08:00
designjyd: {
whitePage: '/design/login?project=jyd',
2020-06-15 10:05:27 +08:00
reg: /^\/designjyd/,
2020-07-03 09:26:17 +08:00
systemType: '017',
clientId: LoginParams.Design.clientId
},
designtky: {
whitePage: '/design/login?project=tky',
2020-07-03 09:26:17 +08:00
reg: /^\/designtky/,
systemType: '018',
2020-06-15 10:05:27 +08:00
clientId: LoginParams.Design.clientId
},
xty: {
whitePage: '/login?project=xty',
reg: /^\/xty/,
2020-05-20 13:25:31 +08:00
systemType: '013',
clientId: null
},
gzb: {
whitePage: '/login?project=gzb',
reg: /^\/gzb/,
2020-05-20 13:25:31 +08:00
systemType: '014',
clientId: null
},
xadt: {
whitePage: '/login?project=xadt',
reg: /^\/xadt/,
2020-05-20 13:25:31 +08:00
systemType: '012',
clientId: null
2020-05-15 11:29:24 +08:00
},
2020-06-15 10:05:27 +08:00
jyd: {
whitePage: '/login?project=jyd',
2020-06-15 10:05:27 +08:00
reg: /^\/jyd/,
2020-07-03 09:26:17 +08:00
systemType: '017',
clientId: null
},
tky: {
whitePage: '/login?project=tky',
2020-07-03 09:26:17 +08:00
reg: /^\/tky/,
systemType: '018',
2020-06-15 10:05:27 +08:00
clientId: null
},
2020-05-15 11:29:24 +08:00
jsxt: {
whitePage: '/jsxt/login',
reg: /^\/jsxt/,
2020-05-20 13:25:31 +08:00
systemType: '015',
2020-05-15 11:29:24 +08:00
clientId: null
2020-05-15 14:50:05 +08:00
},
refereeJsxt: {
whitePage: '/refereeJsxt/login',
reg: /^\/refereeJsxt/,
2020-05-20 13:25:31 +08:00
systemType: '015',
2020-05-19 09:03:38 +08:00
clientId: LoginParams.Design.clientId
}
};
export const ProjectList = [
{value:'xty', label:'西铁院'},
{value: 'gzb', label: '贵州装备'},
{value: 'xadt', label: '西安地铁'}
];