增加江苏安全技术职业学院登录页面
This commit is contained in:
parent
afeec55025
commit
66b72b101f
BIN
src/assets/icon/favicon_say.png
Normal file
BIN
src/assets/icon/favicon_say.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 163 KiB |
@ -87,7 +87,7 @@ router.beforeEach( async (to, from, next) => {
|
||||
} else {
|
||||
project = getSessionStorage('project');
|
||||
}
|
||||
if (!store.state.user.baseUrl && project) {
|
||||
if (!store.state.user.baseUrl && project && loginInfo[project]) {
|
||||
try {
|
||||
const resp = await getBaseUrlByProject(ProjectCode[project]);
|
||||
if (resp && resp.data && resp.data.domainName) {
|
||||
|
@ -236,6 +236,7 @@ export const projectRichor = '022';// 中航锐创
|
||||
export const projectRichorJoint = '023'; // 中航锐创(实训室)
|
||||
export const projectSrsandbox = '024'; // 上饶沙盘
|
||||
export const projectJxgm = '025'; // 江西工贸
|
||||
export const projectSay = '026'; // 江苏安全
|
||||
|
||||
export const userTrainingPlatform = '016'; // 实训系统
|
||||
// export const refereePlatform = '017'; // 裁判系统
|
||||
@ -1570,6 +1571,27 @@ export const projectRoute = {
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
designsay: [
|
||||
{ // 系统管理
|
||||
path: '/system',
|
||||
component: Layout,
|
||||
merge: true,
|
||||
mergeIndex: 4,
|
||||
meta: {
|
||||
i18n: 'router.systemManage',
|
||||
roles: [admin]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'deviceManage',
|
||||
component: DeviceManage,
|
||||
meta: {
|
||||
i18n: 'router.deviceManage'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
const createRouter = () => new Router({
|
||||
|
@ -17,6 +17,7 @@ import FaviconSdy from '@/assets/icon/favicon_jdy.png';
|
||||
import FaviconCgy from '@/assets/icon/favicon_cgy.png';
|
||||
import FaviconRichor from '@/assets/icon/favicon_richor.png';
|
||||
import FaviconZzww from '@/assets/icon/favicon_zzww.png';
|
||||
import FaviconSay from '@/assets/icon/favicon_say.png';
|
||||
import Link_Bxkc from '@/assets/icon/link_bxkc.png';
|
||||
import Link_Crsc from '@/assets/icon/link_crsc.png';
|
||||
import Link_Hls from '@/assets/icon/link_hls.png';
|
||||
@ -603,6 +604,24 @@ export const loginInfo = {
|
||||
navigationLogoWidth: '10px',
|
||||
navigationMarginLeft: '10px',
|
||||
systemType: '011'
|
||||
},
|
||||
say: {
|
||||
title: '江苏安全技术职业学院城市轨道交通实训平台',
|
||||
loginPath: '/login?project=say',
|
||||
loginParam: 'SAY',
|
||||
titleDistance: '-150px',
|
||||
navigationLogoWidth: '40px',
|
||||
navigationMarginLeft: '60px',
|
||||
systemType: '026'
|
||||
},
|
||||
designsay: {
|
||||
title: '江苏安全技术职业学院城市轨道交通设计平台',
|
||||
loginPath: '/design/login?project=say',
|
||||
loginParam: 'SAY',
|
||||
titleDistance: '-150px',
|
||||
navigationLogoWidth: '40px',
|
||||
navigationMarginLeft: '60px',
|
||||
systemType: '026'
|
||||
}
|
||||
};
|
||||
|
||||
@ -660,7 +679,9 @@ export const ProjectIcon = {
|
||||
jxgm: FaviconRichor,
|
||||
designjxgm: FaviconRichor,
|
||||
richorygy: FaviconRichor,
|
||||
designrichorygy: FaviconRichor
|
||||
designrichorygy: FaviconRichor,
|
||||
say: FaviconSay,
|
||||
designsay: FaviconSay
|
||||
};
|
||||
|
||||
export const ProjectCode = {
|
||||
@ -706,7 +727,9 @@ export const ProjectCode = {
|
||||
richorygy: 'RICHOR_YGY',
|
||||
designrichorygy: 'RICHOR_YGY',
|
||||
hls: 'DEFAULT',
|
||||
designhls: 'DEFAULT'
|
||||
designhls: 'DEFAULT',
|
||||
say: 'SAY',
|
||||
designsay: 'SAY'
|
||||
};
|
||||
/** 嵌入第三方平台 导航栏右上角 清空 */
|
||||
export const ThirdLoginList = ['richor', 'designrichor', 'richorygy', 'designrichorygy'];
|
||||
@ -718,7 +741,7 @@ export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd',
|
||||
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb', 'designdrts', 'drts', 'wjls',
|
||||
'nty', 'designnty', 'sdy', 'designsdy', 'ntyc', 'designntyc', 'ntyl', 'designntyl', 'designbjd', 'cgy', 'designcgy', 'zzww', 'zzwwtest', 'richor',
|
||||
'richorlesson3d', 'richorjoint', 'designrichorjoint', 'nologo', 'designnologo', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm',
|
||||
'richorygy', 'designrichorygy'];
|
||||
'richorygy', 'designrichorygy', 'say', 'designsay'];
|
||||
/** 案例展示隐藏的项目 */
|
||||
export const CaseHideProjectList = ['heb', 'designheb', 'cgy', 'designcgy'];
|
||||
/** 登录页右下角版本开发基于不展示 */
|
||||
@ -732,7 +755,7 @@ export const MainBodyNoShow = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'd
|
||||
export const ProjectLoginStyleList = ['gzb', 'designgzb', 'xty', 'designxty', 'xadt', 'designxadt', 'tky', 'designtky', 'jyd', 'designjyd', 'bxkc', 'designbxkc',
|
||||
'crsc', 'designcrsc', 'hls', 'designhls', 'drts', 'wjls', 'hyd', 'designhyd', 'nty', 'designnty', 'bjd', 'designbjd', 'sdy', 'designsdy', 'ntyc', 'designntyc',
|
||||
'ntyl', 'designntyl', 'cgy', 'designcgy', 'zzww', 'zzwwtest', 'srsandbox', 'designsrsandbox', 'designhlsdrts', 'hlsdrts', 'jxgm', 'designjxgm', 'xzexam',
|
||||
'richorygy', 'designrichorygy'];
|
||||
'richorygy', 'designrichorygy', 'say', 'designsay'];
|
||||
/** 登录页 登录输入框无二维码 */
|
||||
export const NoQrcodeList = ['heb', 'designheb', 'cgy', 'designcgy', 'ntyl', 'designntyl'];
|
||||
/** 综合演练 无二维码 */
|
||||
@ -781,7 +804,9 @@ export const goOtherPlatformMenu = {
|
||||
srsandbox: '/design/login?project=srsandbox',
|
||||
designsrsandbox: '/login?project=srsandbox',
|
||||
jxgm: '/design/login?project=jxgm',
|
||||
designjxgm: '/login?project=jxgm'
|
||||
designjxgm: '/login?project=jxgm',
|
||||
say: '/design/login?project=say',
|
||||
designsay: '/login?project=say'
|
||||
};
|
||||
export const ProjectList = [
|
||||
{value:'xty', label:'西铁院'},
|
||||
@ -805,7 +830,8 @@ export const ProjectList = [
|
||||
{value: 'nologo', label: '无logo' },
|
||||
{value: 'sr_sandbox', label: '上饶沙盘'},
|
||||
{value: 'jxgm', label: '江西工贸' },
|
||||
{value: 'richor_ygy', label: '扬州工业'}
|
||||
{value: 'richor_ygy', label: '扬州工业'},
|
||||
{value: 'say', label: '苏安院'}
|
||||
];
|
||||
/** 本地项目打包 */
|
||||
export const localPackageProject = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { publicAsyncRoute, asyncRouter, constantRoutes, user, projectTrain, projectXian, projectXty, projectGzzb, projectJsxt, projectRichorJoint, projectJyd, projectRichor, projectTky, projectHeb, superAdmin, admin, userTrainingPlatform, JSXT, projectRoute, projectDrts, projectSdy, projectSrsandbox, projectJxgm } from '@/router/index';
|
||||
import { publicAsyncRoute, asyncRouter, constantRoutes, user, projectTrain, projectXian, projectXty, projectGzzb, projectJsxt, projectRichorJoint, projectJyd, projectRichor, projectTky, projectHeb, superAdmin, admin, userTrainingPlatform, JSXT, projectRoute, projectDrts, projectSdy, projectSrsandbox, projectJxgm, projectSay } from '@/router/index';
|
||||
import { loginInfo } from '@/scripts/ProjectConfig';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
|
||||
@ -36,9 +36,9 @@ function hasPermission(roles, route, parentsRoles) {
|
||||
function resetAsyncRouter({ systemType }) {
|
||||
let list = publicAsyncRoute;
|
||||
const projectList = [projectTrain, projectXian, projectJyd, projectTky, projectDrts, projectRichor];
|
||||
const specialProjects = [projectXty, projectGzzb, projectHeb, projectSdy, projectRichorJoint, projectSrsandbox, projectJxgm];
|
||||
const specialProjects = [projectXty, projectGzzb, projectHeb, projectSdy, projectRichorJoint, projectSrsandbox, projectJxgm, projectSay];
|
||||
const specialProjectEnum = {[projectXty]:'designxty', [projectGzzb]:'designgzb', [projectHeb]:'designheb',
|
||||
[projectSdy]:'designsdy', [projectRichorJoint]:'designrichorjoint', [projectSrsandbox]: 'designsrsandbox', [projectJxgm]: 'designjxgm' };
|
||||
[projectSdy]:'designsdy', [projectRichorJoint]:'designrichorjoint', [projectSrsandbox]: 'designsrsandbox', [projectJxgm]: 'designjxgm', [projectSay]: 'designsay' };
|
||||
if (projectList.includes(systemType)) {
|
||||
list = [...list, ...asyncRouter];
|
||||
} else if (specialProjects.includes(systemType) ) {
|
||||
|
@ -46,7 +46,8 @@ export default {
|
||||
{ label: '中航锐创(实训室)', value: 'RICHOR_JOINT' },
|
||||
{label: '上饶沙盘', value: 'SR_SANDBOX'},
|
||||
{label: '江西工贸', value: 'JXGM'},
|
||||
{label: '扬州工业', value: 'RICHOR_YGY'}
|
||||
{label: '扬州工业', value: 'RICHOR_YGY'},
|
||||
{label: '苏安院', value: 'SAY'}
|
||||
],
|
||||
projectMap: {
|
||||
designxty: 'XTY',
|
||||
@ -56,7 +57,8 @@ export default {
|
||||
designrichorjoint: 'RICHOR_JOINT',
|
||||
designsrsandbox: 'SR_SANDBOX',
|
||||
designjxgm: 'JXGM',
|
||||
designygy: 'RICHOR_YGY'
|
||||
designygy: 'RICHOR_YGY',
|
||||
designsay: 'SAY'
|
||||
},
|
||||
queryForm: {
|
||||
labelWidth: '120px',
|
||||
|
Loading…
Reference in New Issue
Block a user