- {{ nor.name }}
+ {{ nor.name || nor.code }}
@@ -119,7 +119,12 @@ export default {
type: 'Signal',
name: '信号机列表',
list: []
- }
+ },
+ {
+ type: 'SignalButton',
+ name: '信号按钮列表',
+ list: []
+ }
]
};
},
@@ -156,7 +161,9 @@ export default {
this.modelList[1].list.push(item);
} else if (item._type == 'Signal') {
this.modelList[2].list.push(item);
- }
+ } else if (item._type == 'SignalButton') {
+ this.modelList[3].list.push(item);
+ }
if (item.stationCode == this.seclectDeviceList[0].stationCode) {
count++;
}
@@ -317,7 +324,12 @@ export default {
type: 'Signal',
name: '信号机列表',
list: []
- }
+ },
+ {
+ type: 'SignalButton',
+ name: '信号按钮列表',
+ list: []
+ }
];
},
mouseenter(model) {
diff --git a/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue b/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue
index 7a55a9660..a97025f0a 100644
--- a/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/controlLamp.vue
@@ -99,7 +99,8 @@ export default {
'Recovery',
'Accident',
'Occlusion',
- 'PickOrDepartArrow'
+ 'PickArrow',
+ 'DepartArrow'
],
noNameTypeList: ['FaultStatusGroup', 'ModeStatusGroup', 'LampFilament', 'ReturnModeGroup', 'ControlSwitch', 'Axle'],
typeList: [
@@ -130,9 +131,10 @@ export default {
{ name: '复原', value: 'Recovery' },
{ name: '事故', value: 'Accident' },
{ name: '闭塞', value: 'Occlusion' },
- { name: '接发车箭头', value: 'PickOrDepartArrow' }
+ { name: '接车箭头', value: 'PickArrow' },
+ { name: '发车箭头', value: 'DepartArrow' }
],
- hasDirectionList: ['SectionOccupied', 'AssistStatus', 'TotalAssist', 'DepartAssist', 'PickAssist', 'Recovery', 'Accident', 'Occlusion', 'PickOrDepartArrow'],
+ hasDirectionList: ['SectionOccupied', 'AssistStatus', 'TotalAssist', 'DepartAssist', 'PickAssist', 'Recovery', 'Accident', 'Occlusion', 'PickArrow', 'DepartArrow'],
directionList: [{label: 'X',value: 'X'},{label: 'XF',value: 'XF'},{label: 'XD',value: 'XD'}, {label:'S',value:'S'},{label:'SF',value:'SF'},{label:'SD',value: 'SD'}],
editModel:getModel('ControlLamp'),
addModel:getModel('ControlLamp'),
@@ -165,7 +167,7 @@ export default {
] },
{ prop: 'mfNum', label: '报警指示故障数量:', type: 'number', min: 0, isHidden: this.editModel.type !== 'FaultStatusGroup' },
{ prop: 'pfNum', label: '电源故障数量:', type: 'number', min: 0, isHidden: this.editModel.type !== 'FaultStatusGroup'},
- { prop: 'right', label: '朝右:', type: 'checkbox', isHidden: this.editModel.type !== 'PickOrDepartArrow' },
+ { prop: 'right', label: '朝右:', type: 'checkbox', isHidden: this.editModel.type !== 'DepartArrow' && this.editModel.type !== 'PickArrow' },
{ prop: 'labelEnum', label: '方向:', type: 'select', optionLabel: 'label', optionValue: 'value', options: this.directionList, isHidden: !this.hasDirectionList.includes(this.editModel.type) },
{ prop: 'switchCode', label: '所属道岔:', type: 'selectHover', optionLabel: 'name&&code', optionValue: 'code', options: this.switchList, isHidden: this.editModel.type !== 'SwitchFault', hover: this.hover, buttonType: 'switchSelectCode', buttonShowType: this.isButtonType },
{ prop:'stationCode', label: '所属车站:', type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList}
@@ -292,7 +294,8 @@ export default {
this.RecoveryList = [];
this.AccidentList = [];
this.OcclusionList = [];
- this.PickOrDepartArrowList = [];
+ this.DepartArrowList = [];
+ this.PickArrowList = [];
indicatorLightList.forEach(item => {
switch (item._type) {
case 'AtsControl':
@@ -376,8 +379,11 @@ export default {
case 'Occlusion':
this.OcclusionList.push(item);
break;
- case 'PickOrDepartArrow':
- this.PickOrDepartArrowList.push(item);
+ case 'PickArrow':
+ this.PickArrowList.push(item);
+ break;
+ case 'DepartArrow':
+ this.DepartArrowList.push(item);
break;
}
});
@@ -465,8 +471,11 @@ export default {
case 'Occlusion':
this.selectLists = this.OcclusionList;
break;
- case 'PickOrDepartArrow':
- this.selectLists = this.PickOrDepartArrowList;
+ case 'PickArrow':
+ this.selectLists = this.PickArrowList;
+ break;
+ case 'DepartArrow':
+ this.selectLists = this.DepartArrowList;
break;
default :
this.selectLists = this.intersiteControlList;
@@ -577,8 +586,11 @@ export default {
case 'Occlusion':
idPrefix = 'occlusion';
break;
- case 'PickOrDepartArrow':
- idPrefix = 'podArrow'
+ case 'PickArrow':
+ idPrefix = 'pickArrow';
+ break;
+ case 'DepartArrow':
+ idPrefix = 'departArrow';
break;
}
return idPrefix;
diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue
index 1e91ca690..d93335d52 100644
--- a/src/views/newMap/newMapdraft/mapoperate/index.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/index.vue
@@ -211,7 +211,7 @@ export default {
const controlLampTypeList = ['AtsControl', 'CenterCommunication', 'ChainControl', 'IntersiteControl', 'LeuControl', 'LocalControl', 'Maintain',
'SwitchFault', 'PowerSupply', 'NoOneReturn', 'MaintenanceLamps', 'ZcCommunication', 'FaultStatusGroup', 'ModeStatusGroup', 'LampFilament',
'ReturnModeGroup', 'ControlSwitch', 'Axle', 'IndicatorLight', 'SectionOccupied', 'AssistStatus', 'TotalAssist', 'DepartAssist', 'PickAssist',
- 'Recovery', 'Accident', 'Occlusion', 'PickOrDepartArrow'];
+ 'Recovery', 'Accident', 'Occlusion', 'PickArrow' ,'DepartArrow'];
const type = device._type;
if (this.selectDevice) {
this.enabledTab = this.selectDevice;