diff --git a/src/i18n/langs/en/publish.js b/src/i18n/langs/en/publish.js index 6ddb19a1a..e5aa5a974 100644 --- a/src/i18n/langs/en/publish.js +++ b/src/i18n/langs/en/publish.js @@ -63,7 +63,7 @@ export default { examRuleMaking: 'Exam Rule Making', testName: 'Test name', inputTestName: 'Please input test name', - testScope: 'Test scope', + testScope: 'Attribution course', selectTestScope: 'Please select test scope', testDuration: 'duration', testDate: 'Test time', diff --git a/src/i18n/langs/zh/publish.js b/src/i18n/langs/zh/publish.js index 62df46886..98d7d99f5 100644 --- a/src/i18n/langs/zh/publish.js +++ b/src/i18n/langs/zh/publish.js @@ -65,7 +65,7 @@ export default { examRuleMaking: '考试规则制定', testName: '试卷名称', inputTestName: '请填写试卷名称', - testScope: '试题范围', + testScope: '归属课程', selectTestScope: '请选择试题范围', testDuration: '时长', testDate: '考试时间', diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index 565d818ce..a666836e8 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -84,7 +84,9 @@ export default { oldClickObj: null, // 上一次点击对象 route: null, // 进路对象 centralizedStationList: new Array(15).fill({}), - ciStationParamList: [] + ciStationParamList: [], + startVirtual: false, + endVirtual: false }; }, computed: { @@ -170,8 +172,25 @@ export default { { name: '引导进路', cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE, operate: OperationEvent.Signal.guide.menu, show: false }, { name: '取消引导', cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE, operate: OperationEvent.Signal.humanTrainRoute.menu, show: false } ]; - } else if (this.$store.state.training.prdType === '02' ) { - return; + } else if (this.$store.state.training.prdType === '02' && this.startVirtual) { + return [ + { name: 'ATP进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menu, show: false }, + { name: '取消ATP', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menu, show: false } + ]; + } else if (this.$store.state.training.prdType === '02' && this.endVirtual) { + return [ + { name: '联锁进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menu, show: false }, + { name: '取消联锁', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menu, show: false }, + { name: '取消引导', cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE, operate: OperationEvent.Signal.humanTrainRoute.menu, show: false }, + { name: 'ATP进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menu, show: false }, + { name: '取消ATP', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menu, show: false } + ]; + } else if (this.$store.state.training.prdType === '02') { + return [ + { name: '联锁进路', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menu, show: false }, + { name: '取消联锁', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menu, show: false }, + { name: '取消引导', cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE, operate: OperationEvent.Signal.humanTrainRoute.menu, show: false } + ]; } } }, @@ -203,12 +222,12 @@ export default { case 'Section': this.handleSectionMenu(); break; - case 'Station': - this.handleStationMenu(); - this.deviceHighLight(this.oldDevice, false); - this.deviceHighLight(this.selected, true); - this.oldDevice = this.selected; - break; + // case 'Station': + // this.handleStationMenu(); + // this.deviceHighLight(this.oldDevice, false); + // this.deviceHighLight(this.selected, true); + // this.oldDevice = this.selected; + // break; } } }).catch((error) => { @@ -329,7 +348,8 @@ export default { if (item.startSignalCode == this.oldClickObj.code && item.endSignalCode == this.selected.code) { const startSignal = this.$store.getters['map/getDeviceByCode'](item.startSignalCode); const endSignal = this.$store.getters['map/getDeviceByCode'](item.endSignalCode); - console.log(startSignal, endSignal); + this.startVirtual = startSignal.virtual; + this.endVirtual = endSignal.virtual; this.route = item; } }); diff --git a/src/views/newMap/displayNew/demon/addQuest.vue b/src/views/newMap/displayNew/demon/addQuest.vue index 0c7062345..778b7ba7b 100644 --- a/src/views/newMap/displayNew/demon/addQuest.vue +++ b/src/views/newMap/displayNew/demon/addQuest.vue @@ -30,13 +30,13 @@
- + @@ -82,7 +82,7 @@ export default { }, row: {}, form: { - role: '' + type: '' }, memberList: [], mapLocation:null, @@ -229,8 +229,8 @@ export default { }, confirm() { - const roleName = this.memberList.find(elem=>{ return elem.id == this.form.role; }); - this.$emit('selectQuest', this.row, this.form.role, this.mapLocation, roleName.role); + const roleName = this.memberList.find(elem=>{ return elem.id == this.form.type; }); + this.$emit('selectQuest', this.row, this.form.type, this.mapLocation, roleName.type); this.doClose(); this.roleDoClose(); }, @@ -260,7 +260,7 @@ export default { }, handleName(item) { - return this.roleConfig[item.role] ? this.roleConfig[item.role] : '' + (item.name ? item.name : ''); + return this.roleConfig[item.type] ? this.roleConfig[item.type] : '' + (item.name ? item.name : ''); } } }; diff --git a/src/views/newMap/newMapdraft/mapoperate/espDraft.vue b/src/views/newMap/newMapdraft/mapoperate/espDraft.vue index b85992e8a..743f1a394 100644 --- a/src/views/newMap/newMapdraft/mapoperate/espDraft.vue +++ b/src/views/newMap/newMapdraft/mapoperate/espDraft.vue @@ -128,7 +128,7 @@ export default { }, hover(field) { this.field = field === this.field ? '' : field; - this.$emit('standStationCode', this.field); + this.$emit('espCode', this.field); }, deviceSelect(selected) { if (selected && selected._type.toUpperCase() === 'Esp'.toUpperCase()) { @@ -140,7 +140,7 @@ export default { this.addModel.standCode = selected.code; this.activeName = 'second'; this.field = ''; - this.$emit('standStationCode', ''); + this.$emit('espCode', ''); } }, hasPSD(data) { diff --git a/src/views/newMap/newMapdraft/mapoperate/index.vue b/src/views/newMap/newMapdraft/mapoperate/index.vue index 6e8fc444c..5f52b4ff6 100644 --- a/src/views/newMap/newMapdraft/mapoperate/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/index.vue @@ -21,183 +21,24 @@ 绘图显隐
- - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -