diff --git a/src/i18n/langs/en/map.js b/src/i18n/langs/en/map.js index ffe35dbb3..98746137f 100644 --- a/src/i18n/langs/en/map.js +++ b/src/i18n/langs/en/map.js @@ -510,7 +510,7 @@ export default { switchId: 'Switch ID', turnBackSectionCode: 'Turn back track ID:', routeTriggerSectionList: 'The approach automatically triggers the segment data:', - nearSectionCodeColon: 'Close to extent ID:', + nearSectionCodeColon: 'Close to extent ID(CBTC):', thenList: 'Then list', startStation: 'Originating station', @@ -591,5 +591,19 @@ export default { showConditions: 'Show conditions:', localCenter: 'Local&Center', local: 'Local', - center: 'Center' + center: 'Center', + autoTurnedList: 'Auto turned list', + autoTurnedName: 'Auto turned list', + reentryRoute: 'Reentry route', + basicRoute: 'Basic route', + reentrySection: 'Reentry section', + reentryRoute2: 'Reentry route 2', + basicRoute2: 'Basic route 2', + reentrySection2: 'Reentry section 2', + setPriority: 'Set priority', + associatedStationList: 'Associated station list:', + whetherAutoRoute: 'Whether auto route', + hostileData: 'Hostile data', + routeContinuesToProtectSectorData: 'Route continues to protect sector data', + physicalSectionID: 'Physical section id' }; diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index 890ac0ea8..d2a845f57 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -448,7 +448,7 @@ export default { switchId: '道岔', turnBackSectionCode: '折返轨:', routeTriggerSectionList: '自动追踪接近区段:', - nearSectionCodeColon: '接近区段:', + nearSectionCodeColon: '接近区段(CBTC):', thenList: '交路列表', startStation: '起始站', @@ -584,5 +584,19 @@ export default { showConditions: '显示条件:', localCenter: '现地&行调', local: '现地', - center: '行调' + center: '行调', + autoTurnedList: '自动折返列表', + autoTurnedName: '自动折返名称', + reentryRoute: '折返进路', + basicRoute: '基础进路', + reentrySection: '折返区段', + reentryRoute2: '折返进路2', + basicRoute2: '基础进路2', + reentrySection2: '折返区段2', + setPriority: '设置优先级', + associatedStationList: '关联站台列表:', + whetherAutoRoute: '是否自定进路', + hostileData: '敌对数据', + routeContinuesToProtectSectorData: '进路延续保护区段数据', + physicalSectionID: '物理区段ID' }; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index ae880e5e3..0a29bb813 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,9 +3,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - // BASE_API = 'http://192.168.3.6:9000'; // 旭强 + BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue index 8f1f9e70c..5b2bdf9f4 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/detail.vue @@ -98,7 +98,7 @@ export default { width: 180 }, { - title: '编码', + title: this.$t('map.code'), prop: 'code', width: 150 }, @@ -115,7 +115,7 @@ export default { }, { - title: '是否自动进路', + title: this.$t('map.whetherAutoRoute'), prop: 'flt', type: 'tag', columnValue: (row) => { return this.$convertField(row.flt, this.turnBackList, ['value', 'label']); }, @@ -131,7 +131,7 @@ export default { }, { type: 'button', - title: '延续保护', + title: this.$t('map.continueProtect'), buttons: [ { name: this.$t('map.preview'), @@ -173,15 +173,12 @@ export default { ] }, { - type: 'button', - title: this.$t('map.hostileApproachData'), - buttons: [ - { - name: this.$t('map.relation'), - handleClick: this.conflictingRouteSection, - showControl: (row) => { return row.conflictingRouteList.length > 0; } - } - ] + title: this.$t('map.hostileData'), + prop: 'conflictingSignalList', + type: 'tagMore', + width: '250', + columnValue: (row) => { return this.showConflictingSignalList(row.conflictingSignalList); }, + tagType: (row) => { return ''; } }, { type: 'button', @@ -200,7 +197,7 @@ export default { showControl: () => { return this.showType !== 'select'; } }, { - name: '选择', + name: this.$t('global.select'), handleClick: this.selectedObj, showControl: () => { return this.showType === 'select'; } } @@ -305,7 +302,7 @@ export default { const fieldList = { id: row.id, mapId: this.$route.params.mapId, - title: '进路延续保护区段数据', + title: this.$t('map.routeContinuesToProtectSectorData'), name: row.name, model: { items: [ @@ -398,24 +395,6 @@ export default { this.$refs.previewField.doShow(fieldList, row.routeSwitchList); } }, - async conflictingRouteSection(index, row) { // 敌对进路列表 - if (this.$refs && this.$refs.previewField && row) { - const conflictingRouteList = row.conflictingRouteList.map(elem => { return {code : elem}; }); - const fieldList = { - id: row.id, - mapId: this.$route.params.mapId, - title: '敌对进路数据', - name: row.name, - model: { - items: [ - { prop: 'code', label: '进路code', type: 'text' }, - { prop: 'code', label: '进路名称', type: 'select' } - ] - } - }; - this.$refs.related.doShow(fieldList, conflictingRouteList); - } - }, // 保存 saveRelated(row) { putRouteNew(row).then(response => { @@ -476,6 +455,38 @@ export default { selectedObj(index, row) { this.$emit('setRouteCode', row, this.codeType); this.show = false; + }, + showConflictingSignalList(data) { + const nameList = []; + data.forEach(ele => { + let signalName = ''; + this.signalList.some(item => { + if (item.code === ele.signalCode) { + signalName = item.name; + return true; + } + }); + let switchName = ''; + ele.switchPositionList.forEach((item, index) => { + this.switchList.some(it => { + if (it.code === item.switchCode) { + const pos = item.normal ? 'N' : 'R'; + if (index === 0) { + switchName = switchName + it.name + pos; + } else { + switchName = switchName + '/' + it.name + pos; + } + return true; + } + }); + }); + if (switchName) { + nameList.push(signalName + ' ' + 'WITH' + ' ' + switchName); + } else { + nameList.push(signalName); + } + }); + return nameList; } } }; diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/hostileData.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/hostileData.vue new file mode 100644 index 000000000..50b0be100 --- /dev/null +++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/hostileData.vue @@ -0,0 +1,342 @@ + + + diff --git a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue index 5da36d35b..d703c6a68 100644 --- a/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue +++ b/src/views/newMap/newMapdraft/dataRelation/routeoperate/route.vue @@ -161,7 +161,7 @@ - + {{ $t('map.activate') }} - - - - - + +
@@ -195,21 +187,20 @@
-