大铁项目 调度台 代码调整
This commit is contained in:
parent
6384208d93
commit
73bf18ad86
137
src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue
Normal file
137
src/jmapNew/theme/datie_02/menus/dispatcherLoger.vue
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
<template>
|
||||||
|
<div v-show="isShow" class="dispatcherLoger">
|
||||||
|
<div class="dispatcherLogerButton">
|
||||||
|
<div class="dispatcherLogerLine" />
|
||||||
|
<div class="dispatcherLogerBtnGroup">
|
||||||
|
<div id="sendRunplan" class="dispatcherLogerClickBtn" @click="sendRunplan">发送计划</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="runplanContent">
|
||||||
|
<el-table
|
||||||
|
id="runplanContentTable"
|
||||||
|
ref="runplanContentTable"
|
||||||
|
:data="tableData"
|
||||||
|
border
|
||||||
|
height="695"
|
||||||
|
highlight-current-row
|
||||||
|
style="width: 100%;border:1px #ccc solid"
|
||||||
|
>
|
||||||
|
<!-- @cell-click="selectedTripNumber" -->
|
||||||
|
<!-- @current-change="handleCurrentChange" -->
|
||||||
|
<el-table-column
|
||||||
|
prop="tripNumber"
|
||||||
|
label=""
|
||||||
|
width="100"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{ scope.row.tripNumber }} {{ scope.row.delete?'(删)':'' }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column width="155" prop="arriveSectionCode" label="到达股道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-select
|
||||||
|
v-model="tableData[scope.$index].arriveSectionCode"
|
||||||
|
placeholder=""
|
||||||
|
size="mini"
|
||||||
|
popper-class="stationSelect"
|
||||||
|
@change="changeArriveRunPlan($event,scope.row,scope.$index)"
|
||||||
|
>
|
||||||
|
<!-- @focus="focusArriveRunPlan($event,scope.row)" -->
|
||||||
|
<el-option
|
||||||
|
v-for="item in filterSectionList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<!-- <div v-if="scope.row.arriveSectionCode" class="accessName" :title="scope.row.departRunPlan.accessName">{{ scope.row.departRunPlan.accessName }}</div> -->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column width="155" prop="departSectionCode" label="发车股道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-select
|
||||||
|
v-model="tableData[scope.$index].departSectionCode"
|
||||||
|
placeholder=""
|
||||||
|
size="mini"
|
||||||
|
popper-class="stationSelect"
|
||||||
|
@change="changeArriveRunPlan($event,scope.row,scope.$index)"
|
||||||
|
>
|
||||||
|
<!-- @focus="focusArriveRunPlan($event,scope.row)" -->
|
||||||
|
<el-option
|
||||||
|
v-for="item in filterSectionList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<!-- <div v-if="scope.row.departSectionCode" class="accessName" :title="scope.row.departRunPlan.accessName">{{ scope.row.departRunPlan.accessName }}</div> -->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- arriveSectionCode // 到达股道
|
||||||
|
departSectionCode // 发车股道
|
||||||
|
arrivePlanTime // 到达计划时间
|
||||||
|
departPlanTime // 发车计划时间
|
||||||
|
arriveTripNumber // 到达车次
|
||||||
|
departTripNumber // 发车车次
|
||||||
|
arriveStationCode // 到达车站
|
||||||
|
departStationCode // 发车车站 -->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
|
import { copyAssign } from '@/utils/index';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
export default {
|
||||||
|
name:'DispatcherLoger',
|
||||||
|
components: {
|
||||||
|
NoticeInfo
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isShow:false,
|
||||||
|
filterSectionList:[],
|
||||||
|
tableData:[]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters('map', [
|
||||||
|
'sectionList'
|
||||||
|
])
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
loadData() {
|
||||||
|
},
|
||||||
|
doShow() {
|
||||||
|
this.filterSectionList = [];
|
||||||
|
this.filterSectionList = this.sectionList.filter(section=>{
|
||||||
|
return section.standTrack && section.belongStation == this.$store.state.training.roleDeviceCode;
|
||||||
|
});
|
||||||
|
this.tableData = [];
|
||||||
|
this.isShow = true;
|
||||||
|
},
|
||||||
|
changeArriveRunPlan(event, row, index) {
|
||||||
|
},
|
||||||
|
doClose() {
|
||||||
|
this.isShow = false;
|
||||||
|
this.rpMenuPopShow = false;
|
||||||
|
this.currentRow = null;
|
||||||
|
},
|
||||||
|
sendRunplan() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.dispatcherLoger{
|
||||||
|
z-index: 60;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
</style>
|
@ -37,6 +37,9 @@
|
|||||||
<div style="width: 60%;height: 30px;line-height: 30px;text-align: center;">提示信息窗</div>
|
<div style="width: 60%;height: 30px;line-height: 30px;text-align: center;">提示信息窗</div>
|
||||||
<div style="width: 40%;height: 30px;line-height: 30px;text-align: center;border-left: 2px #ccc solid;">{{ '操控A:主机' + ' ' + dateString + ' ' + time }}</div>
|
<div style="width: 40%;height: 30px;line-height: 30px;text-align: center;border-left: 2px #ccc solid;">{{ '操控A:主机' + ' ' + dateString + ' ' + time }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="!isCtc && isDispStation" class="goDispatcherLoger">
|
||||||
|
<el-button size="small" @click="goDispatcherLoger">行车日志</el-button>
|
||||||
|
</div>
|
||||||
<menu-button v-if="!isCtc" ref="menuButton" :selected="selected" />
|
<menu-button v-if="!isCtc" ref="menuButton" :selected="selected" />
|
||||||
<menu-button-ctc v-if="isCtc" ref="menuButtonCtc" :selected="selected" />
|
<menu-button-ctc v-if="isCtc" ref="menuButtonCtc" :selected="selected" />
|
||||||
<menu-station-stand ref="menuStationStand" :selected="selected" />
|
<menu-station-stand ref="menuStationStand" :selected="selected" />
|
||||||
@ -49,6 +52,7 @@
|
|||||||
<passive-contorl ref="passiveControl" pop-class="chengdou-03__systerm" />
|
<passive-contorl ref="passiveControl" pop-class="chengdou-03__systerm" />
|
||||||
<passive-Timeout ref="passiveTimeout" />
|
<passive-Timeout ref="passiveTimeout" />
|
||||||
<runplan-pane v-if="isCtc" ref="runplanPane" />
|
<runplan-pane v-if="isCtc" ref="runplanPane" />
|
||||||
|
<dispatcher-loger v-if="isDispStation" ref="dispatcherLoger" />
|
||||||
<bottom-table ref="bottomTable" />
|
<bottom-table ref="bottomTable" />
|
||||||
<menu-panel v-if="isCtc" ref="menuPanel" />
|
<menu-panel v-if="isCtc" ref="menuPanel" />
|
||||||
</div>
|
</div>
|
||||||
@ -66,6 +70,7 @@ import MenuStation from './menuStation';
|
|||||||
import MenuBar from './menuBar';
|
import MenuBar from './menuBar';
|
||||||
import MenuButtonCtc from './menuButtonCtc';
|
import MenuButtonCtc from './menuButtonCtc';
|
||||||
import RunplanPane from './runplanPane';
|
import RunplanPane from './runplanPane';
|
||||||
|
import DispatcherLoger from './dispatcherLoger';
|
||||||
import PassiveAlarm from './passiveDialog/alarm';
|
import PassiveAlarm from './passiveDialog/alarm';
|
||||||
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
|
import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control';
|
||||||
import PassiveTimeout from './passiveDialog/timeout';
|
import PassiveTimeout from './passiveDialog/timeout';
|
||||||
@ -108,6 +113,7 @@ export default {
|
|||||||
PassiveTimeout,
|
PassiveTimeout,
|
||||||
MenuButtonCtc,
|
MenuButtonCtc,
|
||||||
RunplanPane,
|
RunplanPane,
|
||||||
|
DispatcherLoger,
|
||||||
BottomTable,
|
BottomTable,
|
||||||
MenuPanel
|
MenuPanel
|
||||||
},
|
},
|
||||||
@ -171,6 +177,9 @@ export default {
|
|||||||
},
|
},
|
||||||
isCtc() {
|
isCtc() {
|
||||||
return this.$route.query.ctc;
|
return this.$route.query.ctc;
|
||||||
|
},
|
||||||
|
isDispStation() {
|
||||||
|
return this.$route.query.dispatcherStation;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -216,6 +225,9 @@ export default {
|
|||||||
},
|
},
|
||||||
handleRunplan() {
|
handleRunplan() {
|
||||||
this.$refs.runplanPane.doShow();
|
this.$refs.runplanPane.doShow();
|
||||||
|
},
|
||||||
|
goDispatcherLoger() {
|
||||||
|
this.$refs.dispatcherLoger.doShow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -745,4 +757,13 @@ export default {
|
|||||||
.img-box:hover{
|
.img-box:hover{
|
||||||
border: 2px #ccc inset;
|
border: 2px #ccc inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.goDispatcherLoger{
|
||||||
|
position: absolute;
|
||||||
|
width: 100px;
|
||||||
|
right: 350px;
|
||||||
|
top: 11px;
|
||||||
|
height: 38px;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<el-button type="danger" size="small" @click="end">{{ $t('display.demon.initialize') }}</el-button>
|
<el-button type="danger" size="small" @click="end">{{ $t('display.demon.initialize') }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<el-button v-if="project !='bjd'" type="primary" size="small" @click="back">{{ projectDevice || isCtc?'退出':$t('display.demon.back') }}</el-button>
|
<el-button v-if="project !='bjd'" type="primary" size="small" @click="back">{{ projectDevice || isCtc || isDispStation ?'退出':$t('display.demon.back') }}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -155,12 +155,15 @@ export default {
|
|||||||
isDisable() {
|
isDisable() {
|
||||||
return this.$store.state.training.started;
|
return this.$store.state.training.started;
|
||||||
},
|
},
|
||||||
isCtc() {
|
isCtc() {
|
||||||
return !!this.$route.query.ctc
|
return !!this.$route.query.ctc;
|
||||||
},
|
},
|
||||||
zIndex() {
|
isDispStation() {
|
||||||
return this.$route.query.ctc ? 11:0
|
return !!this.$route.query.dispatcherStation;
|
||||||
},
|
},
|
||||||
|
zIndex() {
|
||||||
|
return this.$route.query.ctc ? 11 : 0;
|
||||||
|
},
|
||||||
project() {
|
project() {
|
||||||
return getSessionStorage('project');
|
return getSessionStorage('project');
|
||||||
},
|
},
|
||||||
@ -405,7 +408,7 @@ export default {
|
|||||||
// || this.project === 'bjd'
|
// || this.project === 'bjd'
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (this.project === 'bjd' || this.isCtc) {
|
if (this.project === 'bjd' || this.isCtc || this.isDispStation) {
|
||||||
window.close();
|
window.close();
|
||||||
} else {
|
} else {
|
||||||
this.$store.dispatch('map/setShowCentralizedStationCode', '');
|
this.$store.dispatch('map/setShowCentralizedStationCode', '');
|
||||||
|
@ -12,8 +12,9 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<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" size="small" @click="goCtc">CTC</el-button>
|
<el-button v-if="$route.query.lineCode === '16'&&!isCtc &&!isDispStation" size="small" @click="goCtc">CTC</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 &&!isDispStation" size="small" @click="goDispatcherStation">调度台</el-button>
|
||||||
<el-button v-if="isLocalStation && $route.query.lineCode!='08' && $route.query.lineCode!='16'" size="small" @click="goIbp">IBP盘</el-button>
|
<el-button v-if="isLocalStation && $route.query.lineCode!='08' && $route.query.lineCode!='16'" size="small" @click="goIbp">IBP盘</el-button>
|
||||||
<el-button v-if="isScheduling && isDepot" size="small" type="primary" @click="runPlanEditShow">运行图编辑</el-button>
|
<el-button v-if="isScheduling && isDepot" size="small" type="primary" @click="runPlanEditShow">运行图编辑</el-button>
|
||||||
<!-- 加载剧本 -->
|
<!-- 加载剧本 -->
|
||||||
@ -102,6 +103,9 @@ export default {
|
|||||||
isCtc() {
|
isCtc() {
|
||||||
return !!this.$route.query.ctc;
|
return !!this.$route.query.ctc;
|
||||||
},
|
},
|
||||||
|
isDispStation() {
|
||||||
|
return !!this.$route.query.dispatcherStation;
|
||||||
|
},
|
||||||
isScript() {
|
isScript() {
|
||||||
return this.$route.params.mode === 'script';
|
return this.$route.params.mode === 'script';
|
||||||
},
|
},
|
||||||
@ -237,21 +241,42 @@ export default {
|
|||||||
});
|
});
|
||||||
window.open(routeData.href, '_blank');
|
window.open(routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
goRpManage() {
|
// goRpManage() {
|
||||||
|
// const routeData = this.$router.resolve({
|
||||||
|
// path:'/bigTrainRunplanManage',
|
||||||
|
// query:{
|
||||||
|
// group: this.$route.query.group,
|
||||||
|
// mapId:this.$route.query.mapId,
|
||||||
|
// project: this.project,
|
||||||
|
// prdType: this.$route.query.prdType,
|
||||||
|
// lineCode:this.$route.query.lineCode,
|
||||||
|
// // stationCode:this.$store.state.training.roleDeviceCode,
|
||||||
|
// // token:getToken(),
|
||||||
|
// noPreLogout: true
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// window.open(routeData.href, '_blank');
|
||||||
|
// },
|
||||||
|
goDispatcherStation() {
|
||||||
const routeData = this.$router.resolve({
|
const routeData = this.$router.resolve({
|
||||||
path:'/bigTrainRunplanManage',
|
// path:'/bigTrainDispatcherStation',
|
||||||
query:{
|
path:'/displayNew/demon',
|
||||||
group: this.$route.query.group,
|
query:{
|
||||||
mapId:this.$route.query.mapId,
|
group: this.$route.query.group,
|
||||||
project: this.project,
|
mapId:this.$route.query.mapId,
|
||||||
|
project: this.project,
|
||||||
prdType: this.$route.query.prdType,
|
prdType: this.$route.query.prdType,
|
||||||
lineCode:this.$route.query.lineCode,
|
lineCode:this.$route.query.lineCode,
|
||||||
|
newApi: this.$route.query.newApi,
|
||||||
|
dispatcherStation:true,
|
||||||
// stationCode:this.$store.state.training.roleDeviceCode,
|
// stationCode:this.$store.state.training.roleDeviceCode,
|
||||||
// token:getToken(),
|
// token:getToken(),
|
||||||
noPreLogout: true
|
try: this.$route.query.try,
|
||||||
}
|
token:getToken(),
|
||||||
});
|
noPreLogout: true
|
||||||
window.open(routeData.href, '_blank');
|
}
|
||||||
|
});
|
||||||
|
window.open(routeData.href, '_blank');
|
||||||
},
|
},
|
||||||
changeOperateMode() {
|
changeOperateMode() {
|
||||||
this.faultMode = !this.faultMode;
|
this.faultMode = !this.faultMode;
|
||||||
|
Loading…
Reference in New Issue
Block a user