现地工作站添加路票簿册
This commit is contained in:
parent
7595c36413
commit
2c6807debf
@ -13,6 +13,8 @@
|
|||||||
<template v-if="!dataError">
|
<template v-if="!dataError">
|
||||||
<el-button-group v-if="project !== 'bjd'">
|
<el-button-group v-if="project !== 'bjd'">
|
||||||
<el-button v-if="$route.query.lineCode === '16'&&!isCtc && project !== 'teaching'" size="small" @click="goCtc">车务终端</el-button>
|
<el-button v-if="$route.query.lineCode === '16'&&!isCtc && project !== 'teaching'" size="small" @click="goCtc">车务终端</el-button>
|
||||||
|
<el-button v-if="$route.query.lineCode ==='16'&&$store.state.training.prdType === '01'" size="small" @click="showTrainTicket">路票</el-button>
|
||||||
|
<el-button v-if="$route.query.lineCode === '16'&&$store.state.training.prdType ==='01'" size="small" @click="showRegisterBook">簿册</el-button>
|
||||||
<!-- <el-button v-if="$route.query.lineCode === '16'&&!isCtc" size="small" @click="goRpManage">管理终端</el-button> -->
|
<!-- <el-button v-if="$route.query.lineCode === '16'&&!isCtc" size="small" @click="goRpManage">管理终端</el-button> -->
|
||||||
<!-- <el-button v-if="$route.query.lineCode === '16'&&!isCtc" size="small" @click="goDsManage">调度台</el-button> -->
|
<!-- <el-button v-if="$route.query.lineCode === '16'&&!isCtc" size="small" @click="goDsManage">调度台</el-button> -->
|
||||||
<el-button v-if="isLocalStation && $route.query.lineCode!='08' && $route.query.lineCode!='16' && project !== 'teaching'" size="small" @click="goIbp">IBP盘</el-button>
|
<el-button v-if="isLocalStation && $route.query.lineCode!='08' && $route.query.lineCode!='16' && project !== 'teaching'" size="small" @click="goIbp">IBP盘</el-button>
|
||||||
@ -37,6 +39,8 @@
|
|||||||
<!-- 加载剧本列表弹窗 -->
|
<!-- 加载剧本列表弹窗 -->
|
||||||
<add-quest ref="addQuest" @selectQuest="selectQuest" />
|
<add-quest ref="addQuest" @selectQuest="selectQuest" />
|
||||||
<line-board ref="lineBoard" />
|
<line-board ref="lineBoard" />
|
||||||
|
<train-ticket ref="trainTicket" />
|
||||||
|
<register-book ref="registerBook" />
|
||||||
<!-- <run-plan-edit v-if="isScheduling && isDepot" ref="runPlanEdit" /> -->
|
<!-- <run-plan-edit v-if="isScheduling && isDepot" ref="runPlanEdit" /> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -56,6 +60,8 @@ import { getIbpInfoByStation } from '@/api/ibp';
|
|||||||
import { loadRunPlanData } from '@/utils/loaddata';
|
import { loadRunPlanData } from '@/utils/loaddata';
|
||||||
import { EventBus } from '@/scripts/event-bus';
|
import { EventBus } from '@/scripts/event-bus';
|
||||||
import { timesSpeedPlayback } from '@/api/rtSimulation';
|
import { timesSpeedPlayback } from '@/api/rtSimulation';
|
||||||
|
import TrainTicket from '../trainTicket/index';
|
||||||
|
import RegisterBook from '../registerBook/index';
|
||||||
|
|
||||||
// 右上角操作
|
// 右上角操作
|
||||||
export default {
|
export default {
|
||||||
@ -67,7 +73,9 @@ export default {
|
|||||||
AddQuest,
|
AddQuest,
|
||||||
// RunPlanEdit,
|
// RunPlanEdit,
|
||||||
SelectStation,
|
SelectStation,
|
||||||
LineBoard
|
LineBoard,
|
||||||
|
TrainTicket,
|
||||||
|
RegisterBook
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
offset: {
|
offset: {
|
||||||
@ -238,6 +246,22 @@ export default {
|
|||||||
});
|
});
|
||||||
window.open(routeData.href, '_blank');
|
window.open(routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
|
showTrainTicket() {
|
||||||
|
const stationSupervisorList = [];
|
||||||
|
for (const memberId in this.$store.state.training.memberData) {
|
||||||
|
const item = this.$store.state.training.memberData[memberId];
|
||||||
|
if (item.type === 'STATION_SUPERVISOR') {
|
||||||
|
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
|
||||||
|
const memberData = { labelName: '值班员-' + device.name + (item.name ? `-${item.name }` : ''), id:item.id, userId:item.userId };
|
||||||
|
stationSupervisorList.push(memberData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EventBus.$emit('trainTicketMember', stationSupervisorList);
|
||||||
|
this.$refs.trainTicket.doShow();
|
||||||
|
},
|
||||||
|
showRegisterBook() {
|
||||||
|
this.$refs.registerBook.doShow();
|
||||||
|
},
|
||||||
// goRpManage() {
|
// goRpManage() {
|
||||||
// const routeData = this.$router.resolve({
|
// const routeData = this.$router.resolve({
|
||||||
// path:'/bigTrainRunplanManage',
|
// path:'/bigTrainRunplanManage',
|
||||||
|
Loading…
Reference in New Issue
Block a user