区段信号机道岔添加字段srCode 沙盘设备编号

This commit is contained in:
fan 2021-10-12 10:52:37 +08:00
parent 414e7f16a4
commit 4acb11fa2d
4 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class Model {
this.leftAxleOffset = { x: 0, y: 0 };
this.logicLengthList = [];
this.relCrossSection = '';
this.srCode = '';
}
SignalModel() {
this._type = 'Signal';
@ -93,6 +94,7 @@ class Model {
this.noRoute = false; // 是否不生成进路
this.ignoreRouteEnd = []; // 不生成进路的信号机终端
this.linkSignalCode = ''; // 传输信号机 关联信号机
this.srCode = '';
}
SwitchModel() {
this._type = 'Switch';
@ -108,6 +110,7 @@ class Model {
this.sectionCCode = '';
this.tp = { x: 0, y: 0 };
this.belongStationCode = '';
this.srCode = '';
}
StationModel() {
this._type = 'Station';

View File

@ -143,6 +143,7 @@ export default {
{ prop: 'namePosition.x', firstLevel: 'namePosition', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
{ prop: 'namePosition.y', firstLevel: 'namePosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
] },
{ prop: 'srCode', label: '沙盘设备编号', type: 'input' },
{ prop: 'type', label: this.$t('map.sectionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionTypeList, disabled: true }, //
{ prop: 'roadType', label: '线路类型:', type: 'select', optionLabel: 'name', optionValue: 'code', options: this.sectionRoadTypeList, clearable: true, isHidden: !this.isSwitchSectionType || !this.isCrossSectionType, deviceChange: this.roadTypeChange },
{ prop: 'leftSectionCode', label: this.$t('map.leftAssociatedSection'), type: 'selectHover', optionLabel: 'name&&code', optionValue: 'code', clearable: true, options: this.switchAndPhySicalSectionList, hover: this.hover, buttonType: 'leftSection', buttonShowType: this.isLeftSectionButtonShow, isHidden: !this.hasAssociatedSection }, //

View File

@ -129,6 +129,7 @@ export default {
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
] },
{ prop: 'srCode', label: '沙盘设备编号', type: 'input' },
{ prop: 'lampPostType', label: this.$t('map.lampPostType'), type: 'radio', optionLabel: 'name', optionValue: 'code', border: true, radioList: this.SignalLampPostTypeList },
{ prop: 'lampPositionType', label: this.$t('map.lampPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPositionTypeList },
{ prop: 'right', label: this.$t('map.signalDirectionTypeX'), type: 'radio', optionLabel: 'name', optionValue: 'code', border: true, radioList: this.SignalDirectionList },

View File

@ -43,6 +43,7 @@ export default {
{ prop: 'namePosition.x', firstLevel: 'namePosition', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
{ prop: 'namePosition.y', firstLevel: 'namePosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
] },
{ prop: 'srCode', label: '沙盘设备编号', type: 'input' },
{ prop: 'tp', label: this.$t('map.switchTp'), type: 'coordinate', width: '160px', children: [
{ prop: 'tp.x', firstLevel: 'tp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
{ prop: 'tp.y', firstLevel: 'tp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }