2021-05-19 16:46:07 +08:00
|
|
|
<template>
|
|
|
|
<el-dialog
|
|
|
|
class="haerbin-01__systerm"
|
|
|
|
:modal="false"
|
|
|
|
:title="title"
|
|
|
|
:visible.sync="show"
|
|
|
|
:fullscreen="true"
|
|
|
|
:before-close="doClose"
|
|
|
|
:z-index="2000"
|
|
|
|
>
|
|
|
|
<div class="trainOverView">
|
2021-05-19 18:11:32 +08:00
|
|
|
<div v-if="trainViewList.length>0" class="trainViewList">
|
2021-05-19 16:46:07 +08:00
|
|
|
<div v-for="(eachTrainView,index) in trainViewList" :key="index" class="eachTrainView">
|
|
|
|
<div class="eachTrainViewIn">
|
|
|
|
<div class="eachTrainViewInRhom" />
|
2021-05-19 18:11:32 +08:00
|
|
|
<div class="eachTrainTrunkS">{{ 'W'+eachTrainView+'0' }}</div>
|
2021-05-20 15:05:57 +08:00
|
|
|
<div class="eachTrainTrunkD" @click="toTrainTrunkDetail(index)">
|
2021-05-20 09:20:31 +08:00
|
|
|
<img :src="trainTrunkDown" class="trainTrunkDown">
|
|
|
|
</div>
|
2021-05-19 18:11:32 +08:00
|
|
|
<div class="eachTrainTrunkE">{{ 'W'+eachTrainView+'6' }}</div>
|
2021-05-19 16:46:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-18 17:38:40 +08:00
|
|
|
<!--<train-trunk-detail ref="trainTrunkDetail" :train-view-list="trainViewList" />-->
|
2021-05-19 16:46:07 +08:00
|
|
|
</el-dialog>
|
|
|
|
</template>
|
|
|
|
<script>
|
2021-05-20 09:20:31 +08:00
|
|
|
import trainTrunkDown from '@/assets/baSiDi/up.png';
|
2021-10-18 17:38:40 +08:00
|
|
|
// import TrainTrunkDetail from '../../../jmapNew/theme/nanjing_02/menus/dialog/trainTrunkDetail.vue';
|
2021-05-19 16:46:07 +08:00
|
|
|
export default {
|
|
|
|
name:'Tra',
|
2021-05-20 15:05:57 +08:00
|
|
|
components:{
|
2021-10-18 17:38:40 +08:00
|
|
|
// TrainTrunkDetail
|
2021-05-20 15:05:57 +08:00
|
|
|
},
|
2021-05-19 16:46:07 +08:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
dialogShow: false,
|
2021-05-20 09:20:31 +08:00
|
|
|
trainViewList:[],
|
|
|
|
trainTrunkDown:trainTrunkDown
|
2021-05-19 16:46:07 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
show() {
|
|
|
|
return this.dialogShow && !this.$store.state.menuOperation.break;
|
|
|
|
},
|
|
|
|
title() {
|
|
|
|
return '列车总览';
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch:{
|
|
|
|
'$store.state.map.activeTrainListChange': function (val) {
|
|
|
|
if (val) {
|
|
|
|
this.activeTrainList = this.$store.state.map.activeTrainList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
doShow() {
|
|
|
|
this.dialogShow = true;
|
|
|
|
this.$nextTick(function () {
|
|
|
|
this.trainViewList = this.$store.state.map.activeTrainList;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
doClose() {
|
|
|
|
this.dialogShow = false;
|
|
|
|
this.$store.dispatch('training/emitTipFresh');
|
2021-05-20 15:05:57 +08:00
|
|
|
},
|
|
|
|
toTrainTrunkDetail(index) {
|
2021-10-18 17:38:40 +08:00
|
|
|
// this.$refs.trainTrunkDetail.doShow(index);
|
|
|
|
this.$emit('openTrainTrunkDetail', index);
|
|
|
|
this.doClose();
|
2021-05-19 16:46:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
/deep/ .el-dialog {
|
|
|
|
background: rgba(100, 100, 100, 1) !important;
|
|
|
|
position: relative;
|
2021-05-28 11:00:26 +08:00
|
|
|
border: 2px solid rgba(144, 144, 144, 0.8);
|
2021-05-19 16:46:07 +08:00
|
|
|
border-radius: 6px;
|
|
|
|
font-size: 14px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
/deep/ .el-dialog .el-dialog__body{
|
|
|
|
background: rgba(100, 100, 100, 1) !important;
|
|
|
|
border: 0 !important;
|
|
|
|
height: 100%;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
.trainOverView{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: #000;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.trainViewList{
|
|
|
|
width: 1226px;
|
|
|
|
border-left: 1px #f0f0f0 solid;
|
|
|
|
border-top: 1px #f0f0f0 solid;
|
|
|
|
margin-top: 30px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
.eachTrainView{
|
|
|
|
width: 245px;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 10px 10px;
|
|
|
|
border-bottom: 1px #f0f0f0 solid;
|
|
|
|
border-right: 1px #f0f0f0 solid;
|
|
|
|
}
|
|
|
|
.eachTrainViewIn{
|
|
|
|
height: 60px;
|
|
|
|
border-bottom: 1px #484848 solid;
|
2021-05-19 18:11:32 +08:00
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
2021-05-19 16:46:07 +08:00
|
|
|
}
|
2021-05-19 18:11:32 +08:00
|
|
|
.eachTrainViewInRhom{
|
2021-05-19 16:46:07 +08:00
|
|
|
width: 224px;
|
|
|
|
height: 60px;
|
2021-05-19 18:11:32 +08:00
|
|
|
border-left: 1px #828282 solid;
|
|
|
|
transform: skew(-30deg, 0deg);
|
|
|
|
-webkit-transform-origin: bottom center;
|
2021-05-19 16:46:07 +08:00
|
|
|
transform-origin: bottom center;
|
2021-05-19 18:11:32 +08:00
|
|
|
border-bottom: 1px #828282 solid;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.eachTrainViewInRhom:before{
|
|
|
|
content: '';
|
|
|
|
transform: skew(50deg, 0deg);
|
|
|
|
transform-origin: bottom center;
|
|
|
|
position:absolute;
|
|
|
|
width:100%;
|
|
|
|
height: 100%;
|
|
|
|
border-top: 1px #828282 solid;
|
|
|
|
border-right: 1px #828282 solid;
|
|
|
|
}
|
|
|
|
.eachTrainTrunkS{
|
|
|
|
position: absolute;
|
|
|
|
font-size: 18px;
|
|
|
|
color: #5E5E5E;
|
|
|
|
left: 30px;
|
|
|
|
top: 20px;
|
|
|
|
}
|
|
|
|
.eachTrainTrunkD{
|
2021-05-20 09:20:31 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 99px;
|
|
|
|
top: 16px;
|
2021-05-20 15:05:57 +08:00
|
|
|
cursor: pointer;
|
2021-05-20 09:20:31 +08:00
|
|
|
}
|
|
|
|
.trainTrunkDown{
|
|
|
|
width: 25px;
|
|
|
|
transform-origin: center center;
|
|
|
|
transform: rotate(180deg);
|
2021-05-19 18:11:32 +08:00
|
|
|
}
|
|
|
|
.eachTrainTrunkE{
|
|
|
|
position: absolute;
|
|
|
|
font-size: 18px;
|
|
|
|
color: #5E5E5E;
|
|
|
|
right: 30px;
|
|
|
|
top: 20px;
|
2021-05-19 16:46:07 +08:00
|
|
|
}
|
|
|
|
</style>
|