代码调整

This commit is contained in:
joylink_cuiweidong 2022-12-12 15:42:09 +08:00
parent f06ba54b56
commit addecd294f

View File

@ -1,5 +1,5 @@
<template> <template>
<div v-if="isShowBtn" id="menuButtons_box" class="menu menuButton" style="height: 45px;" :style="{left: point.x+'px', bottom: point.y+'px' }"> <div id="menuButtons_box" class="menu menuButton" style="height: 45px;" :style="{left: point.x+'px', bottom: point.y+'px' }">
<button :id="Signal.arrangementRoute.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor}" @click="buttonDown(Signal.arrangementRoute.button.operation, ['Signal'])"> <button :id="Signal.arrangementRoute.button.domId" class="button_box" :style="{width: width+'px', backgroundColor:buttonUpColor}" @click="buttonDown(Signal.arrangementRoute.button.operation, ['Signal'])">
<span style="color: black"> <span style="color: black">
<center><b></b><b></b></center> <center><b></b><b></b></center>
@ -172,9 +172,6 @@ export default {
Command() { Command() {
return OperationEvent.Command; return OperationEvent.Command;
}, },
isShowBtn() {
return this.$store.state.training.prdType == '01';
},
CMD() { CMD() {
return CMD; return CMD;
}, },
@ -320,7 +317,7 @@ export default {
this.commandTypeList = []; this.commandTypeList = [];
this.$store.dispatch('menuOperation/setButtonOperation', null); this.$store.dispatch('menuOperation/setButtonOperation', null);
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
Handler.clear(); // // Handler.clear(); //
} }
}); });
} }
@ -328,7 +325,7 @@ export default {
resetMbmButton() { resetMbmButton() {
this.commandTypeList = []; this.commandTypeList = [];
this.$store.dispatch('menuOperation/setButtonOperation', null); this.$store.dispatch('menuOperation/setButtonOperation', null);
Handler.clear(); // // Handler.clear(); //
}, },
// OR // OR
arrangementRouteOperation(deviceList) { arrangementRouteOperation(deviceList) {
@ -691,11 +688,6 @@ export default {
}); });
}, },
selectedChange() { selectedChange() {
//
if (this.$store.state.training.prdType != '01') {
return '';
}
const buttonOperation = this.$store.state.menuOperation.buttonOperation; const buttonOperation = this.$store.state.menuOperation.buttonOperation;
const model = this.$store.state.menuOperation.selected; // const model = this.$store.state.menuOperation.selected; //
const subType = this.$store.state.menuOperation.subType; // const subType = this.$store.state.menuOperation.subType; //
@ -743,7 +735,7 @@ export default {
} }
}, },
clearOperate() { clearOperate() {
Handler.clear(); // // Handler.clear(); //
this.deviceList = []; this.deviceList = [];
this.$store.dispatch('menuOperation/setButtonOperation', null); this.$store.dispatch('menuOperation/setButtonOperation', null);
} }