福州一号线 车辆段操作 指令调整

This commit is contained in:
joylink_cuiweidong 2021-09-06 17:20:48 +08:00
parent 648d04f0b4
commit 071d88878f
2 changed files with 30 additions and 10 deletions

View File

@ -32,6 +32,20 @@
<button :id="Section.fault.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor,color:'#DA2D29'}" @click="buttonDown(Section.fault.button.operation)">
<span class="buttonColor">区解</span>
</button>
<!-- 引导总锁暂时 -->
<button :id="Station.guideLock.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor,color:'#DA2D29'}" @click="buttonDown(Station.guideLock.button.operation)">
<span class="buttonColor">总锁</span>
</button>
<!-- 人解列车进路 (总人解) -->
<button :id="Signal.humanTrainRoute.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor,color:'#DA2D29'}" @click="buttonDown(Signal.humanTrainRoute.button.operation)">
<span class="buttonColor">人解</span>
</button>
<button :id="Station.powerUnLock.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor,color:'#DA2D29'}" @click="buttonDown(Station.powerUnLock.button.operation)">
<span class="buttonColor">上电解锁</span>
</button>
<!-- <button :id="Section.fault.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor,color:'#DA2D29'}" @click="buttonDown(Section.fault.button.operation)">
<span class="buttonColor">分路不良</span>
</button> -->
</div>
<div id="menuButton">
<div class="promptInfo">
@ -67,6 +81,7 @@ export default {
x: 130,
y: 0
},
inter:null,
operation: '0',
delayTime:'',
promptInfo:'',
@ -74,7 +89,7 @@ export default {
deviceList: [],
buttonDownColor: '#A8A8A8',
buttonUpColor: '#F0F0F0',
width: 75
width: 85
};
},
computed: {
@ -90,6 +105,9 @@ export default {
Section() {
return OperationEvent.Section;
},
Station() {
return OperationEvent.Station;
},
isShowBtn() {
return this.$store.state.training.prdType == '09';
}
@ -106,7 +124,7 @@ export default {
updateButtonShow(val, old) {
if (old) {
//
this.promptInfo = '';
// this.promptInfo = '';
const domId = OperationHandler.getDomIdByOperation(old);
const dom = document.getElementById(domId);
if (dom) {
@ -119,7 +137,7 @@ export default {
const domId = OperationHandler.getDomIdByOperation(val);
const dom = document.getElementById(domId);
if (dom) {
this.promptInfo = dom.innerText;
// this.promptInfo = dom.innerText;
dom.disabled = true;
dom.style.backgroundColor = this.buttonDownColor;
}
@ -173,14 +191,12 @@ export default {
operation: operation
};
//
// ()
const operationList = [
// this.Signal.humanTrainRoute.button.operation,
this.Section.fault.button.operation
// this.Switch.unlock.button.operation,
// this.MixinCommand.unblock.button.operation,
// this.Station.guideLock.button.operation
// // this.MixinCommand.totalCancel.button.operation
this.Section.fault.button.operation,
this.Signal.humanTrainRoute.button.operation,
this.Station.guideLock.button.operation,
this.Station.powerUnLock.button.operation
];
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {

View File

@ -2641,6 +2641,10 @@ export const OperationEvent = {
stop: {
operation: '6035',
domId: '_Tips-Station-PowerUnLock-Stop'
},
button:{
operation: '6036',
domId: '_Tips-Station-PowerUnLock-Button'
}
},
// 执行关键操作测试