合并代码

This commit is contained in:
fan 2020-08-12 11:04:04 +08:00
commit 0348d143b5
8 changed files with 39 additions and 10 deletions

View File

@ -141,7 +141,7 @@ class SkinCode extends defaultStyle {
}, },
lamp: { lamp: {
bgShow: false, // 是否被选中 bgShow: false, // 是否被选中
guidName: 'double', // 默认引导类型 guidName: 'defult', // 默认引导类型
stopWidth: 2, // 禁止线宽度 stopWidth: 2, // 禁止线宽度
borderWidth: 1, // 信号灯边框线宽度 borderWidth: 1, // 信号灯边框线宽度
borderColor: '#3149C3', // 信号灯边框线颜色 borderColor: '#3149C3', // 信号灯边框线颜色

View File

@ -191,6 +191,8 @@ export default {
return '区间自动扣车'; return '区间自动扣车';
} else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) { } else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) {
return '区间取消扣车'; return '区间取消扣车';
} else if (this.operation == OperationEvent.StationStand.cancelDetainTrainForce.menu.operation) {
return '强制取消扣车';
} }
return ''; return '';
} }
@ -311,6 +313,9 @@ export default {
} else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) { } else if (this.operation == OperationEvent.StationStand.cancelDetainTrainAuto.menu.operation) {
/** 取消区间自动扣车*/ /** 取消区间自动扣车*/
this.cancelDetainTrainAuto(); this.cancelDetainTrainAuto();
} else if (this.operation == OperationEvent.StationStand.cancelDetainTrainForce.menu.operation) {
/** 强制取消扣车*/
this.cancelDetainTrainForce();
} }
}, },
setDetainTrainAuto() { // setDetainTrainAuto() { //
@ -331,6 +336,10 @@ export default {
earlyDeparture() { earlyDeparture() {
this.sendCommand(menuOperate.StationStand.earlyDeparture); this.sendCommand(menuOperate.StationStand.earlyDeparture);
}, },
//
cancelDetainTrainForce() {
this.sendCommand(menuOperate.StationStand.cancelDetainTrainForce);
},
sendCommand(operate, param) { sendCommand(operate, param) {
this.loading = true; this.loading = true;
commitOperate(operate, param, 2).then(({valid})=>{ commitOperate(operate, param, 2).then(({valid})=>{

View File

@ -134,7 +134,7 @@ export default {
}, },
speedList() { speedList() {
const list = [{ name: '不限速', value: '-1' }]; const list = [{ name: '不限速', value: '-1' }];
for (var i = 0; i * this.speedSpace <= this.maxSpeed; i++) { for (var i = 1; i * this.speedSpace <= this.maxSpeed; i++) {
const speed = String(i * this.speedSpace); const speed = String(i * this.speedSpace);
list.push({ name: speed, value: speed }); list.push({ name: speed, value: speed });
} }
@ -382,15 +382,15 @@ export default {
} else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) { } else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) {
/** 区段取消限速*/ /** 区段取消限速*/
operate.operation = OperationEvent.Section.cancelSpeed.order.operation; operate.operation = OperationEvent.Section.cancelSpeed.order.operation;
operate.message = `在【${this.name}】区段,区段取消限速${this.speed}km/h,确认下达吗?`; operate.message = `在【${this.name}】区段,区段取消限速,确认下达吗?`;
} else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) { } else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) {
/** 道岔设置限速*/ /** 道岔设置限速*/
operate.operation = OperationEvent.Switch.setSpeed.order.operation; operate.operation = OperationEvent.Switch.setSpeed.order.operation;
operate.message = `在【${this.name}】区段,道岔设置限速${this.speed}km/h确认下达吗`; operate.message = `在【${this.name}】区段,道岔设置限速${this.speed}km/h确认下达吗`;
} else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) { } else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) {
/** 区段取消限速*/ /** 道岔区段取消限速*/
operate.operation = OperationEvent.Switch.cancelSpeed.order.operation; operate.operation = OperationEvent.Switch.cancelSpeed.order.operation;
operate.message = `在【${this.name}】区段,道岔取消限速${this.speed}km/h,确认下达吗?`; operate.message = `在【${this.name}】区段,道岔区段取消限速,确认下达吗?`;
} }
this.setMessage('请点击“确认1”按钮确认命令'); this.setMessage('请点击“确认1”按钮确认命令');

View File

@ -71,6 +71,11 @@ export default {
handler: this.cancelSpeed, handler: this.cancelSpeed,
cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED cmdType:CMD.LimitControl.CMD_CANCEL_ALL_LIMIT_SPEED
} }
// {
// label: '',
// handler: this.fault,
// cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK
// }
], ],
Center: [ Center: [
{ {

View File

@ -73,6 +73,11 @@ export default {
handler: this.cancelDetainTrainAll, handler: this.cancelDetainTrainAll,
cmdType:CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN cmdType:CMD.Stand.CMD_STAND_WHOLE_LINE_CANCEL_HOLD_TRAIN
}, },
{
label: '强制取消扣车',
handler: this.cancelDetainTrainForce,
cmdType: CMD.Stand.CMD_STAND_FORCE_CANCEL_HOLD_TRAIN
},
{ {
label: '设置提前发车', label: '设置提前发车',
handler: this.earlyDeparture, handler: this.earlyDeparture,
@ -227,6 +232,14 @@ export default {
} }
}); });
}, },
//
cancelDetainTrainForce() {
commitOperate(menuOperate.StationStand.cancelDetainTrainForce, { standCode: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.standControl.doShow(operate, this.selected);
}
});
},
// //
setJumpStop() { setJumpStop() {
commitOperate(menuOperate.StationStand.setJumpStop, {standCode:this.selected.code}, 0).then(({valid, operate})=>{ commitOperate(menuOperate.StationStand.setJumpStop, {standCode:this.selected.code}, 0).then(({valid, operate})=>{

View File

@ -55,7 +55,6 @@ export default {
data() { data() {
return { return {
chatContentList:[], chatContentList:[],
coversition:{},
currentAudioList:[], currentAudioList:[],
currentAudioIndex:0, currentAudioIndex:0,
isPlay:false, isPlay:false,
@ -93,8 +92,6 @@ export default {
} }
}, },
mounted() { mounted() {
// this.coversition = this.currentCoversition;
// this.inintData();
}, },
methods:{ methods:{
scrollTop() { scrollTop() {

View File

@ -389,7 +389,7 @@ export default {
}, },
// prdTyperole // prdTyperole
setSimulationPrdType(deviceCode) { setSimulationPrdType(deviceCode) {
// Admin Dispatcher STATION_SUPERVISOR Audience Driver MAINTAINER IBP:IBP // Dispatcher STATION_SUPERVISOR Audience Driver MAINTAINER
switch (this.userRole) { switch (this.userRole) {
case 'DISPATCHER': case 'DISPATCHER':
this.$store.dispatch('training/setPrdType', '02'); this.$store.dispatch('training/setPrdType', '02');

View File

@ -603,7 +603,12 @@ export default {
models = [...models, ...arr]; models = [...models, ...arr];
} else { } else {
const sectionModel = this.$store.getters['map/getDeviceByCode'](model.parentCode); const sectionModel = this.$store.getters['map/getDeviceByCode'](model.parentCode);
const arr = this.setLogicOffset(sectionModel, models); let arr = [];
if (sectionModel) {
arr = this.setLogicOffset(sectionModel, models);
} else {
arr = this.setLogicOffset(model, models);
}
models = [...models, ...arr]; models = [...models, ...arr];
} }