宁波福州佛山默认不显示道岔区段的名称调整
This commit is contained in:
parent
e6f7ade236
commit
8027bc90ae
@ -197,20 +197,20 @@ export default {
|
|||||||
const sectionList = this.$store.getters['map/sectionList'];
|
const sectionList = this.$store.getters['map/sectionList'];
|
||||||
if (sectionList && sectionList.length > 0) {
|
if (sectionList && sectionList.length > 0) {
|
||||||
sectionList.forEach(elem => {
|
sectionList.forEach(elem => {
|
||||||
if (elem.isSwitchSection && elem.parentCode) {
|
// if (elem.switchSection && elem.parentCode) {
|
||||||
// 道岔轨的区段名称默认不显示
|
// // 道岔轨的区段名称默认不显示
|
||||||
nameShow = false;
|
// nameShow = false;
|
||||||
} else {
|
// } else {
|
||||||
if (elem.type === '01') {
|
if (elem.type === '01') {
|
||||||
nameShow = this.nameLevels.indexOf(11) !== -1;
|
nameShow = this.nameLevels.indexOf(11) !== -1;
|
||||||
} else if (elem.type === '02') {
|
} else if (elem.type === '02') {
|
||||||
// 轨道轨名称
|
// 轨道轨名称
|
||||||
nameShow = this.nameLevels.indexOf(5) !== -1;
|
nameShow = this.nameLevels.indexOf(5) !== -1;
|
||||||
} else if (elem.type === '03') {
|
} else if (elem.type === '03') {
|
||||||
// 道岔区段名称
|
// 道岔区段名称
|
||||||
nameShow = this.nameLevels.indexOf(9) !== -1;
|
nameShow = this.nameLevels.indexOf(9) !== -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
// 站台轨名称
|
// 站台轨名称
|
||||||
if (elem.isStandTrack) {
|
if (elem.isStandTrack) {
|
||||||
|
@ -197,21 +197,21 @@ export default {
|
|||||||
if (sectionList && sectionList.length > 0) {
|
if (sectionList && sectionList.length > 0) {
|
||||||
sectionList.forEach(elem => {
|
sectionList.forEach(elem => {
|
||||||
elem._type = deviceType.Section;
|
elem._type = deviceType.Section;
|
||||||
if (elem.isSwitchSection && elem.parentCode) {
|
// if (elem.switchSection && elem.parentCode) {
|
||||||
// 道岔轨的区段名称默认不显示
|
// // 道岔轨的区段名称默认不显示
|
||||||
nameShow = false;
|
// nameShow = false;
|
||||||
} else {
|
// } else {
|
||||||
if (elem.type === '01') {
|
if (elem.type === '01') {
|
||||||
// 计轴区段名称
|
// 计轴区段名称
|
||||||
nameShow = this.nameLevels.indexOf(11) !== -1;
|
nameShow = this.nameLevels.indexOf(11) !== -1;
|
||||||
} else if (elem.type === '02') {
|
} else if (elem.type === '02') {
|
||||||
// 轨道轨名称
|
// 轨道轨名称
|
||||||
nameShow = this.nameLevels.indexOf(5) !== -1;
|
nameShow = this.nameLevels.indexOf(5) !== -1;
|
||||||
} else if (elem.type === '03') {
|
} else if (elem.type === '03') {
|
||||||
// 道岔区段名称
|
// 道岔区段名称
|
||||||
nameShow = this.nameLevels.indexOf(9) !== -1;
|
nameShow = this.nameLevels.indexOf(9) !== -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
// 站台轨名称
|
// 站台轨名称
|
||||||
if (elem.isStandTrack) {
|
if (elem.isStandTrack) {
|
||||||
|
@ -563,7 +563,7 @@ export default {
|
|||||||
minDuration: 5,
|
minDuration: 5,
|
||||||
operateType: 'Signal_Reopen_Signal',
|
operateType: 'Signal_Reopen_Signal',
|
||||||
skinCode: '06',
|
skinCode: '06',
|
||||||
trainingName: '信号重开({3} 进路)',
|
trainingName: '信号重开({5})',
|
||||||
trainingRemark: '信号重开功能',
|
trainingRemark: '信号重开功能',
|
||||||
trainingType: 'Signal',
|
trainingType: 'Signal',
|
||||||
productTypes: ['01', '02'],
|
productTypes: ['01', '02'],
|
||||||
|
@ -199,21 +199,21 @@ export default {
|
|||||||
if (sectionList && sectionList.length > 0) {
|
if (sectionList && sectionList.length > 0) {
|
||||||
sectionList.forEach(elem => {
|
sectionList.forEach(elem => {
|
||||||
elem._type = deviceType.Section;
|
elem._type = deviceType.Section;
|
||||||
if (elem.isSwitchSection && elem.parentCode) {
|
// if (elem.switchSection && elem.parentCode) {
|
||||||
// 道岔轨的区段名称默认不显示
|
// // 道岔轨的区段名称默认不显示
|
||||||
nameShow = false;
|
// nameShow = false;
|
||||||
} else {
|
// } else {
|
||||||
if (elem.type === '01') {
|
if (elem.type === '01') {
|
||||||
// 计轴区段名称
|
// 计轴区段名称
|
||||||
nameShow = this.nameLevels.indexOf(11) !== -1;
|
nameShow = this.nameLevels.indexOf(11) !== -1;
|
||||||
} else if (elem.type === '02') {
|
} else if (elem.type === '02') {
|
||||||
// 轨道轨名称
|
// 轨道轨名称
|
||||||
nameShow = this.nameLevels.indexOf(5) !== -1;
|
nameShow = this.nameLevels.indexOf(5) !== -1;
|
||||||
} else if (elem.type === '03') {
|
} else if (elem.type === '03') {
|
||||||
// 道岔区段名称
|
// 道岔区段名称
|
||||||
nameShow = this.nameLevels.indexOf(9) !== -1;
|
nameShow = this.nameLevels.indexOf(9) !== -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
// 站台轨名称
|
// 站台轨名称
|
||||||
standTrackNameShow = this.nameLevels.indexOf(2) !== -1;
|
standTrackNameShow = this.nameLevels.indexOf(2) !== -1;
|
||||||
|
@ -61,7 +61,10 @@ function queryDeleteModels(state, device, dict) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
copyModel.relSwitchCode = '';
|
copyModel.relSwitchCode = '';
|
||||||
|
// 旧版地图 判断是否道岔区段为isSwitchSection,新版地图已经更换为switchSection
|
||||||
|
// 此处为了兼容旧版,暂时没有删除isSwitchSection,待旧版地图删除之后需要删除isSwitchSection
|
||||||
copyModel.isSwitchSection = false;
|
copyModel.isSwitchSection = false;
|
||||||
|
copyModel.switchSection = false;
|
||||||
copyModel.type = '01';
|
copyModel.type = '01';
|
||||||
dict[elem.code] = copyModel;
|
dict[elem.code] = copyModel;
|
||||||
}
|
}
|
||||||
@ -787,7 +790,7 @@ const map = {
|
|||||||
state.map.automaticRouteButtonList && state.map.automaticRouteButtonList.forEach(item => {
|
state.map.automaticRouteButtonList && state.map.automaticRouteButtonList.forEach(item => {
|
||||||
state.routeData[item.automaticRouteCode].automaticRouteCode = item.code;
|
state.routeData[item.automaticRouteCode].automaticRouteCode = item.code;
|
||||||
});
|
});
|
||||||
state.routeList = routeDataList;
|
state.routeList = routeDataList;
|
||||||
},
|
},
|
||||||
setOverlapData: (state, overlapList) => {
|
setOverlapData: (state, overlapList) => {
|
||||||
state.overlapData = {};
|
state.overlapData = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user