南京二号线 站台添加 月台 按钮
This commit is contained in:
parent
d322aad5d4
commit
ba80512efa
@ -271,7 +271,7 @@ class SkinCode extends defaultStyle {
|
||||
|
||||
this[deviceType.StationStand] = {
|
||||
// 哈尔滨一号线站台元素 站台 站台紧急关闭 扣车元素 停站时间 运行等级 跳停
|
||||
elemnetType:['gapStand', 'emergentArrow', 'detainNormal', 'level', 'jump', 'trainStop', 'trainDepart', 'trainSetButton'],
|
||||
elemnetType:['gapStand', 'emergentArrow', 'detainNormal', 'level', 'jump', 'trainStop', 'trainDepart', 'stationPlatform'],
|
||||
// 站台
|
||||
gapStand:{
|
||||
// 层级
|
||||
@ -346,11 +346,13 @@ class SkinCode extends defaultStyle {
|
||||
fontSize: 10 // 字体大小
|
||||
},
|
||||
// 站台 扣车/取消扣车,越站/取消越站 设置按钮
|
||||
trainSetButton:{
|
||||
stationPlatform:{
|
||||
z:1,
|
||||
offset: { x: 80, y:10}, // 按钮偏移
|
||||
textFontSize: 13, // 按钮字体大小
|
||||
textColor:'#00FF00'
|
||||
insideOffset: { x: 50, y: -20 }, // 内站台按钮偏移量
|
||||
outsideOffset: { x: 50, y: 20}, // 外站台按钮偏移量
|
||||
detainColor:'#FFFF00', // 扣车颜色
|
||||
defaultColor:'#BFBFBF', // 默认颜色
|
||||
jumpColor:'#00FF00' // 跳停颜色
|
||||
},
|
||||
|
||||
common: { // 通用属性
|
||||
|
@ -34,6 +34,7 @@ import EUpDetainLamp from './functionButton/EUpDetainLamp';
|
||||
import EDownDetainLamp from './functionButton/EDownDetainLamp';
|
||||
|
||||
import ETrainSetButton from './ETrainSetButton';
|
||||
import EStationPlatform from './EStationPlatform';
|
||||
|
||||
import {isShowThePrdType} from '../../utils/handlePath';
|
||||
import {traverseLineElements, traverseStatusElements} from '../utils/ShapeStatusCovert';
|
||||
@ -84,7 +85,8 @@ class StationStand extends Group {
|
||||
'reentry':EReentry, // 站台折返策略
|
||||
'trainStop':ETrainStop, // 列车停车点标识 哈尔滨一号线
|
||||
'trainDepart':ETrainDepart, // 列车停站时间 哈尔滨一号线
|
||||
'trainSetButton':ETrainSetButton // 站台 扣车/取消扣车,越站/取消越站 设置按钮 哈尔滨一号线
|
||||
'trainSetButton':ETrainSetButton, // 站台 扣车/取消扣车,越站/取消越站 设置按钮 哈尔滨一号线
|
||||
'stationPlatform':EStationPlatform // 站台 月台 南京二号线 使用
|
||||
};
|
||||
// 遍历当前线路下的绘图元素 组合模式
|
||||
traverseLineElements(style.StationStand, elementTypeList, model, style, this);
|
||||
|
@ -407,6 +407,9 @@ export default {
|
||||
control = this.$store.getters['map/getDeviceTrainWindowCodeByStationCode'](selected.code);
|
||||
} else if (selected._type == 'LimitControl') {
|
||||
control = {controlMode: 'Center'};
|
||||
} else if (selected._type == 'Psd') {
|
||||
const stand = this.$store.getters['map/getDeviceByCode'](selected.standCode);
|
||||
control = this.$store.getters['map/getDeviceStationCodeByStationCode'](stand.deviceStationCode);
|
||||
} else {
|
||||
control = this.$store.getters['map/getDeviceStationCodeByStationCode'](selected.stationCode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user