Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly
This commit is contained in:
commit
058838c39f
@ -2,7 +2,7 @@
|
||||
<div class="chengdou-01__system request_box">
|
||||
<div :id="domIdRequestBar" class="title-box">
|
||||
<div class="title-name">操作请求堆栈</div>
|
||||
<div class="icon" :class="{'is-active': unfold}" @click="unflodDiv">
|
||||
<div :id="unfold ? domIdConfirm : ''" class="icon" :class="{'is-active': unfold}" @click="unflodDiv">
|
||||
<i class="el-icon-arrow-down" />
|
||||
</div>
|
||||
</div>
|
||||
@ -21,7 +21,7 @@
|
||||
</el-row>
|
||||
<el-row justify="center" class="button-group">
|
||||
<el-col :span="8" class="button-bottom-left">
|
||||
<el-button :id="domIdConfirm" size="mini" style="float: left;" :loading="loading" :disabled="commitDisabled" @click="commit">发送请求</el-button>
|
||||
<el-button :id="unfold ? '' : domIdConfirm" size="mini" style="float: left;" :loading="loading" :disabled="commitDisabled" @click="commit">发送请求</el-button>
|
||||
</el-col>
|
||||
<el-col :span="8" :offset="8" class="button-bottom-right">
|
||||
<el-button :id="domIdCancel" size="mini" style="float: right;" @click="cancel">取消请求</el-button>
|
||||
@ -90,10 +90,9 @@ export default {
|
||||
methods: {
|
||||
unflodDiv() {
|
||||
this.unfold = !this.unfold;
|
||||
const operate = {
|
||||
operation: OperationEvent.Command.commandChengDu1.requestBar.operation
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate);
|
||||
setTimeout(() => {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
}, 300);
|
||||
},
|
||||
clickEvent(row, event, column) {
|
||||
this.row = row;
|
||||
|
@ -215,9 +215,27 @@ export default {
|
||||
watch: {
|
||||
'$store.state.menuOperation.menuCount': function (val) {
|
||||
if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Signal) && !this.buttonOperation) {
|
||||
this.doShow(this.$store.state.menuOperation.menuPosition);
|
||||
const operate = {
|
||||
code: `${this.selected.code}`,
|
||||
userOperationType: 'rightClick',
|
||||
operation: OperationEvent.Command.commandRight.right.operation
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.doShow(this.$store.state.menuOperation.menuPosition);
|
||||
}
|
||||
});
|
||||
} else if (this.selected && this.selected._type === 'Signal' && this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Enabled) && !this.buttonOperation) {
|
||||
this.doEnabledShow(this.$store.state.menuOperation.menuPosition);
|
||||
const operate = {
|
||||
code: `${this.selected.code}`,
|
||||
userOperationType: 'rightClick',
|
||||
operation: OperationEvent.Command.commandRight.right.operation
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.doEnabledShow(this.$store.state.menuOperation.menuPosition);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.doClose();
|
||||
}
|
||||
@ -346,8 +364,6 @@ export default {
|
||||
param: step.param
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.$refs.noticeInfo.doShow();
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow();
|
||||
|
Loading…
Reference in New Issue
Block a user