diff --git a/src/i18n/langs/en/rules.js b/src/i18n/langs/en/rules.js index b3e2557e6..7a5272730 100644 --- a/src/i18n/langs/en/rules.js +++ b/src/i18n/langs/en/rules.js @@ -32,6 +32,7 @@ export default { pointY: 'Coordinates y:', direct: 'The direction of:', basisLink: 'Based on the Link:', + sectionRelSwitchCode: 'sectionRelSwitchCode', pleaseSelectSectionName: 'Select the section name', pleaseFillOffset: 'Please fill in the offset', diff --git a/src/i18n/langs/zh/map.js b/src/i18n/langs/zh/map.js index 393886a0b..45662f0f7 100644 --- a/src/i18n/langs/zh/map.js +++ b/src/i18n/langs/zh/map.js @@ -114,7 +114,7 @@ export default { automaticSignalCode: '自动信号编码', signalCodeName: '信号机名称', signalCode: '信号机code', - sectionData: '区段数据', + sectionData: '区段列表', preview: '预览', operation: '操作', compile: '编辑', @@ -124,11 +124,11 @@ export default { sectionList: '区段列表', automaticSignal: '自动信号', - signalID: '信号机ID:', + signalID: '信号机:', activate: '激活', pleaseSelectSignal: '请选择信号机', - triggerSegmentData: '请选择进路自动触发区段数据', + triggerSegmentData: '请选择进路自动触发区段', automaticSignalSuccessful: '创建自动信号成功!', failedCreateSignal: '创建自动信号失败', automaticSignalUpdateSucceeded: '更新自动信号成功!', @@ -212,7 +212,7 @@ export default { sectionLogicalNumber: '逻辑区段数量', sectionLsectioncode: '左侧区段名称:', sectionRsectioncode: '右侧区段名称:', - associatedSection: '关联物理区段:', + associatedSection: '所属物理/道岔区段:', blockCoding: '区段编码:', sectionType: '区段类型:', sectionNameColon: '区段名称:', @@ -239,12 +239,12 @@ export default { destinationCodeShow: '是否显示目的地码:', leftStopPointOffset: '左向停车点偏移量:', rightStopPointOffset: '右向停车点偏移量:', - isSwitchSection: '是否道岔区段:', - relSwitchCode: '关联道岔Code:', + isSwitchSection: '是否关联道岔:', + relSwitchCode: '关联道岔:', logicSectionNameSort: '逻辑区段排序:', fromSmallToLarge: '从小到大', fromLargeToSmall: '从大到小', - relevanceLinkCode: '关联的Link:', + relevanceLinkCode: '所在Link:', sepTypeLeft: '左侧分隔符类型:', sectionOffsetLeft: '左侧Link偏移量:', sepTypeRight: '右侧分隔符类型:', @@ -269,17 +269,22 @@ export default { potLampType: '点灯类型:', signalDirectionType: '方向类型:', signalPositionType: '信号机位置类型:', - signalOffset: '偏移量:', + signalOffset: '所属link偏移量:', + signalLinkCode: '所属link', signalPositionX: '信号机x:', signalPositionY: '信号机y:', + signalPosition: '信号机坐标:', signalNamePositionX: '信号机名字偏移量 x:', signalNamePositionY: '信号机名字偏移量 y:', + signalNamePosition: '信号机名字偏移量:', signalButtonShow: '是否显示按钮:', signalButtonPositionX: '按钮x:', signalButtonPositionY: '按钮y:', + signalButtonPosition: '按钮:', signalGuideShow: '是否显示引导信号灯:', signalGuidePositionX: '引导信号x:', signalGuidePositionY: '引导信号y:', + signalGuidePosition: '引导信号:', concentrateStationCode: '所属联锁站编码:', stationCode: '车站编码:', @@ -296,7 +301,9 @@ export default { stationKmPostFontColor: '公里标字体颜色:', stationPositionX: 'x坐标:', stationPositionY: 'y坐标:', + stationPosition: '车站坐标:', + stationControlPosition: '控制模式坐标:', stationControlCode: '控制模式编码:', stationControlName: '控制模式名称:', zokContent: '中控内容:', @@ -313,6 +320,7 @@ export default { stationstandShowName: '是否显示名称:', stationstandWidth: '宽度 w:', stationstandHeight: '高度 h:', + stationstandPosition: '车站坐标:', switchCode: '道岔编码:', switchName: '道岔名称:', @@ -320,6 +328,7 @@ export default { switchShowName: '是否显示道岔名称:', switchPositionX: '道岔名称x偏移量:', switchPositionY: '道岔名称y偏移量:', + switchPosition: '道岔名称偏移量:', turnTime: '道岔转换时间:', timeoutShow: '是否显示道岔倒计时时间:', sectionACode: '关联的A Section Code:', @@ -327,6 +336,11 @@ export default { sectionCCode: '关联的C Section Code:', switchTpX: '时间x坐标偏移量:', switchTpY: '时间y坐标偏移量:', + switchTp: '时间坐标偏移量:', + counterPosition: '计数器坐标:', + delayUnlockPosition: '延迟解锁坐标:', + trainWindowPoints: '车次窗坐标:', + textPoints: '坐标:', textCode: '文字编码:', textContent: '文本内容:', @@ -370,7 +384,7 @@ export default { startingSignalName: '始端信号机名称', endingSignalName: '终端信号机名称', - routeID: '进路ID', + routeID: '进路', routeName: '进路名称:', routeStationName: '所属车站名称', @@ -381,16 +395,16 @@ export default { accessType: '进路性质类型', automaticRouteType: '自动进路类型', nearSectionCode: '接近区段名称', - continueProtectSwitchData: '延续保护道岔数据', - accessSideTurnoutData: '进路侧防道岔数据', + continueProtectSwitchData: '延续保护道岔', + accessSideTurnoutData: '进路侧防道岔', turnBackRailName: '折返轨名称', - routeSegmentData: '进路自动触发区段数据', - routeProtectsData: '进路延续保护区段数据', - accessPhysical: '进路物理区段数据', - routeRouteScreenData: '进路屏蔽门数据', - routeRouteTurnoutData: '进路道岔数据', - hostileApproachData: '敌对进路数据', + routeSegmentData: '进路自动触发区段', + routeProtectsData: '进路延续保护区段', + accessPhysical: '进路物理区段', + routeRouteScreenData: '进路屏蔽门', + routeRouteTurnoutData: '进路道岔', + hostileApproachData: '敌对进路', relation: '关系', associatedRoute: '关联进路:', @@ -401,20 +415,20 @@ export default { accessTypeColon: '进路性质类型:', automaticRouteTypeColon: '自动进路类型:', - startSignalId: '始端信号机ID:', - endSignalId: '终端信号机ID:', + startSignalId: '始端信号机:', + endSignalId: '终端信号机:', switchType: '道岔类型', - switchId: '道岔ID', - accessSwitchList: '进路道岔数据:', - accessStandList: '进路屏蔽门数据:', - accessSectionList: '进路物理区段数据:', - turnBackSectionCode: '折返轨ID:', - routeFlankProtectionList: '侧防道岔数据:', - routeOverlapSwitchList: '延续保护道岔数据:', - routeOverlapSectionList: '进路延续保护区段数据:', - routeTriggerSectionList: '进路自动触发区段数据:', - nearSectionCodeColon: '接近区段ID:', + switchId: '道岔', + accessSwitchList: '进路道岔:', + accessStandList: '进路屏蔽门:', + accessSectionList: '进路物理区段:', + turnBackSectionCode: '折返轨:', + routeFlankProtectionList: '侧防道岔:', + routeOverlapSwitchList: '延续保护道岔:', + routeOverlapSectionList: '进路延续保护区段:', + routeTriggerSectionList: '进路自动触发区段:', + nearSectionCodeColon: '接近区段:', thenList: '交路列表', startStation: '起始站', @@ -485,7 +499,7 @@ export default { routingDirection: '方向', remarks: '描述', remarksColon: '描述:', - trafficSegmentData: '交路区段数据:', + trafficSegmentData: '交路区段:', startSectionColon: '起始区段:', endStationColon: '终到站:', endSectionColon: '终到区段:', diff --git a/src/i18n/langs/zh/rules.js b/src/i18n/langs/zh/rules.js index f22c49f44..488df975a 100644 --- a/src/i18n/langs/zh/rules.js +++ b/src/i18n/langs/zh/rules.js @@ -184,6 +184,7 @@ export default { chooseUser: '请选择用户', pleaseInputLessonName: '请输入课程名称', pleaseSelectTraining: '请选择实训', + sectionRelSwitchCode: '请选择关联道岔', maxScaling: '(缩放比例最大为8级)', skinCodingInput: '请输入皮肤编码', diff --git a/src/jmap/config/skinCode/bejing_01.js b/src/jmap/config/skinCode/bejing_01.js index ed041031a..aa7be1736 100644 --- a/src/jmap/config/skinCode/bejing_01.js +++ b/src/jmap/config/skinCode/bejing_01.js @@ -12,7 +12,11 @@ class SkinCode extends defaultStyle { }; this[deviceType.Section] = { - text: { + active: { + routeColor: false // 进路触发颜色 + }, + text: { // 物理区段名称 + show: true, // 物理区段名称显示 position: -1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 fontSize: 11, // 字体大小 @@ -22,7 +26,8 @@ class SkinCode extends defaultStyle { textPosition: 'inside', // 文字位置 textVerticalAlign: 'middle' // 文字垂直对齐方式 }, - logicText: { + logicText: { // 逻辑区段名称 + show: true, // 逻辑区段名称显示 position: -1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 fontSize: 11, // 字体大小 @@ -32,7 +37,8 @@ class SkinCode extends defaultStyle { textPosition: 'inside', // 文字位置 textVerticalAlign: 'middle' // 文字垂直对齐方式 }, - standText: { + standText: { // 站台轨名称 + show: true, // 站台轨名称显示 opposite: true, // 对称相反 position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 @@ -43,7 +49,8 @@ class SkinCode extends defaultStyle { textPosition: 'inside', // 文字位置 textVerticalAlign: 'middle' // 文字垂直对齐方式 }, - reentryText: { + reentryText: { // 折返轨名称 + show: true, // 折返轨名称显示 opposite: true, // 对称相反 position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 @@ -54,7 +61,8 @@ class SkinCode extends defaultStyle { textPosition: 'inside', // 文字位置 textVerticalAlign: 'middle' // 文字垂直对齐方式 }, - transferText: { + transferText: { // 转换轨名称 + show: true, // 转换轨名称显示 opposite: true, // 对称相反 position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 @@ -65,7 +73,8 @@ class SkinCode extends defaultStyle { textPosition: 'inside', // 文字位置 textVerticalAlign: 'middle' // 文字垂直对齐方式 }, - destinationText: { + destinationText: { // 目的码名称 + show: true, // 目的码名称显示 position: 1, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 11, // 文字离区段距离 fontSize: 11, // 字体大小 @@ -262,7 +271,7 @@ class SkinCode extends defaultStyle { emergencyControlShow: true, // 紧急站控显示 centerControlShow: true, // 中控显示 substationControlShow: true, // 站控按钮显示 - turnedAroundControlShow: true // 按图折返显示 + turnedAroundControlShow: false // 按图折返显示 }, arrow: { show: false // 控制模式箭头显隐 diff --git a/src/jmap/config/skinCode/chengdu_03.js b/src/jmap/config/skinCode/chengdu_03.js index 741105feb..bb6a557c4 100644 --- a/src/jmap/config/skinCode/chengdu_03.js +++ b/src/jmap/config/skinCode/chengdu_03.js @@ -12,6 +12,9 @@ class SkinCode extends defaultStyle { }; this[deviceType.Section] = { + active: { + routeColor: true // 进路触发颜色 + }, text: { position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 10, // 文字离区段距离 @@ -262,7 +265,11 @@ class SkinCode extends defaultStyle { grayColor: '#7F7F7F', // 控制模式灰色 greenColor: '#00FF00', // 控制模式绿色 redColor: '#FF0000', // 控制模式红色 - yellowColor: '#FFFF00' // 控制模式黄色 + yellowColor: '#FFFF00', // 控制模式黄色 + emergencyControlShow: true, // 紧急站控显示 + centerControlShow: true, // 中控显示 + substationControlShow: true, // 站控按钮显示 + turnedAroundControlShow: false // 按图折返显示 }, arrow: { show: false // 控制模式箭头显隐 diff --git a/src/jmap/config/skinCode/chengdu_04.js b/src/jmap/config/skinCode/chengdu_04.js index fcbd05d35..c1fda0199 100644 --- a/src/jmap/config/skinCode/chengdu_04.js +++ b/src/jmap/config/skinCode/chengdu_04.js @@ -12,6 +12,9 @@ class SkinCode extends defaultStyle { }; this[deviceType.Section] = { + active: { + routeColor: false // 进路触发颜色 + }, text: { position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 10, // 文字离区段距离 @@ -259,7 +262,11 @@ class SkinCode extends defaultStyle { grayColor: '#C0C0C0', // 控制模式灰色 greenColor: 'green', // 控制模式绿色 redColor: 'red', // 控制模式红色 - yellowColor: 'yellow' // 控制模式黄色 + yellowColor: 'yellow', // 控制模式黄色 + emergencyControlShow: true, // 紧急站控显示 + centerControlShow: true, // 中控显示 + substationControlShow: true, // 站控按钮显示 + turnedAroundControlShow: false // 按图折返显示 }, arrow: { show: false // 控制模式箭头显隐 diff --git a/src/jmap/config/skinCode/fuzhou_01.js b/src/jmap/config/skinCode/fuzhou_01.js index 16742e1bb..76a712c84 100644 --- a/src/jmap/config/skinCode/fuzhou_01.js +++ b/src/jmap/config/skinCode/fuzhou_01.js @@ -12,6 +12,9 @@ class SkinCode extends defaultStyle { }; this[deviceType.Section] = { + active: { + routeColor: false // 进路触发颜色 + }, text: { position: 0, // 区段名称位置 1 上面 -1 下面 0 对称 distance: 18, // 文字离区段距离 @@ -241,7 +244,11 @@ class SkinCode extends defaultStyle { grayColor: '#7F7F7F', // 控制模式灰色 greenColor: '#00FF00', // 控制模式绿色 redColor: '#FF0000', // 控制模式红色 - yellowColor: '#FFFF00' // 控制模式黄色 + yellowColor: '#FFFF00', // 控制模式黄色 + emergencyControlShow: false, // 紧急站控显示 + centerControlShow: true, // 中控显示 + substationControlShow: true, // 站控按钮显示 + turnedAroundControlShow: false // 按图折返显示 }, arrow: { show: true // 控制模式箭头显隐 diff --git a/src/jmap/map.js b/src/jmap/map.js index 17c60f03f..fc7f7d66b 100644 --- a/src/jmap/map.js +++ b/src/jmap/map.js @@ -308,8 +308,10 @@ class Jlmap { } else { const elem = list[idex]; if (elem) { - Object.keys(elem).forEach(key => { - elem[key] = model[key]; + Object.keys(model).forEach(key => { + if (key != 'instance') { + elem[key] = model[key]; + } }); } else { list.push(Object.assign({}, model)); diff --git a/src/jmap/shape/Section/index.js b/src/jmap/shape/Section/index.js index 032cd17ae..c6ba1f7f8 100644 --- a/src/jmap/shape/Section/index.js +++ b/src/jmap/shape/Section/index.js @@ -731,12 +731,21 @@ export default class Section extends Group { /** 设置状态*/ setState(model) { this.recover(); + if (model.status == '01') { + if (this.name && this.style.Section.active.routeColor) { + this.name.setStyle({textFill: this.style.Section.text.fontColor}); + } + } else { + if (this.name && this.style.Section.active.routeColor) { + this.name.setStyle({textFill: 'green'}); + } + } switch (model.status) { case '00': /** 未定义*/ this.undefine(); break; case '01': /** 空闲*/ - this.spare(); + this.spare(); // 空闲状态下 名称白色 其他条件为绿色 break; case '02': /** 通信车占用*/ this.communicationOccupied(); diff --git a/src/jmap/shape/StationControl/index.js b/src/jmap/shape/StationControl/index.js index ab82196c1..b84702861 100644 --- a/src/jmap/shape/StationControl/index.js +++ b/src/jmap/shape/StationControl/index.js @@ -26,57 +26,69 @@ export default class StationControl extends Group { create() { const model = this.model; // 紧急站控 - this.emergencyControl = new ESingleControl({ - _subType: 'emergency', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.position.x - this.style.StationControl.lamp.distance * 3 / 2 + this.style.StationControl.lamp.offset.x, - y: model.position.y + this.style.StationControl.lamp.offset.y - }, - context: model.jjzkContent, - pop: false - }); + if (this.style.StationControl.lamp.emergencyControlShow) { + this.emergencyControl = new ESingleControl({ + _subType: 'emergency', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.position.x - this.style.StationControl.lamp.distance * 3 / 2 + this.style.StationControl.lamp.offset.x, + y: model.position.y + this.style.StationControl.lamp.offset.y + }, + context: model.jjzkContent, + pop: false + }); + this.add(this.emergencyControl); + } // 中控按钮 - this.centerControl = new ESingleControl({ - _subType: 'center', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.position.x - this.style.StationControl.lamp.distance / 2 + this.style.StationControl.lamp.offset.x, - y: model.position.y + this.style.StationControl.lamp.offset.y - }, - context: model.zokContent, - pop: false - }); + if (this.style.StationControl.lamp.centerControlShow) { + this.centerControl = new ESingleControl({ + _subType: 'center', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.position.x - this.style.StationControl.lamp.distance / 2 + this.style.StationControl.lamp.offset.x, + y: model.position.y + this.style.StationControl.lamp.offset.y + }, + context: model.zokContent, + pop: false + }); + this.add(this.centerControl); + } // 站控按钮 - this.substationControl = new ESingleControl({ - _subType: 'substation', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.position.x + this.style.StationControl.lamp.distance / 2 + this.style.StationControl.lamp.offset.x, - y: model.position.y + this.style.StationControl.lamp.offset.y - }, - context: model.zakContent, - pop: false - }); + if (this.style.StationControl.lamp.substationControlShow) { + this.substationControl = new ESingleControl({ + _subType: 'substation', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.position.x + this.style.StationControl.lamp.distance / 2 + this.style.StationControl.lamp.offset.x, + y: model.position.y + this.style.StationControl.lamp.offset.y + }, + context: model.zakContent, + pop: false + }); + this.add(this.substationControl); + } // 按图折返 - this.turnedAroundControl = new ESingleControl({ - _subType: 'turnedAround', - style: this.style, - zlevel: this.zlevel, - z: this.z, - point: { - x: model.position.x + this.style.StationControl.lamp.distance * 3 / 2 + this.style.StationControl.lamp.offset.x, - y: model.position.y + this.style.StationControl.lamp.offset.y - }, - context: '按图折返', - pop: false - }); + if (this.style.StationControl.lamp.turnedAroundControlShow) { + this.turnedAroundControl = new ESingleControl({ + _subType: 'turnedAround', + style: this.style, + zlevel: this.zlevel, + z: this.z, + point: { + x: model.position.x + this.style.StationControl.lamp.distance * 3 / 2 + this.style.StationControl.lamp.offset.x, + y: model.position.y + this.style.StationControl.lamp.offset.y + }, + context: '按图折返', + pop: false + }); + this.add(this.turnedAroundControl); + } // 箭头 if (this.style.StationControl.arrow.show) { const point = arrow(this.model.position.x, this.model.position.y + this.style.StationControl.lamp.radiusR / 2, this.style.StationControl.lamp.distance / 6, this.style.StationControl.lamp.radiusR * 0.8); @@ -95,14 +107,6 @@ export default class StationControl extends Group { }); this.add(this.arrowsControl); } - this.add(this.substationControl); - this.add(this.centerControl); - if (this.style.StationControl.lamp.count == 3) { - this.add(this.emergencyControl); - } else if (this.style.StationControl.lamp.count == 4) { - this.add(this.emergencyControl); - this.add(this.turnedAroundControl); - } } // 设置状态 diff --git a/src/scripts/ConstConfig.js b/src/scripts/ConstConfig.js index b7a7dc200..c110025ea 100644 --- a/src/scripts/ConstConfig.js +++ b/src/scripts/ConstConfig.js @@ -89,7 +89,7 @@ export default { { label: '综合演练', value: 'Joint'}, { label: '大屏', value: 'BigScreen'}, { label: '琏计划', value: 'RunPlan'}, - { label: '任务录制', value: 'ScriptRecord'} + { label: '剧本录制', value: 'ScriptWrite'} ], skinCode: [ diff --git a/src/views/components/font/index.vue b/src/views/components/font/index.vue index 7c6d221bb..03259fc24 100644 --- a/src/views/components/font/index.vue +++ b/src/views/components/font/index.vue @@ -1,5 +1,5 @@ @@ -95,7 +94,7 @@ export default { editModel: { id: '', name: '', - skinCode: '', + skinCode: '01', cityCode: '' }, updtModel: { diff --git a/src/views/map/mapdraft/mapmanage/publish.vue b/src/views/map/mapdraft/mapmanage/publish.vue index 0a3ae51e0..5fb276909 100644 --- a/src/views/map/mapdraft/mapmanage/publish.vue +++ b/src/views/map/mapdraft/mapmanage/publish.vue @@ -44,7 +44,7 @@ export default { editModel: { id: '', name: '', - cityCode: '' + cityCode: '000000' } }; }, diff --git a/src/views/scriptManage/category/tree.vue b/src/views/scriptManage/category/tree.vue index 5e1d51463..3aa3cec6e 100644 --- a/src/views/scriptManage/category/tree.vue +++ b/src/views/scriptManage/category/tree.vue @@ -79,8 +79,6 @@ export default { }, mapSelectChange(id){ this.loading = true; - // debugger; - // this.$store localStore.set("script_mapId", id); this.$store.dispatch('scriptRecord/updateScriptId',id); this.getQuestPageList(id); diff --git a/src/views/scriptManage/display/tipScriptRecord.vue b/src/views/scriptManage/display/tipScriptRecord.vue index 866445866..c5244bafd 100644 --- a/src/views/scriptManage/display/tipScriptRecord.vue +++ b/src/views/scriptManage/display/tipScriptRecord.vue @@ -1,24 +1,37 @@ diff --git a/src/views/scriptManage/scriptRecord/addRole.vue b/src/views/scriptManage/scriptRecord/addRole.vue index 6f77acacb..4348ed133 100644 --- a/src/views/scriptManage/scriptRecord/addRole.vue +++ b/src/views/scriptManage/scriptRecord/addRole.vue @@ -1,6 +1,5 @@ diff --git a/src/views/scriptManage/scriptmanage/create.vue b/src/views/scriptManage/scriptmanage/create.vue deleted file mode 100644 index 98a9503c1..000000000 --- a/src/views/scriptManage/scriptmanage/create.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/scriptManage/scriptmanage/list.vue b/src/views/scriptManage/scriptmanage/list.vue deleted file mode 100644 index a9013736c..000000000 --- a/src/views/scriptManage/scriptmanage/list.vue +++ /dev/null @@ -1,173 +0,0 @@ - - -