This commit is contained in:
joylink_cuiweidong 2020-05-09 20:21:43 +08:00
commit 5b0d16c920
15 changed files with 72 additions and 20 deletions

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -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] = {

View File

@ -430,6 +430,13 @@ export const asyncRouter = [
} }
] ]
}, },
{
path: '/displayBigScreen/:mapId',
component: BigScreen,
meta: {
},
hidden: true
},
{ // 综合演练室 { // 综合演练室
path: '/trainroom', path: '/trainroom',
component: TrainRoom, component: TrainRoom,

View File

@ -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'; // 张赛

View File

@ -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();

View File

@ -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(() => {
if (this.widthLeft) {
const width = this.$store.state.app.width - (this.widthLeft || 450) - 2; const width = this.$store.state.app.width - (this.widthLeft || 450) - 2;
const height = this.height; const height = this.height;
this.$store.dispatch('config/resize', { width, 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() {
if (this.widthLeft) {
const size = { const size = {
width: this.$store.state.app.width - (this.widthLeft || 450) - 2, width: this.$store.state.app.width - (this.widthLeft || 450) - 2,
height: this.height, height: this.height,
num: 3 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);
}
} }
} }
}; };

View File

@ -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); }});
} }
}, },
// //

View File

@ -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() {

View File

@ -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',