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