Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
5b0d16c920
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -2,6 +2,7 @@ import deviceType from '../../constant/deviceType';
|
|||||||
|
|
||||||
class Model {
|
class Model {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
this.screenLine = 3;
|
||||||
// 公共字段部分默认初始值
|
// 公共字段部分默认初始值
|
||||||
this['public'] = {};
|
this['public'] = {};
|
||||||
this['public'][deviceType.Signal] = {
|
this['public'][deviceType.Signal] = {
|
||||||
|
@ -430,6 +430,13 @@ export const asyncRouter = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/displayBigScreen/:mapId',
|
||||||
|
component: BigScreen,
|
||||||
|
meta: {
|
||||||
|
},
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{ // 综合演练室
|
{ // 综合演练室
|
||||||
path: '/trainroom',
|
path: '/trainroom',
|
||||||
component: TrainRoom,
|
component: TrainRoom,
|
||||||
|
@ -2,9 +2,9 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
BASE_API = 'https://test.joylink.club/jlcloud';
|
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
|
@ -234,6 +234,9 @@ export default {
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async enterScreen() {
|
||||||
|
this.$router.push({ path: `/displayBigScreen/${this.courseModel.mapId}` });
|
||||||
|
},
|
||||||
async start() {
|
async start() {
|
||||||
if (this.courseModel.prdType == '05') {
|
if (this.courseModel.prdType == '05') {
|
||||||
this.jumpScheduling();
|
this.jumpScheduling();
|
||||||
@ -241,6 +244,8 @@ export default {
|
|||||||
this.createRoom();
|
this.createRoom();
|
||||||
} else if (this.courseModel.prdType == '06') {
|
} else if (this.courseModel.prdType == '06') {
|
||||||
this.enterISCS();
|
this.enterISCS();
|
||||||
|
} else if (this.courseModel.prdType == '07') {
|
||||||
|
this.enterScreen();
|
||||||
} else {
|
} else {
|
||||||
if (this.courseModel.pmsList && this.courseModel.pmsList.length) {
|
if (this.courseModel.pmsList && this.courseModel.pmsList.length) {
|
||||||
this.jump();
|
this.jump();
|
||||||
|
@ -17,7 +17,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
widthLeft: {
|
widthLeft: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true
|
default: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -99,18 +99,33 @@ export default {
|
|||||||
},
|
},
|
||||||
setWindowSize() {
|
setWindowSize() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const width = this.$store.state.app.width - (this.widthLeft || 450) - 2;
|
if (this.widthLeft) {
|
||||||
const height = this.height;
|
const width = this.$store.state.app.width - (this.widthLeft || 450) - 2;
|
||||||
this.$store.dispatch('config/resize', { width, height });
|
const height = this.height;
|
||||||
|
this.$store.dispatch('config/resize', { width, height });
|
||||||
|
} else {
|
||||||
|
const width = this.$store.state.app.width - 2;
|
||||||
|
const height = this.$store.state.app.height;
|
||||||
|
this.$store.dispatch('config/resize', { width, height });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleUpdateScreen() {
|
handleUpdateScreen() {
|
||||||
const size = {
|
if (this.widthLeft) {
|
||||||
width: this.$store.state.app.width - (this.widthLeft || 450) - 2,
|
const size = {
|
||||||
height: this.height,
|
width: this.$store.state.app.width - (this.widthLeft || 450) - 2,
|
||||||
num: 3
|
height: this.height,
|
||||||
};
|
num: this.$theme.loadPropConvert(this.$store.state.map.map.skinVO.code).screenLine
|
||||||
this.$jlmap.setUpdateScreen(size);
|
};
|
||||||
|
this.$jlmap.setUpdateScreen(size);
|
||||||
|
} else {
|
||||||
|
const size = {
|
||||||
|
width: this.$store.state.app.width - 2,
|
||||||
|
height: this.$store.state.app.height,
|
||||||
|
num: this.$theme.loadPropConvert(this.$store.state.map.map.skinVO.code).screenLine
|
||||||
|
};
|
||||||
|
this.$jlmap.setUpdateScreen(size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -156,7 +156,8 @@ export default {
|
|||||||
'02': '02', // 行调 => 行调
|
'02': '02', // 行调 => 行调
|
||||||
'04': '02', // 司机 => 行调
|
'04': '02', // 司机 => 行调
|
||||||
'05': '' // 派班 => null
|
'05': '' // 派班 => null
|
||||||
}
|
},
|
||||||
|
dataError: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -194,22 +195,22 @@ export default {
|
|||||||
return this.$route.query.skinCode;
|
return this.$route.query.skinCode;
|
||||||
},
|
},
|
||||||
isLesson() {
|
isLesson() {
|
||||||
return this.mode === 'teach' || this.mode === 'manage';
|
return (this.mode === 'teach' || this.mode === 'manage') && !this.dataError;
|
||||||
},
|
},
|
||||||
isShowLeftSlider() {
|
isShowLeftSlider() {
|
||||||
return (this.mode === 'teach' || this.mode === 'manage') && (this.$route.query.lessonId != '0');
|
return (this.mode === 'teach' || this.mode === 'manage') && (this.$route.query.lessonId != '0');
|
||||||
},
|
},
|
||||||
isExam() {
|
isExam() {
|
||||||
return this.mode === 'exam';
|
return this.mode === 'exam' && !this.dataError;
|
||||||
},
|
},
|
||||||
isDemon() {
|
isDemon() {
|
||||||
return this.mode === 'demon';
|
return this.mode === 'demon' && !this.dataError;
|
||||||
},
|
},
|
||||||
isScript() {
|
isScript() {
|
||||||
return this.mode === 'script';
|
return this.mode === 'script' && !this.dataError;
|
||||||
},
|
},
|
||||||
isScreen() {
|
isScreen() {
|
||||||
return this.model === 'dp';
|
return this.model === 'dp' && !this.dataError;
|
||||||
},
|
},
|
||||||
isDrive() {
|
isDrive() {
|
||||||
return this.prdType == '04';
|
return this.prdType == '04';
|
||||||
@ -381,8 +382,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 加载仿真信息
|
// 加载仿真信息
|
||||||
async loadSimulationInfo() {
|
async loadSimulationInfo() {
|
||||||
|
this.dataError = false;
|
||||||
const resp = await getSimulationInfoNew(this.group);
|
const resp = await getSimulationInfoNew(this.group);
|
||||||
if (resp && resp.code == 200) {
|
if (resp && resp.code == 200 && resp.data && !resp.data.dataError) {
|
||||||
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
|
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
|
||||||
this.questId = Number(resp.data.questId) || 0;
|
this.questId = Number(resp.data.questId) || 0;
|
||||||
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
|
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
|
||||||
@ -396,6 +398,9 @@ export default {
|
|||||||
} else if (this.isScript) {
|
} else if (this.isScript) {
|
||||||
this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
|
this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
|
||||||
}
|
}
|
||||||
|
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
|
||||||
|
this.dataError = true;
|
||||||
|
this.$alert('此地图数据正在维护中!', {confirmButtonText: '确定', callback: action => { this.$router.go(-1); }});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 加载地图数据
|
// 加载地图数据
|
||||||
|
@ -298,7 +298,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async loadSimulationInfo() {
|
async loadSimulationInfo() {
|
||||||
const resp = await getSimulationInfoNew(this.group);
|
const resp = await getSimulationInfoNew(this.group);
|
||||||
if (resp && resp.code == 200) {
|
if (resp && resp.code == 200 && resp.data && !resp.data.dataError) {
|
||||||
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
|
this.$store.dispatch('scriptRecord/updateSimulationPause', resp.data.pause);
|
||||||
this.questId = Number(resp.data.questId) || 0;
|
this.questId = Number(resp.data.questId) || 0;
|
||||||
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
|
this.$store.dispatch('training/setInitTime', +new Date(`${new Date().getFullYear()} ${timeFormat(resp.data.systemTime)}`));
|
||||||
@ -312,6 +312,9 @@ export default {
|
|||||||
} else if (this.isScript) {
|
} else if (this.isScript) {
|
||||||
this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
|
this.$refs.menuScript.initPlannedDriving(resp.data.planRunning);
|
||||||
}
|
}
|
||||||
|
} else if (resp && resp.code == 200 && resp.data && resp.data.dataError) {
|
||||||
|
this.dataError = true;
|
||||||
|
this.$alert('此地图数据正在维护中!', {confirmButtonText: '确定', callback: action => { this.$router.go(-1); }});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getUserRole() {
|
async getUserRole() {
|
||||||
|
@ -42,6 +42,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
simulationTypeList: [{label: '仿真', value: 'SIMULATION'}, {label: '课程', value: 'LESSON'}, {label: '考试', value: 'EXAM'}, {label: '剧本编制', value: 'SCRIPT_MAKING'}],
|
||||||
queryList: {
|
queryList: {
|
||||||
query: getExistingSimulation,
|
query: getExistingSimulation,
|
||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
@ -95,6 +96,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '类型',
|
||||||
|
prop: 'type',
|
||||||
|
type: 'tag',
|
||||||
|
columnValue: (row) => { return this.$convertField(row.type, this.simulationTypeList, ['value', 'label']); },
|
||||||
|
tagType: (row) => { return ''; }
|
||||||
|
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('system.prdType'),
|
title: this.$t('system.prdType'),
|
||||||
prop: 'prodType',
|
prop: 'prodType',
|
||||||
|
Loading…
Reference in New Issue
Block a user