Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
1ed90362c0
@ -1,13 +1,12 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import store from '@/store/index_APP_TARGET';
|
import store from '@/store/index_APP_TARGET';
|
||||||
import router from './router/index_APP_TARGET';
|
import router from './router/index_APP_TARGET';
|
||||||
import {PermissionParam} from '@/scripts/ProjectConfig';
|
import {loginInfo} from '@/scripts/ProjectConfig';
|
||||||
import NProgress from 'nprogress';
|
import NProgress from 'nprogress';
|
||||||
import 'nprogress/nprogress.css';
|
import 'nprogress/nprogress.css';
|
||||||
// import { admin } from './router/index_APP_TARGET';
|
// import { admin } from './router/index_APP_TARGET';
|
||||||
import { getToken, removeToken, getSessionStorage } from '@/utils/auth';
|
import { getToken, removeToken, getSessionStorage } from '@/utils/auth';
|
||||||
import localStore from 'storejs';
|
import localStore from 'storejs';
|
||||||
import { loginInfo } from '@/scripts/ProjectConfig';
|
|
||||||
|
|
||||||
// function hasPermission(roles, permissionRoles) {
|
// function hasPermission(roles, permissionRoles) {
|
||||||
// if (roles.indexOf(admin) >= 0) return true;
|
// if (roles.indexOf(admin) >= 0) return true;
|
||||||
@ -22,9 +21,9 @@ const whiteList = ['/login', '/design/login', '/gzzbxy/relay']; // 不重定向
|
|||||||
// function isDesignPage(toRoutePath) {
|
// function isDesignPage(toRoutePath) {
|
||||||
// return designPageRegex.some(item => item.test(toRoutePath) );
|
// return designPageRegex.some(item => item.test(toRoutePath) );
|
||||||
// }
|
// }
|
||||||
for (const val in PermissionParam) {
|
for (const val in loginInfo) {
|
||||||
if (PermissionParam[val].whitePage && !whiteList.includes(PermissionParam[val].whitePage)) {
|
if (loginInfo[val].loginPath && !whiteList.includes(loginInfo[val].loginPath)) {
|
||||||
whiteList.push(PermissionParam[val].whitePage);
|
whiteList.push(loginInfo[val].loginPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// const loginPage = whiteList[0];
|
// const loginPage = whiteList[0];
|
||||||
@ -38,15 +37,7 @@ function getRouteInfo(to) {
|
|||||||
if (whiteList.includes(toRoutePath)) { // 登陆页面清空 token
|
if (whiteList.includes(toRoutePath)) { // 登陆页面清空 token
|
||||||
removeToken();
|
removeToken();
|
||||||
}
|
}
|
||||||
|
loginPath = loginInfo[current_session] ? loginInfo[current_session].loginPath : whiteList[0];
|
||||||
// if (isDesignPage(toRoutePath)) {
|
|
||||||
// const whitePage = PermissionParam[current_session] ? PermissionParam[current_session].whitePage : '';
|
|
||||||
// loginPath = whitePage || loginDesignPage;
|
|
||||||
// } else {
|
|
||||||
// const whitePage = PermissionParam[current_session] ? PermissionParam[current_session].whitePage : '';
|
|
||||||
// loginPath = whitePage || loginPage;
|
|
||||||
// }
|
|
||||||
loginPath = PermissionParam[current_session] ? PermissionParam[current_session].whitePage : whiteList[0];
|
|
||||||
if (to.query.projectDevice && to.query.type) {
|
if (to.query.projectDevice && to.query.type) {
|
||||||
loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}&type=${to.query.type}`;
|
loginPath = `${loginPath}&projectDevice=${to.query.projectDevice}&type=${to.query.type}`;
|
||||||
}
|
}
|
||||||
|
@ -15,28 +15,32 @@ import Link_Crsc from '@/assets/icon/link_crsc.png';
|
|||||||
|
|
||||||
// title:页面title; loginPath:退出登录跳转路径; loginParam:登录接口参数project;loginTitle:登录页左上角title;logoWidth:登录页左上角logo宽度;
|
// title:页面title; loginPath:退出登录跳转路径; loginParam:登录接口参数project;loginTitle:登录页左上角title;logoWidth:登录页左上角logo宽度;
|
||||||
// homeTitle:导航栏title(没有采用title); browserTitle:浏览器窗口title;bottomColumn:底部栏描述;bottomIcon:底部栏Icon;linkIcon:浏览器窗口icon(没有采用ProjectIcon)
|
// homeTitle:导航栏title(没有采用title); browserTitle:浏览器窗口title;bottomColumn:底部栏描述;bottomIcon:底部栏Icon;linkIcon:浏览器窗口icon(没有采用ProjectIcon)
|
||||||
|
// titleDistance 项目title距离密码框距离
|
||||||
export const loginInfo = {
|
export const loginInfo = {
|
||||||
xty: {
|
xty: {
|
||||||
title: '西安铁路职业技术学院城市轨道交通实训平台',
|
title: '西安铁路职业技术学院城市轨道交通实训平台',
|
||||||
loginPath:'/login?pro=xty',
|
loginPath:'/login?project=xty',
|
||||||
loginParam: 'XTY',
|
loginParam: 'XTY',
|
||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '013'
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Practical Training Platform' : '城市轨道交通实训平台',
|
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Practical Training Platform' : '城市轨道交通实训平台',
|
||||||
loginPath: '/login',
|
loginPath: '/login',
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
design: {
|
design: {
|
||||||
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Design Platform' : '城市轨道交通设计平台',
|
title: LangStorage.getLang() == 'en' ? ' Urban Rail Transit Design Platform' : '城市轨道交通设计平台',
|
||||||
loginPath: '/design/login',
|
loginPath: '/design/login',
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
designxty: {
|
designxty: {
|
||||||
title: '西安铁路职业技术学院城市轨道交通设计平台',
|
title: '西安铁路职业技术学院城市轨道交通设计平台',
|
||||||
@ -44,7 +48,8 @@ export const loginInfo = {
|
|||||||
loginParam: 'XTY',
|
loginParam: 'XTY',
|
||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '013'
|
||||||
},
|
},
|
||||||
gzb: {
|
gzb: {
|
||||||
title: '贵州装备制造职业学院城市轨道交通实训平台',
|
title: '贵州装备制造职业学院城市轨道交通实训平台',
|
||||||
@ -52,7 +57,8 @@ export const loginInfo = {
|
|||||||
loginParam: 'GZB',
|
loginParam: 'GZB',
|
||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '014'
|
||||||
},
|
},
|
||||||
designgzb: {
|
designgzb: {
|
||||||
title: '贵州装备制造职业学院城市轨道交通设计平台',
|
title: '贵州装备制造职业学院城市轨道交通设计平台',
|
||||||
@ -60,7 +66,8 @@ export const loginInfo = {
|
|||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
loginParam: 'GZB',
|
loginParam: 'GZB',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '014'
|
||||||
},
|
},
|
||||||
heb: {
|
heb: {
|
||||||
title: '城市轨道交通综合行车模拟仿真系统V1.0',
|
title: '城市轨道交通综合行车模拟仿真系统V1.0',
|
||||||
@ -71,7 +78,8 @@ export const loginInfo = {
|
|||||||
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
|
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
|
||||||
loginParam: 'HEB',
|
loginParam: 'HEB',
|
||||||
navigationLogoWidth: '120px',
|
navigationLogoWidth: '120px',
|
||||||
navigationMarginLeft: '140px'
|
navigationMarginLeft: '140px',
|
||||||
|
systemType: '019'
|
||||||
},
|
},
|
||||||
designheb: {
|
designheb: {
|
||||||
title: '城市轨道交通设计平台V1.0',
|
title: '城市轨道交通设计平台V1.0',
|
||||||
@ -82,7 +90,8 @@ export const loginInfo = {
|
|||||||
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
|
bottomColumn: '哈尔滨盈达科技有限公司 联系电话:0451-87001273',
|
||||||
loginParam: 'HEB',
|
loginParam: 'HEB',
|
||||||
navigationLogoWidth: '120px',
|
navigationLogoWidth: '120px',
|
||||||
navigationMarginLeft: '140px'
|
navigationMarginLeft: '140px',
|
||||||
|
systemType: '019'
|
||||||
},
|
},
|
||||||
xadt: {
|
xadt: {
|
||||||
title: '城市轨道交通实训平台',
|
title: '城市轨道交通实训平台',
|
||||||
@ -93,7 +102,8 @@ export const loginInfo = {
|
|||||||
loginPath:'/login?project=xadt',
|
loginPath:'/login?project=xadt',
|
||||||
loginParam: 'XADT',
|
loginParam: 'XADT',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '012'
|
||||||
},
|
},
|
||||||
designxadt: {
|
designxadt: {
|
||||||
title: '城市轨道交通设计平台',
|
title: '城市轨道交通设计平台',
|
||||||
@ -104,7 +114,8 @@ export const loginInfo = {
|
|||||||
loginPath:'/design/login?project=xadt',
|
loginPath:'/design/login?project=xadt',
|
||||||
loginParam: 'XADT',
|
loginParam: 'XADT',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '012'
|
||||||
},
|
},
|
||||||
jsxt:{
|
jsxt:{
|
||||||
title: '城市轨道交通竞赛平台',
|
title: '城市轨道交通竞赛平台',
|
||||||
@ -112,7 +123,8 @@ export const loginInfo = {
|
|||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '015'
|
||||||
},
|
},
|
||||||
refereeJsxt:{
|
refereeJsxt:{
|
||||||
title: '城市轨道交通裁判平台',
|
title: '城市轨道交通裁判平台',
|
||||||
@ -120,7 +132,8 @@ export const loginInfo = {
|
|||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
titleDistance: '-150px',
|
titleDistance: '-150px',
|
||||||
navigationLogoWidth: '40px',
|
navigationLogoWidth: '40px',
|
||||||
navigationMarginLeft: '60px'
|
navigationMarginLeft: '60px',
|
||||||
|
systemType: '015'
|
||||||
},
|
},
|
||||||
jyd: {
|
jyd: {
|
||||||
title: '城市轨道交通实训平台',
|
title: '城市轨道交通实训平台',
|
||||||
@ -132,7 +145,8 @@ export const loginInfo = {
|
|||||||
bottomColumn: '',
|
bottomColumn: '',
|
||||||
bottomIcon: Bottom_Jyd,
|
bottomIcon: Bottom_Jyd,
|
||||||
linkIcon: Link_Jyd,
|
linkIcon: Link_Jyd,
|
||||||
loginParam: 'DEFAULT'
|
loginParam: 'DEFAULT',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
designjyd: {
|
designjyd: {
|
||||||
title: '城市轨道交通设计平台',
|
title: '城市轨道交通设计平台',
|
||||||
@ -144,7 +158,8 @@ export const loginInfo = {
|
|||||||
bottomColumn: '',
|
bottomColumn: '',
|
||||||
bottomIcon: Bottom_Jyd,
|
bottomIcon: Bottom_Jyd,
|
||||||
linkIcon: Link_Jyd,
|
linkIcon: Link_Jyd,
|
||||||
loginParam: 'DEFAULT'
|
loginParam: 'DEFAULT',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
tky: {
|
tky: {
|
||||||
title: '城市轨道交通实训平台',
|
title: '城市轨道交通实训平台',
|
||||||
@ -154,7 +169,8 @@ export const loginInfo = {
|
|||||||
bottomIcon: FaviconTky,
|
bottomIcon: FaviconTky,
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '75px',
|
navigationLogoWidth: '75px',
|
||||||
navigationMarginLeft: '90px'
|
navigationMarginLeft: '90px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
designtky: {
|
designtky: {
|
||||||
title: '城市轨道交通设计平台',
|
title: '城市轨道交通设计平台',
|
||||||
@ -164,7 +180,8 @@ export const loginInfo = {
|
|||||||
bottomColumn: '',
|
bottomColumn: '',
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '75px',
|
navigationLogoWidth: '75px',
|
||||||
navigationMarginLeft: '90px'
|
navigationMarginLeft: '90px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
bxkc: {
|
bxkc: {
|
||||||
title: '城市轨道交通实训平台',
|
title: '城市轨道交通实训平台',
|
||||||
@ -176,7 +193,8 @@ export const loginInfo = {
|
|||||||
linkIcon: Link_Bxkc,
|
linkIcon: Link_Bxkc,
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '160px',
|
navigationLogoWidth: '160px',
|
||||||
navigationMarginLeft: '175px'
|
navigationMarginLeft: '175px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
designbxkc: {
|
designbxkc: {
|
||||||
title: '城市轨道交通设计平台',
|
title: '城市轨道交通设计平台',
|
||||||
@ -188,7 +206,8 @@ export const loginInfo = {
|
|||||||
linkIcon: Link_Bxkc,
|
linkIcon: Link_Bxkc,
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '160px',
|
navigationLogoWidth: '160px',
|
||||||
navigationMarginLeft: '175px'
|
navigationMarginLeft: '175px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
crsc: {
|
crsc: {
|
||||||
title: '城市轨道交通实训平台',
|
title: '城市轨道交通实训平台',
|
||||||
@ -201,7 +220,8 @@ export const loginInfo = {
|
|||||||
titleIcon: Link_Crsc,
|
titleIcon: Link_Crsc,
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '100px',
|
navigationLogoWidth: '100px',
|
||||||
navigationMarginLeft: '125px'
|
navigationMarginLeft: '125px',
|
||||||
|
systemType: '011'
|
||||||
},
|
},
|
||||||
designcrsc: {
|
designcrsc: {
|
||||||
title: '城市轨道交通设计平台',
|
title: '城市轨道交通设计平台',
|
||||||
@ -214,7 +234,8 @@ export const loginInfo = {
|
|||||||
titleIcon: Link_Crsc,
|
titleIcon: Link_Crsc,
|
||||||
loginParam: 'DEFAULT',
|
loginParam: 'DEFAULT',
|
||||||
navigationLogoWidth: '100px',
|
navigationLogoWidth: '100px',
|
||||||
navigationMarginLeft: '125px'
|
navigationMarginLeft: '125px',
|
||||||
|
systemType: '011'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -249,15 +270,7 @@ export const ProjectCode = {
|
|||||||
heb: 'HEB',
|
heb: 'HEB',
|
||||||
designheb: 'HEB',
|
designheb: 'HEB',
|
||||||
xadt: 'XADT',
|
xadt: 'XADT',
|
||||||
designxadt: 'XADT',
|
designxadt: 'XADT'
|
||||||
jyd: 'JYD',
|
|
||||||
designjyd: 'JYD',
|
|
||||||
tky: 'TKY',
|
|
||||||
designtky: 'TKY',
|
|
||||||
bxkc: 'BXKC',
|
|
||||||
designbxkc: 'BXKC',
|
|
||||||
crsc: 'CRSC',
|
|
||||||
designcrsc: 'CRSC'
|
|
||||||
};
|
};
|
||||||
export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc']; // 底部栏仅展示公司信息不展示备案号
|
export const BottomColumnOnlyConInfo = ['heb', 'designheb', 'jyd', 'designjyd', 'tky', 'designtky', 'bxkc', 'designbxkc', 'crsc', 'designcrsc']; // 底部栏仅展示公司信息不展示备案号
|
||||||
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb']; // 实训设计平台通过项目code获取地图列表的项目
|
export const GetMapListByProjectList = ['xty', 'designxty', 'gzb', 'designgzb', 'xadt', 'designxadt', 'heb', 'designheb']; // 实训设计平台通过项目code获取地图列表的项目
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { publicAsyncRoute, asyncRouter, constantRoutes, user, projectTrain, projectXian, projectXty, projectGzzb, projectJsxt, projectJyd, projectTky, projectHeb, superAdmin, admin, userTrainingPlatform, JSXT, projectRoute } from '@/router/index_APP_TARGET';
|
import { publicAsyncRoute, asyncRouter, constantRoutes, user, projectTrain, projectXian, projectXty, projectGzzb, projectJsxt, projectJyd, projectTky, projectHeb, superAdmin, admin, userTrainingPlatform, JSXT, projectRoute } from '@/router/index_APP_TARGET';
|
||||||
import { PermissionParam } from '@/scripts/ProjectConfig';
|
import { loginInfo } from '@/scripts/ProjectConfig';
|
||||||
import { getSessionStorage } from '@/utils/auth';
|
import { getSessionStorage } from '@/utils/auth';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -119,7 +119,7 @@ const permission = {
|
|||||||
if (roles.includes(admin) && !roles.includes(user)) { // 只拥有管理员 不拥有普通用户权限 则增加用户权限
|
if (roles.includes(admin) && !roles.includes(user)) { // 只拥有管理员 不拥有普通用户权限 则增加用户权限
|
||||||
roles.push(user);
|
roles.push(user);
|
||||||
}
|
}
|
||||||
const routeList = resetAsyncRouter(PermissionParam[getSessionStorage('project') || 'login']);
|
const routeList = resetAsyncRouter(loginInfo[getSessionStorage('project') || 'login']);
|
||||||
|
|
||||||
const accessedRouters = filterAsyncRouter(routeList, roles);
|
const accessedRouters = filterAsyncRouter(routeList, roles);
|
||||||
accessedRouters.forEach(route => {
|
accessedRouters.forEach(route => {
|
||||||
|
@ -175,7 +175,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async loadInitData() {
|
async loadInitData() {
|
||||||
this.trainingTypeList = [];
|
this.trainingTypeList = [];
|
||||||
|
|
||||||
this.mapIdList = [];
|
this.mapIdList = [];
|
||||||
getPublishMapListOnline().then(response => {
|
getPublishMapListOnline().then(response => {
|
||||||
this.mapIdList = response.data;
|
this.mapIdList = response.data;
|
||||||
@ -194,7 +193,8 @@ export default {
|
|||||||
Station: [],
|
Station: [],
|
||||||
ControlConvertMenu: [],
|
ControlConvertMenu: [],
|
||||||
TrainWindow: [],
|
TrainWindow: [],
|
||||||
LimitControl: []
|
LimitControl: [],
|
||||||
|
Driver: []
|
||||||
};
|
};
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
@ -217,12 +217,6 @@ export default {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.trainingOperateTypeMap = {};
|
this.trainingOperateTypeMap = {};
|
||||||
// this.$Dictionary.trainingType().then(list => {
|
|
||||||
// this.trainingTypeList = list;
|
|
||||||
// list.forEach(elem => {
|
|
||||||
// this.queryForm.queryObject.type.config.data.push({ value: elem.code, label: elem.name });
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
this.$Dictionary.stationControl().then(list => {
|
this.$Dictionary.stationControl().then(list => {
|
||||||
this.trainingOperateTypeMap['01'] = []; // 控制权实训
|
this.trainingOperateTypeMap['01'] = []; // 控制权实训
|
||||||
list.forEach(item => {
|
list.forEach(item => {
|
||||||
@ -293,9 +287,6 @@ export default {
|
|||||||
if (form && form.type) {
|
if (form && form.type) {
|
||||||
form.operateType = '';
|
form.operateType = '';
|
||||||
this.queryForm.queryObject.operateType.config.data = this.trainingOperateTypeMap[form.type];
|
this.queryForm.queryObject.operateType.config.data = this.trainingOperateTypeMap[form.type];
|
||||||
// this.trainingOperateTypeMap[form.type].forEach(elem => {
|
|
||||||
// this.queryForm.queryObject.operateType.config.data = ;
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addObj(index, row) {
|
addObj(index, row) {
|
||||||
|
@ -212,7 +212,8 @@ export default {
|
|||||||
Station: [],
|
Station: [],
|
||||||
ControlConvertMenu: [],
|
ControlConvertMenu: [],
|
||||||
LimitControl: [],
|
LimitControl: [],
|
||||||
TrainWindow: []
|
TrainWindow: [],
|
||||||
|
Driver: []
|
||||||
};
|
};
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- v-dialogDrag -->
|
<!-- v-dialogDrag -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-dialogLoading="dialogLoading"
|
v-dialogLoading="dialogLoading"
|
||||||
:title="title"
|
:title="title"
|
||||||
@ -269,7 +269,7 @@ export default {
|
|||||||
data[0].secondTime = data[0].second;
|
data[0].secondTime = data[0].second;
|
||||||
}
|
}
|
||||||
this.series = this.PlanConvert.updateDataToModels(data, stations, this.kmRangeCoordMap,
|
this.series = this.PlanConvert.updateDataToModels(data, stations, this.kmRangeCoordMap,
|
||||||
planData, this.series, { color: '#FF00DE', width: 0.5 }
|
planData, this.series, { color: '#FF00DE', width: 2 }
|
||||||
);
|
);
|
||||||
this.myChart && this.myChart.setOption({ series: this.series });
|
this.myChart && this.myChart.setOption({ series: this.series });
|
||||||
},
|
},
|
||||||
|
@ -331,6 +331,7 @@ export default {
|
|||||||
// 设置地图数据
|
// 设置地图数据
|
||||||
// 设置实训数据
|
// 设置实训数据
|
||||||
const resp = await getTrainingDetailNew(this.trainingId);
|
const resp = await getTrainingDetailNew(this.trainingId);
|
||||||
|
this.$store.dispatch('exam/setCenter', resp.data.locateDeviceCode);
|
||||||
if (resp && resp.code == 200) {
|
if (resp && resp.code == 200) {
|
||||||
const detail = resp.data;
|
const detail = resp.data;
|
||||||
await this.$store.dispatch('training/setPrdType', this.prdTypeMap[detail.prdType]);
|
await this.$store.dispatch('training/setPrdType', this.prdTypeMap[detail.prdType]);
|
||||||
|
@ -105,9 +105,6 @@ export default {
|
|||||||
isDesignPlatform() {
|
isDesignPlatform() {
|
||||||
return this.$route.fullPath.includes('design/display/demon');
|
return this.$route.fullPath.includes('design/display/demon');
|
||||||
},
|
},
|
||||||
isHebLine() {
|
|
||||||
return this.$route.query.lineCode === '07';
|
|
||||||
},
|
|
||||||
group() {
|
group() {
|
||||||
return this.$route.query.group;
|
return this.$route.query.group;
|
||||||
},
|
},
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
<div class="display-card" :style="{top: offset + 'px'}">
|
<div class="display-card" :style="{top: offset + 'px'}">
|
||||||
<el-row style="vertical-align:middle; ">
|
<el-row style="vertical-align:middle; ">
|
||||||
<span class="display-time">{{ formatUsedTime }}</span>
|
<span class="display-time">{{ formatUsedTime }}</span>
|
||||||
<el-select v-if="showSelectStation" v-model="showStation" style="width: 100px;position: fixed; right: 10px;" size="small" @change="switchStationMode">
|
<!--<el-select v-if="showSelectStation" v-model="showStation" style="width: 100px;position: fixed; right: 10px;" size="small" @change="switchStationMode">-->
|
||||||
<el-option v-for="item in stationList" :key="item.value" :label="item.name" :value="item.value" />
|
<!--<el-option v-for="item in stationList" :key="item.value" :label="item.name" :value="item.value" />-->
|
||||||
</el-select>
|
<!--</el-select>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="display-draft" :style="{bottom: offsetBottom + 'px'}">
|
<div class="display-draft" :style="{bottom: offsetBottom + 'px'}">
|
||||||
|
@ -20,8 +20,7 @@ import ChatBox from './chatView/chatBox';
|
|||||||
import TipScriptRecordNew from '@/views/scriptManage/display/tipScriptRecordNew';
|
import TipScriptRecordNew from '@/views/scriptManage/display/tipScriptRecordNew';
|
||||||
import SetTime from './demon/setTime';
|
import SetTime from './demon/setTime';
|
||||||
import { Notification } from 'element-ui';
|
import { Notification } from 'element-ui';
|
||||||
import { ranAsPlan, exitRunPlan, clearSimulation } from '@/api/simulation';
|
import { ranAsPlan, exitRunPlan } from '@/api/simulation';
|
||||||
// import { timeFormat } from '@/utils/date';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -65,9 +64,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$store.state.training.subscribeCount': function () {
|
|
||||||
this.group && this.initLoadPage();
|
|
||||||
},
|
|
||||||
'$store.state.scriptRecord.bgSet':function (val) {
|
'$store.state.scriptRecord.bgSet':function (val) {
|
||||||
this.isScriptCommand = val;
|
this.isScriptCommand = val;
|
||||||
}
|
}
|
||||||
@ -82,13 +78,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initLoadPage() {
|
|
||||||
try {
|
|
||||||
await this.loadSystemTime();
|
|
||||||
} catch (error) {
|
|
||||||
console.log(error);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
initPlannedDriving(isDisable) {
|
initPlannedDriving(isDisable) {
|
||||||
this.isDisable = isDisable;
|
this.isDisable = isDisable;
|
||||||
},
|
},
|
||||||
@ -166,9 +155,6 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpjlmap3d() {
|
jumpjlmap3d() {
|
||||||
this.$emit('script3ddriveshow');
|
this.$emit('script3ddriveshow');
|
||||||
},
|
|
||||||
async loadSystemTime() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -80,7 +80,6 @@ import { mapGetters } from 'vuex';
|
|||||||
import { timeFormat } from '@/utils/date';
|
import { timeFormat } from '@/utils/date';
|
||||||
import { refreshExamList } from '@/api/management/userexam';
|
import { refreshExamList } from '@/api/management/userexam';
|
||||||
import { getTrainingDetailNew } from '@/api/jmap/training';
|
import { getTrainingDetailNew } from '@/api/jmap/training';
|
||||||
import { launchFullscreen } from '@/utils/screen';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TipExamList',
|
name: 'TipExamList',
|
||||||
@ -263,9 +262,8 @@ export default {
|
|||||||
mapId: this.$route.query.mapId,
|
mapId: this.$route.query.mapId,
|
||||||
lineCode: this.$route.query.lineCode
|
lineCode: this.$route.query.lineCode
|
||||||
};
|
};
|
||||||
this.$router.replace({ path: '/displayNew/exam', query: query });
|
this.$router.replace({query: query});
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
// launchFullscreen();
|
|
||||||
},
|
},
|
||||||
overExam() {
|
overExam() {
|
||||||
this.$store.dispatch('exam/isOver').then(isOver => {
|
this.$store.dispatch('exam/isOver').then(isOver => {
|
||||||
|
Loading…
Reference in New Issue
Block a user