Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
946d212bb9
@ -207,6 +207,26 @@ class SkinCode extends defaultStyle {
|
||||
}
|
||||
};
|
||||
|
||||
this[deviceType.StationTurnBack] = { // 站后折返
|
||||
displayCondition: '01', // 显示条件 (01所有模式下显示 02 行调显示 03现地显示)
|
||||
lamp: {
|
||||
fill: '#f1f1f1', // 填充色
|
||||
radiusR: 7 // 控制灯大小
|
||||
},
|
||||
text: {
|
||||
titleTextShow: true,
|
||||
fontWeight: 580,
|
||||
fontSize: 10,
|
||||
distance: 10
|
||||
},
|
||||
rect: {
|
||||
fill: 'rgba(0,0,0,0)',
|
||||
stroke: '#fff',
|
||||
lineWidth: 0,
|
||||
padding: 6
|
||||
}
|
||||
};
|
||||
|
||||
this[deviceType.AutoTurnBack] = {
|
||||
// 是否显示
|
||||
visibleConditions: '03',
|
||||
|
@ -253,12 +253,15 @@ class Signal extends Group {
|
||||
|
||||
if (isShowThePrdType(model.prdType, '03') && this.style.Signal.lowButton.display) {
|
||||
// 北京一号线现地 信号机点击按钮
|
||||
const lowButtonH = this.count * style.Signal.lamp.radiusR * 2;
|
||||
let lowButtonH = this.count * style.Signal.lamp.radiusR * 2;
|
||||
if (drict == 1) {
|
||||
lowButtonH = -(this.count * style.Signal.lamp.radiusR * 2 + style.Signal.lamp.radiusR * 2);
|
||||
}
|
||||
this.lowButton = new ELowButton({
|
||||
zlevel: this.zlevel,
|
||||
z: this.z,
|
||||
style: style,
|
||||
x: endPoint.x - 2 * (lowButtonH + 3) * drict - (drict + 1) / 2 * lowButtonH,
|
||||
x: endPoint.x + lowButtonH,
|
||||
y: endPoint.y - style.Signal.lamp.radiusR
|
||||
});
|
||||
this.add(this.lowButton);
|
||||
|
@ -2,6 +2,7 @@ import Group from 'zrender/src/container/Group';
|
||||
import Circle from 'zrender/src/graphic/shape/Circle';
|
||||
import Text from 'zrender/src/graphic/Text';
|
||||
import Rect from 'zrender/src/graphic/shape/Rect';
|
||||
import Vue from 'vue';
|
||||
|
||||
export default class StationTurnBack extends Group {
|
||||
constructor(model, style) {
|
||||
@ -68,6 +69,10 @@ export default class StationTurnBack extends Group {
|
||||
}
|
||||
});
|
||||
}
|
||||
let turnName = '按计划执行';
|
||||
if (Vue.prototype.$jlmap.lineCode == '03') {
|
||||
turnName = '关闭';
|
||||
}
|
||||
this.strategyText = new Text({
|
||||
_subType: 'Text',
|
||||
zlevel: this.zlevel,
|
||||
@ -79,7 +84,7 @@ export default class StationTurnBack extends Group {
|
||||
fontWeight: style.StationTurnBack.text.fontWeight,
|
||||
fontSize: style.StationTurnBack.text.fontSize,
|
||||
fontFamily: style.fontFamily,
|
||||
text: model.optionList.length ? model.optionList[0].label : '按计划执行',
|
||||
text: model.optionList.length ? model.optionList[0].label : turnName,
|
||||
textFill: '#fff',
|
||||
textAlign: 'center',
|
||||
textVerticalAlign: 'top'
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag class="autoSignal" :title="$t('map.automaticSignalList')" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag class="autoSignal" :title="$t('map.automaticSignalList')" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag class="autoSignal" title="停站时间列表" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag class="autoSignal" title="停站时间列表" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag class="autoSignal" title="侧防列表" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag class="autoSignal" title="侧防列表" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div v-show="show">
|
||||
<el-dialog v-dialogDrag :title="$t('map.routePreview')" :visible.sync="show" width="95%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag :title="$t('map.routePreview')" :visible.sync="show" width="95%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag :title="$t('map.thenList')" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag :title="$t('map.thenList')" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag title="站间等级列表" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag title="站间等级列表" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag :title="$t('map.signalApprochSection')" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag :title="$t('map.signalApprochSection')" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag :title="$t('map.autoTurnedList')" :visible.sync="show" width="85%" :before-do-close="doClose">
|
||||
<el-dialog v-dialogDrag :title="$t('map.autoTurnedList')" :visible.sync="show" width="85%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
|
@ -41,9 +41,9 @@
|
||||
@showMap="showMap"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<config-map ref="configMap" @handleSelectPhysicalView="handleSelectPhysicalView" />
|
||||
<ci-config ref="ciConfig" />
|
||||
</div>
|
||||
<pop-menu ref="popMenu" :menu="menu" />
|
||||
</div>
|
||||
</transition>
|
||||
@ -472,8 +472,8 @@ export default {
|
||||
},
|
||||
saveMapEvent() { // 保存地图
|
||||
const map = this.$store.state.map.map;
|
||||
// map.sectionList.forEach(item => {
|
||||
// item.belongStation = '';
|
||||
// map.signalList.forEach(item => {
|
||||
// item.interlockStationCode = item.stationCode;
|
||||
// });
|
||||
if (this.$refs.jlmapVisual && map && parseInt(this.$route.params.mapId)) {
|
||||
if (this.verifySectionPoint(map)) {
|
||||
|
@ -494,10 +494,10 @@ export default {
|
||||
model.rightStopPointOffset = model.rightStopPointOffset || model.lengthFact - 5;
|
||||
}
|
||||
const changeSectionList = this.handleOtherSectionChange(model);
|
||||
let changeStandList = [];
|
||||
if (this.editModel.stationCode != this.selected.stationCode) { // 优化
|
||||
changeStandList = this.handleRelevanceStand(model);
|
||||
}
|
||||
// let changeStandList = [];
|
||||
// if (this.editModel.stationCode != this.selected.stationCode) { // 优化
|
||||
const changeStandList = this.handleRelevanceStand(model);
|
||||
// }
|
||||
models = [...changeSectionList, ...changeStandList];
|
||||
|
||||
this.$emit('updateMapModel', models);
|
||||
@ -511,7 +511,7 @@ export default {
|
||||
},
|
||||
handleRelevanceStand(model) { // 站台轨关联站台调整 所属集中站
|
||||
const models = [];
|
||||
if (model.standTrack) {
|
||||
if (model.standTrack || model.reentryTrack || model.transferTrack) {
|
||||
this.stationStandList.forEach(stand => {
|
||||
if (stand.standTrackCode == model.code) {
|
||||
const copyStand = deepAssign({}, stand);
|
||||
|
Loading…
Reference in New Issue
Block a user