设备登录调整
This commit is contained in:
parent
b3ce617230
commit
1076eb2215
@ -414,17 +414,17 @@ export default {
|
||||
if (this.$route.query.type == 'LSW') {
|
||||
console.log('进入', `/bigSplitScreen/${resp.data.map.id}`);
|
||||
this.$router.push({ path: `/bigSplitScreen/${resp.data.map.id}`, query: query });
|
||||
} else if (this.$route.query.type === 'ISCS_LW') {
|
||||
this.$router.push({ path: `/displayIscs/system`, query: query });
|
||||
} else if (this.$route.query.type === 'ISCS_LW' || this.$route.query.type === 'ISCS_CW') {
|
||||
this.$router.push({ path: `/displayIscs/system`, query: {
|
||||
group: res.data.group,
|
||||
projectDevice: this.$route.query.projectDevice,
|
||||
type: this.$route.query.type} });
|
||||
} else if (this.$route.query.type == 'CCTV') {
|
||||
this.$router.push({ path: `/jlmap3d/passengerflow`, query:{
|
||||
mapid:resp.data.map.id,
|
||||
group:res.data.group,
|
||||
project: getSessionStorage('project')
|
||||
} });
|
||||
} else if (this.$route.query.type == 'VR_PSD') {
|
||||
// 待添加
|
||||
// this.$router.push({ path: `/bigSplitScreen/${resp.data.map.id}`, query: query });
|
||||
} else {
|
||||
this.$router.push({ path: `/jointTrainingNew`, query: query });
|
||||
}
|
||||
|
@ -47,6 +47,12 @@
|
||||
<js-question v-if="project==='jsxt'" :offset="offset" :question-list="questionList" />
|
||||
<members-manage ref="membersManage" :is-admin="isAdmin" @addSimulationMember="addSimulationMember" />
|
||||
<add-member ref="addMember" />
|
||||
<Jl3d-Device
|
||||
v-if="deviceShow"
|
||||
ref="Jl3dDevice"
|
||||
:panel-show="deviceShow"
|
||||
@closedevice3dview="devicemodel"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -69,8 +75,9 @@ import { checkLoginLine } from '@/api/login';
|
||||
import { loadNewMapDataByGroup } from '@/utils/loaddata';
|
||||
import { clearSimulation, getSimulationInfoNew, getSimulationUserInfo, getSimulationMemberList, getAllSimulationUser } from '@/api/simulation';
|
||||
import {getRaceUserById, getTestPaperDatail} from '@/api/competition';
|
||||
import { getSessionStorage, getToken } from '@/utils/auth';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import Jl3dDrive from '@/views/jlmap3d/drive/jl3ddrive';
|
||||
import Jl3dDevice from '@/views/jlmap3d/device/jl3ddevice';
|
||||
import Jl3dMaintainer from '@/views/jlmap3d/maintainer/jl3dmaintainer';
|
||||
import { EventBus } from '@/scripts/event-bus';
|
||||
import { timeFormat } from '@/utils/date';
|
||||
@ -79,7 +86,6 @@ import Vue from 'vue';
|
||||
import localStore from 'storejs';
|
||||
import MembersManage from './memberManage/membersManage';
|
||||
import AddMember from './memberManage/addMember';
|
||||
import { getLoginInfo } from '@/api/login';
|
||||
|
||||
export default {
|
||||
name: 'JointTrainingDraft',
|
||||
@ -97,7 +103,8 @@ export default {
|
||||
IbpPlate,
|
||||
JsQuestion,
|
||||
MembersManage,
|
||||
AddMember
|
||||
AddMember,
|
||||
Jl3dDevice
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -131,7 +138,8 @@ export default {
|
||||
questionList: [],
|
||||
practicalExamTime: 0,
|
||||
isAdmin: false,
|
||||
adminMode: true
|
||||
adminMode: true,
|
||||
deviceShow: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -195,6 +203,9 @@ export default {
|
||||
this.mapViewLoadedOver = true;
|
||||
this.showSelectStation && this.setShowStation(this.showStation);
|
||||
this.initMemberUserInfo();
|
||||
if (this.$route.query.type === 'VR_PSD') {
|
||||
this.deviceShow = true;
|
||||
}
|
||||
},
|
||||
'$store.state.socket.memberChangeCount': function () {
|
||||
this.initMemberUserInfo();
|
||||
@ -365,6 +376,13 @@ export default {
|
||||
this.$messageBox('获取所有仿真用户失败!');
|
||||
});
|
||||
},
|
||||
devicemodel() {
|
||||
if (this.deviceShow == false) {
|
||||
this.deviceShow = true;
|
||||
} else {
|
||||
this.deviceShow = false;
|
||||
}
|
||||
},
|
||||
async loadSimulationInfo() {
|
||||
const resp = await getSimulationInfoNew(this.group);
|
||||
if (resp && resp.code == 200 && resp.data && !resp.data.dataError) {
|
||||
|
Loading…
Reference in New Issue
Block a user