大铁项目 车务管理终端 出入口发布生效区 代码调整
This commit is contained in:
parent
b69e2b77c5
commit
2e7a2cab70
@ -796,6 +796,11 @@ export const menuOperate = {
|
||||
operation: OperationEvent.CTCCommand.getTrainFixedPath.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_REGULAR_TRAIN_LINE_LIST
|
||||
},
|
||||
// 出入口发布生效区
|
||||
releaseStationDirection:{
|
||||
operation: OperationEvent.CTCCommand.releaseStationDirection.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_STATION_IO_GATE_PUBLISH
|
||||
},
|
||||
setRoute: {
|
||||
operation: OperationEvent.CTCCommand.setRoute.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_SET_ROUTE
|
||||
|
@ -452,6 +452,7 @@ export default {
|
||||
CTC_STATION_DETAIL_LIST:{value: 'STATION_DETAIL_LIST', label: ' 获取股道列表'},
|
||||
CTC_REGULAR_TRAIN_LINE_LIST:{value: 'REGULAR_TRAIN_LINE_LIST', label: ' 获取固定列车径路'},
|
||||
CTC_STATION_DETAIL_EDIT:{value: 'STATION_DETAIL_EDIT', label: '修改股道信息'},
|
||||
CTC_STATION_IO_GATE_PUBLISH:{value: 'STATION_IO_GATE_PUBLISH', label: '出入口发布生效区'},
|
||||
|
||||
CTC_SET_ROUTE:{value: 'CTC_SET_ROUTE', label: 'CTC办理进路'},
|
||||
|
||||
|
@ -3993,6 +3993,13 @@ export const OperationEvent = {
|
||||
operation: '1154',
|
||||
domId: '_Tips-CTC-modifyStationTrack-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 出入口发布生效区
|
||||
releaseStationDirection:{
|
||||
menu: {
|
||||
operation: '1155',
|
||||
domId: '_Tips-CTC-releaseStationDirection-Menu{TOP}'
|
||||
}
|
||||
}
|
||||
// CTC_ZONE_SAVE_TRIP_NUMBER
|
||||
// CTC_ZONE_SAVE_STATION
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="BTRpMenuBarOut">
|
||||
<div class="BTRpMenuBar">
|
||||
<div class="eachBTRpMenuBar" @click="addTab('StationTrack')">车站股道</div>
|
||||
<div class="eachBTRpMenuBar">车站出入口</div>
|
||||
<div class="eachBTRpMenuBar" @click="addTab('StationDirection')">车站出入口</div>
|
||||
<div class="eachBTRpMenuBar" @click="addTab('TrainFixedPath')">列车固定路径</div>
|
||||
<div class="eachBTRpMenuBar">车站用户管理</div>
|
||||
<div class="eachBTRpMenuBar">备份区名称</div>
|
||||
@ -37,6 +37,7 @@
|
||||
import { getToken } from '@/utils/auth';
|
||||
import StationTrack from './stationTrack';
|
||||
import TrainFixedPath from './trainFixedPath';
|
||||
import StationDirection from './stationDirection';
|
||||
import { loadMapDataById } from '@/utils/loaddata';
|
||||
import { creatSubscribe, clearSubscribe, getTopic, displayTopic } from '@/utils/stomp';
|
||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||
@ -97,7 +98,7 @@ export default {
|
||||
this.currentTabs = tabs.filter(tab => tab.name !== targetName);
|
||||
},
|
||||
addTab(name) {
|
||||
const nameMap = {'StationTrack':{title:'车站股道', component:StationTrack }, 'TrainFixedPath':{title:'列车固定路径', component:TrainFixedPath}};
|
||||
const nameMap = {'StationTrack':{title:'车站股道', component:StationTrack }, 'TrainFixedPath':{title:'列车固定路径', component:TrainFixedPath}, 'StationDirection':{title:'出入口', component:StationDirection}};
|
||||
const findTab = this.currentTabs.find(tab=>{
|
||||
return tab.name == name;
|
||||
});
|
||||
|
110
src/views/bigTrainRunplanManage/stationDirection.vue
Normal file
110
src/views/bigTrainRunplanManage/stationDirection.vue
Normal file
@ -0,0 +1,110 @@
|
||||
<template>
|
||||
<div class="stationDirection" :style="{ height: height+'px' }">
|
||||
<!-- {{ '车站股道' }} -->
|
||||
<div class="stationDirectionL">
|
||||
<terminal-station-list ref="terminalStationList" :currentid="'getStationDirection'" @loadStationData="loadStationData" />
|
||||
</div>
|
||||
<div class="stationDirectionR">
|
||||
<div class="stationDirectionRMenu">
|
||||
<div class="stationDirectionRMenuL">
|
||||
<!-- :id="domIdConfirm" :loading="loading" @click="commit"-->
|
||||
<el-button class="stationDirectionButton" size="small" @click="modifyDirection">修改</el-button>
|
||||
</div>
|
||||
<div class="stationDirectionRMenuR">
|
||||
<span class="stationDirectionRVer">版本号</span>
|
||||
<el-button class="stationDirectionButton" size="small">备份</el-button>
|
||||
<el-button class="stationDirectionButton" size="small" @click="releaseStationDirection">更新至生效区</el-button>
|
||||
<el-button class="stationDirectionButton" size="small">导入</el-button>
|
||||
<el-button class="stationDirectionButton" size="small">比较</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stationDirectionRTable" :style="{ height: (height-40)+'px' }">
|
||||
{{ '' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||
import TerminalStationList from './terminalStationList';
|
||||
export default {
|
||||
name:'StationDirection',
|
||||
components: {
|
||||
TerminalStationList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
height: this.$store.state.app.height - 61,
|
||||
currentStationCode:'',
|
||||
currentRow:null
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
loadStation() {
|
||||
this.$refs.terminalStationList.loadStation();
|
||||
},
|
||||
loadStationData(stationCode) {
|
||||
this.currentStationCode = stationCode;
|
||||
this.handleData(stationCode);
|
||||
},
|
||||
handleData(stationCode) {
|
||||
|
||||
},
|
||||
modifySection() {
|
||||
if (this.currentRow) {
|
||||
}
|
||||
},
|
||||
// 出入口发布生效区
|
||||
releaseStationDirection() {
|
||||
const that = this;
|
||||
commitOperate(menuOperate.CTC.releaseStationDirection, { stationCode:this.currentStationCode}, 3).then(({valid})=>{
|
||||
if (valid) {
|
||||
that.$message.success('发布成功!');
|
||||
}
|
||||
}).catch(() => {
|
||||
that.$message.error('发布失败');
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.stationDirection{
|
||||
padding-left:200px;
|
||||
}
|
||||
.stationDirectionL{
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
border-right: 1px #797979 solid;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.stationDirectionR{
|
||||
padding:0px 5px 0px 5px;
|
||||
height: 100%;
|
||||
background: #d8d8d8;
|
||||
}
|
||||
|
||||
.stationDirectionRMenu{
|
||||
background:#eeeeee;
|
||||
display: inline-block;
|
||||
width:100%;
|
||||
padding:5px;
|
||||
border-left: 1px #707070 solid;
|
||||
}
|
||||
.stationDirectionRMenuL{display: inline-block;}
|
||||
.stationDirectionRMenuR{float:right;display: inline-block;}
|
||||
.stationDirectionRTable{background:#a9a9a9;border-left: 1px #707070 solid;}
|
||||
.stationDirectionRVer{
|
||||
font-size: 14px;
|
||||
margin-right: 10px;
|
||||
color: #87a7c9;
|
||||
}
|
||||
.stationDirectionButton{
|
||||
background-image: linear-gradient(#ffffff,#d8d8d8);
|
||||
color: #000;
|
||||
padding: 5px 10px;
|
||||
border: 1px #737373 solid;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user