2022-06-13 10:45:15 +08:00
|
|
|
<template>
|
2022-06-13 14:31:31 +08:00
|
|
|
<div class="stationTrack" :style="{ height: height+'px' }">
|
|
|
|
<!-- {{ '车站股道' }} -->
|
|
|
|
<div class="stationTrackL">
|
2022-08-18 16:10:22 +08:00
|
|
|
<terminal-station-list ref="terminalStationList" :currentid="'getStationTrack'" @loadStationData="loadStationData" />
|
2022-06-13 14:31:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="stationTrackR">
|
|
|
|
<div class="stationTrackRMenu">
|
|
|
|
<div class="stationTrackRMenuL">
|
|
|
|
<!-- :id="domIdConfirm" :loading="loading" @click="commit"-->
|
2022-06-21 11:33:11 +08:00
|
|
|
<el-button class="stationTrackButton" size="small" @click="modifySection">修改</el-button>
|
2022-06-13 14:31:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="stationTrackRMenuR">
|
|
|
|
<span class="stationTrackRVer">版本号</span>
|
|
|
|
<el-button class="stationTrackButton" size="small">备份</el-button>
|
2022-08-22 10:32:49 +08:00
|
|
|
<el-button class="stationTrackButton" size="small" @click="releaseStationTrack">更新至生效区</el-button>
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-button class="stationTrackButton" size="small">导入</el-button>
|
|
|
|
<el-button class="stationTrackButton" size="small">比较</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="stationTrackRTable" :style="{ height: (height-40)+'px' }">
|
|
|
|
<el-table
|
|
|
|
id="stationTrackTableIn"
|
|
|
|
ref="stationTrackTableIn"
|
|
|
|
:data="tableData"
|
|
|
|
border
|
|
|
|
height="600px"
|
|
|
|
highlight-current-row
|
|
|
|
style="border:1px #ccc solid;width:1103px"
|
2022-06-21 11:33:11 +08:00
|
|
|
@row-click="selectedSection"
|
|
|
|
@row-dblclick="rowDbClick"
|
2022-06-13 14:31:31 +08:00
|
|
|
>
|
|
|
|
<!-- @cell-click="selectedTripNumber" -->
|
|
|
|
<!-- @current-change="handleCurrentChange" -->
|
|
|
|
<el-table-column
|
|
|
|
type="index"
|
|
|
|
label="序号"
|
|
|
|
width="100"
|
|
|
|
/>
|
2022-08-22 10:32:49 +08:00
|
|
|
<!-- code: "T97"
|
|
|
|
military: false
|
|
|
|
motorCar: false
|
|
|
|
name: "IIIG"
|
|
|
|
sectionCode: "T97"
|
|
|
|
sewageAbsorption: false
|
|
|
|
waterSupply: false -->
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- trackSectionCode -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="code"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="股道名称"
|
|
|
|
width="100"
|
2022-08-18 11:04:57 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ filterSectionMap[scope.row.code]?filterSectionMap[scope.row.code].name:'' }}
|
2022-08-18 11:04:57 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- lineType -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="trackNature"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="线路性质"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ lineTypeMap[scope.row.trackNature] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-06-21 16:10:17 +08:00
|
|
|
prop="direction"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="接发车方向"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ directionMap[scope.row.direction] }}
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- type -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="trainType"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="接发车类型"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ typeMap[scope.row.trainType] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- transfiniteType -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="transfinite"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="超限类型"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ transfiniteTypeMap[scope.row.transfinite] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-06-21 16:10:17 +08:00
|
|
|
prop="standType"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="站台"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ standTypeMap[scope.row.standType] }}
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- allowEmu -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="motorCar"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="允许动车组"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ allowEmuMap[scope.row.motorCar] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- addWaterEqu -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="waterSupply"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="上水设备"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ addWaterEquMap[scope.row.waterSupply] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-08-18 16:10:22 +08:00
|
|
|
<!-- sewageEqu -->
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
2022-08-18 16:10:22 +08:00
|
|
|
prop="sewageAbsorption"
|
2022-06-13 14:31:31 +08:00
|
|
|
label="排污设备"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
2022-08-18 16:10:22 +08:00
|
|
|
{{ sewageEquMap[scope.row.sewageAbsorption] }}
|
2022-06-21 16:10:17 +08:00
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-06-13 14:31:31 +08:00
|
|
|
<el-table-column
|
|
|
|
prop="military"
|
|
|
|
label="军用"
|
|
|
|
width="100"
|
2022-06-21 16:10:17 +08:00
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ militaryMap[scope.row.military] }}
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
2022-06-13 14:31:31 +08:00
|
|
|
</el-table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-21 11:33:11 +08:00
|
|
|
<!-- -->
|
2022-08-23 16:24:11 +08:00
|
|
|
<track-information ref="trackInformation" @noticeInfo="noticeInfo" @refresh="handleData" />
|
2022-06-13 10:45:15 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
2022-06-21 11:33:11 +08:00
|
|
|
import { mapGetters } from 'vuex';
|
2022-06-13 17:20:03 +08:00
|
|
|
import TerminalStationList from './terminalStationList';
|
2022-06-21 11:33:11 +08:00
|
|
|
import TrackInformation from './trackInformation';
|
2022-08-18 16:10:22 +08:00
|
|
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
2022-06-13 10:45:15 +08:00
|
|
|
export default {
|
2022-06-13 14:31:31 +08:00
|
|
|
name:'StationTrack',
|
2022-06-13 17:20:03 +08:00
|
|
|
components: {
|
2022-06-21 11:33:11 +08:00
|
|
|
TerminalStationList,
|
|
|
|
TrackInformation
|
2022-06-13 17:20:03 +08:00
|
|
|
},
|
2022-06-13 10:45:15 +08:00
|
|
|
data() {
|
|
|
|
return {
|
2022-06-13 14:31:31 +08:00
|
|
|
height: this.$store.state.app.height - 61,
|
2022-06-21 11:33:11 +08:00
|
|
|
currentStationCode:'',
|
|
|
|
filterSectionMap:{},
|
2022-06-23 16:48:16 +08:00
|
|
|
currentRow:null,
|
2022-06-21 16:10:17 +08:00
|
|
|
lineTypeMap:{
|
2022-08-22 13:40:29 +08:00
|
|
|
'RIGHT_TRACK':'正线',
|
|
|
|
'ARRIVE_DEPART_TRACK':'到发线'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
directionMap:{
|
2022-08-22 13:40:29 +08:00
|
|
|
'S':'上行',
|
|
|
|
'X':'下行',
|
|
|
|
'D':'上下行'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
typeMap:{
|
2022-08-22 13:40:29 +08:00
|
|
|
'VAN':'客车',
|
|
|
|
'GOODS_VAN':'货车',
|
|
|
|
'PASSENGER':'客货车'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
transfiniteTypeMap:{
|
2022-08-22 13:40:29 +08:00
|
|
|
'NO':'不能接发超限列车',
|
|
|
|
'TRANSFINITE_ONE_LEVEL':'一级超限',
|
|
|
|
'TRANSFINITE_TWO_LEVEL':'二级超限',
|
|
|
|
'TRANSFINITE_SUPER':'超级超限'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
standTypeMap:{
|
2022-08-22 13:40:29 +08:00
|
|
|
'NO':'无',
|
|
|
|
'LOW':'高站台',
|
|
|
|
'HIGH':'低站台'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
allowEmuMap:{
|
2022-08-22 10:32:49 +08:00
|
|
|
true:'是',
|
|
|
|
false:'否'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
addWaterEquMap:{
|
2022-08-22 10:32:49 +08:00
|
|
|
true:'有',
|
|
|
|
false:'无'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
sewageEquMap:{
|
2022-08-22 10:32:49 +08:00
|
|
|
true:'有',
|
|
|
|
false:'无'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
|
|
|
militaryMap:{
|
2022-08-22 10:32:49 +08:00
|
|
|
true:'是',
|
|
|
|
false:'否'
|
2022-06-21 16:10:17 +08:00
|
|
|
},
|
2022-06-13 14:31:31 +08:00
|
|
|
tableData:[
|
|
|
|
]
|
2022-06-13 10:45:15 +08:00
|
|
|
};
|
2022-06-14 14:39:07 +08:00
|
|
|
},
|
2022-06-21 11:33:11 +08:00
|
|
|
computed:{
|
|
|
|
...mapGetters('map', [
|
|
|
|
'sectionList'
|
|
|
|
])
|
|
|
|
},
|
2022-06-14 14:39:07 +08:00
|
|
|
methods:{
|
|
|
|
loadStation() {
|
|
|
|
this.$refs.terminalStationList.loadStation();
|
|
|
|
},
|
|
|
|
loadStationData(stationCode) {
|
2022-06-21 11:33:11 +08:00
|
|
|
this.currentStationCode = stationCode;
|
|
|
|
this.filterSectionMap = {};
|
|
|
|
this.sectionList.forEach(section=>{
|
|
|
|
if (section.standTrack && section.belongStation == this.currentStationCode) {
|
|
|
|
this.filterSectionMap[section.code] = {code:section.code, name:section.name};
|
|
|
|
}
|
|
|
|
});
|
2022-08-23 16:24:11 +08:00
|
|
|
this.handleData();
|
2022-06-21 11:33:11 +08:00
|
|
|
},
|
2022-08-23 16:24:11 +08:00
|
|
|
handleData() {
|
|
|
|
commitOperate(menuOperate.CTC.getStationTrack, { stationCode: this.currentStationCode }, 3).then(({valid, response}) => {
|
2022-08-18 16:10:22 +08:00
|
|
|
if (valid) {
|
|
|
|
this.tableData = response.data;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// getStationTrackTerminalStationTree
|
|
|
|
// this.tableData = [
|
|
|
|
// {trackSectionCode:'T97', lineType:'1', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
|
|
|
// sewageEqu:'1', military:'1'},
|
|
|
|
// {trackSectionCode:'T105', lineType:'2', direction:'1', type:'2', transfiniteType:'2', standType:'1', allowEmu:'2', addWaterEqu:'1',
|
|
|
|
// sewageEqu:'1', military:'1' }
|
|
|
|
// ];
|
2022-06-21 11:33:11 +08:00
|
|
|
},
|
|
|
|
rowDbClick(row, column, event) {
|
|
|
|
this.currentRow = row;
|
|
|
|
this.modifySection();
|
|
|
|
},
|
|
|
|
selectedSection(row, column, event) {
|
|
|
|
this.currentRow = row;
|
|
|
|
},
|
|
|
|
modifySection() {
|
|
|
|
if (this.currentRow) {
|
|
|
|
this.$refs.trackInformation.doShow({
|
|
|
|
row:this.currentRow,
|
2022-08-22 13:40:29 +08:00
|
|
|
filterSectionMap:this.filterSectionMap,
|
|
|
|
stationCode:this.currentStationCode
|
2022-06-21 11:33:11 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
noticeInfo() {
|
|
|
|
this.$emit('noticeInfo');
|
2022-08-22 10:32:49 +08:00
|
|
|
},
|
|
|
|
releaseStationTrack() {
|
|
|
|
const that = this;
|
|
|
|
commitOperate(menuOperate.CTC.releaseStationTrack, { stationCode:this.currentStationCode}, 3).then(({valid})=>{
|
|
|
|
if (valid) {
|
|
|
|
that.$message.success('发布成功!');
|
|
|
|
}
|
|
|
|
}).catch(() => {
|
|
|
|
that.$message.error('发布失败');
|
|
|
|
});
|
2022-06-14 14:39:07 +08:00
|
|
|
}
|
2022-06-13 10:45:15 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
2022-06-13 14:31:31 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
.stationTrack{
|
|
|
|
padding-left:200px;
|
|
|
|
}
|
|
|
|
.stationTrackL{
|
|
|
|
width: 200px;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
border-right: 1px #797979 solid;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
.stationTrackR{
|
|
|
|
padding:0px 5px 0px 5px;
|
|
|
|
height: 100%;
|
|
|
|
background: #d8d8d8;
|
|
|
|
}
|
|
|
|
.stationTrackRMenu{
|
|
|
|
background:#eeeeee;
|
|
|
|
display: inline-block;
|
|
|
|
width:100%;
|
|
|
|
padding:5px;
|
|
|
|
border-left: 1px #707070 solid;
|
|
|
|
}
|
|
|
|
.stationTrackRMenuL{display: inline-block;}
|
|
|
|
.stationTrackRMenuR{float:right;display: inline-block;}
|
|
|
|
.stationTrackRTable{background:#a9a9a9;border-left: 1px #707070 solid;}
|
|
|
|
.stationTrackRVer{
|
|
|
|
font-size: 14px;
|
|
|
|
margin-right: 10px;
|
|
|
|
color: #87a7c9;
|
|
|
|
}
|
|
|
|
.stationTrackButton{
|
|
|
|
background-image: linear-gradient(#ffffff,#d8d8d8);
|
|
|
|
color: #000;
|
2022-06-13 16:02:33 +08:00
|
|
|
padding: 5px 10px;
|
2022-06-13 14:31:31 +08:00
|
|
|
border: 1px #737373 solid;
|
|
|
|
}
|
2022-06-14 11:30:15 +08:00
|
|
|
.stationTrackButton:hover{
|
|
|
|
background-image: linear-gradient(#efffff,#a8daf3);
|
|
|
|
}
|
2022-06-13 14:31:31 +08:00
|
|
|
</style>
|
|
|
|
<style lang="scss">
|
|
|
|
#stationTrackTableIn.el-table td, #stationTrackTableIn.el-table th{
|
|
|
|
padding-top: 5px;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
border-color: #a5a5a5;
|
|
|
|
}
|
2022-06-21 11:33:11 +08:00
|
|
|
// .el-table__body tr.current-row>td
|
|
|
|
// .el-table__body tr.current-row>td
|
|
|
|
// #runplanContentTable .el-table__body tr.current-row>td .el-input--mini .el-input__inner{
|
|
|
|
#stationTrackTableIn .el-table__body tr.current-row>td{
|
|
|
|
background-color: #6aa8ec;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2022-06-13 14:31:31 +08:00
|
|
|
</style>
|