diff --git a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue index de5a2fb4d..6cbd3cbc2 100644 --- a/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue +++ b/src/jmapNew/theme/ningbo_01/menus/dialog/stationControl.vue @@ -80,30 +80,20 @@ export default { return this.dialogShow ? OperationEvent.Command.cancel.menu.domId : ''; }, domIdChoose() { - if (this.dialogShow) { - if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) { - return OperationEvent.StationControl.requestCentralControl.choose.domId; - } else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) { - return OperationEvent.StationControl.requestStationControl.choose.domId; - } else { - return ''; - } - } else { - return ''; + if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) { + return OperationEvent.StationControl.requestCentralControl.choose.domId; + } else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) { + return OperationEvent.StationControl.requestStationControl.choose.domId; } + return ''; }, domIdConfirm() { - if (this.dialogShow) { - if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) { - return OperationEvent.StationControl.requestCentralControl.confirm.domId; - } else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) { - return OperationEvent.StationControl.requestStationControl.confirm.domId; - } else { - return ''; - } - } else { - return ''; + if (this.operation == OperationEvent.StationControl.requestCentralControl.menu.operation) { + return OperationEvent.StationControl.requestCentralControl.confirm.domId; + } else if (this.operation == OperationEvent.StationControl.requestStationControl.menu.operation) { + return OperationEvent.StationControl.requestStationControl.confirm.domId; } + return ''; }, title() { return '站遥控转换'; @@ -298,10 +288,10 @@ export default { if (valid) { this.doClose(); } - }).catch((error) => { + }).catch(() => { this.loading = false; this.doClose(); - this.$refs.noticeInfo.doShow(error.message); + this.$refs.noticeInfo.doShow(); }); } }, diff --git a/src/views/newMap/newMapdraft/mapoperate/signal/index.vue b/src/views/newMap/newMapdraft/mapoperate/signal/index.vue index fbf67104b..8d67934ed 100644 --- a/src/views/newMap/newMapdraft/mapoperate/signal/index.vue +++ b/src/views/newMap/newMapdraft/mapoperate/signal/index.vue @@ -66,6 +66,25 @@