福州一号线 车辆段操作 指令调整
This commit is contained in:
parent
648d04f0b4
commit
071d88878f
@ -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)">
|
<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>
|
<span class="buttonColor">区解</span>
|
||||||
</button>
|
</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>
|
||||||
<div id="menuButton">
|
<div id="menuButton">
|
||||||
<div class="promptInfo">
|
<div class="promptInfo">
|
||||||
@ -67,6 +81,7 @@ export default {
|
|||||||
x: 130,
|
x: 130,
|
||||||
y: 0
|
y: 0
|
||||||
},
|
},
|
||||||
|
inter:null,
|
||||||
operation: '0',
|
operation: '0',
|
||||||
delayTime:'',
|
delayTime:'',
|
||||||
promptInfo:'',
|
promptInfo:'',
|
||||||
@ -74,7 +89,7 @@ export default {
|
|||||||
deviceList: [],
|
deviceList: [],
|
||||||
buttonDownColor: '#A8A8A8',
|
buttonDownColor: '#A8A8A8',
|
||||||
buttonUpColor: '#F0F0F0',
|
buttonUpColor: '#F0F0F0',
|
||||||
width: 75
|
width: 85
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -90,6 +105,9 @@ export default {
|
|||||||
Section() {
|
Section() {
|
||||||
return OperationEvent.Section;
|
return OperationEvent.Section;
|
||||||
},
|
},
|
||||||
|
Station() {
|
||||||
|
return OperationEvent.Station;
|
||||||
|
},
|
||||||
isShowBtn() {
|
isShowBtn() {
|
||||||
return this.$store.state.training.prdType == '09';
|
return this.$store.state.training.prdType == '09';
|
||||||
}
|
}
|
||||||
@ -106,7 +124,7 @@ export default {
|
|||||||
updateButtonShow(val, old) {
|
updateButtonShow(val, old) {
|
||||||
if (old) {
|
if (old) {
|
||||||
// 恢复旧按钮显示
|
// 恢复旧按钮显示
|
||||||
this.promptInfo = '';
|
// this.promptInfo = '';
|
||||||
const domId = OperationHandler.getDomIdByOperation(old);
|
const domId = OperationHandler.getDomIdByOperation(old);
|
||||||
const dom = document.getElementById(domId);
|
const dom = document.getElementById(domId);
|
||||||
if (dom) {
|
if (dom) {
|
||||||
@ -119,7 +137,7 @@ export default {
|
|||||||
const domId = OperationHandler.getDomIdByOperation(val);
|
const domId = OperationHandler.getDomIdByOperation(val);
|
||||||
const dom = document.getElementById(domId);
|
const dom = document.getElementById(domId);
|
||||||
if (dom) {
|
if (dom) {
|
||||||
this.promptInfo = dom.innerText;
|
// this.promptInfo = dom.innerText;
|
||||||
dom.disabled = true;
|
dom.disabled = true;
|
||||||
dom.style.backgroundColor = this.buttonDownColor;
|
dom.style.backgroundColor = this.buttonDownColor;
|
||||||
}
|
}
|
||||||
@ -173,14 +191,12 @@ export default {
|
|||||||
operation: operation
|
operation: operation
|
||||||
};
|
};
|
||||||
|
|
||||||
// 以下 会弹出密码框 (总人解,区故解,道岔解封,解封按钮,总取消,引导总锁) 待修改
|
// 以下 会弹出密码框 (区故解,人解列车进路 (总人解),引导总锁,上电解锁) 待修改
|
||||||
const operationList = [
|
const operationList = [
|
||||||
// this.Signal.humanTrainRoute.button.operation,
|
this.Section.fault.button.operation,
|
||||||
this.Section.fault.button.operation
|
this.Signal.humanTrainRoute.button.operation,
|
||||||
// this.Switch.unlock.button.operation,
|
this.Station.guideLock.button.operation,
|
||||||
// this.MixinCommand.unblock.button.operation,
|
this.Station.powerUnLock.button.operation
|
||||||
// this.Station.guideLock.button.operation
|
|
||||||
// // this.MixinCommand.totalCancel.button.operation
|
|
||||||
];
|
];
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
|
@ -2641,6 +2641,10 @@ export const OperationEvent = {
|
|||||||
stop: {
|
stop: {
|
||||||
operation: '6035',
|
operation: '6035',
|
||||||
domId: '_Tips-Station-PowerUnLock-Stop'
|
domId: '_Tips-Station-PowerUnLock-Stop'
|
||||||
|
},
|
||||||
|
button:{
|
||||||
|
operation: '6036',
|
||||||
|
domId: '_Tips-Station-PowerUnLock-Button'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 执行关键操作测试
|
// 执行关键操作测试
|
||||||
|
Loading…
Reference in New Issue
Block a user