From 354192e9537e47d5c45dc314446963a882468773 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 21 Oct 2022 16:10:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/components/menus/dialog/psl.vue | 191 ++++--- .../theme/datie_02/menus/dispatchWorkMenu.vue | 13 + .../datie_02/menus/dispatchWorkMenuBar.vue | 189 +++++++ src/jmapNew/theme/datie_02/menus/index.vue | 4 - src/jmapNew/theme/fuzhou_01/menus/index.vue | 355 ------------- src/jmapNew/theme/fuzhou_01/menus/menuBar.vue | 496 ------------------ src/scripts/cmdPlugin/Command.js | 2 +- src/scripts/cmdPlugin/CommandHandler.js | 1 + src/scripts/cmdPlugin/Handler.js | 28 +- src/views/ibp/ibpsystem/index.vue | 37 +- .../newMap/display/terminals/dispatchCmd.vue | 202 ++++++- .../display/terminals/dispatcherManage.vue | 155 ++++++ src/views/newMap/display/terminals/index.vue | 20 +- src/views/newMap/display/terminals/psl.vue | 218 ++++++++ .../newMap/display/terminals/terminalMenu.vue | 33 +- 15 files changed, 933 insertions(+), 1011 deletions(-) create mode 100644 src/jmapNew/theme/datie_02/menus/dispatchWorkMenu.vue create mode 100644 src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue delete mode 100644 src/jmapNew/theme/fuzhou_01/menus/index.vue delete mode 100644 src/jmapNew/theme/fuzhou_01/menus/menuBar.vue create mode 100644 src/views/newMap/display/terminals/dispatcherManage.vue create mode 100644 src/views/newMap/display/terminals/psl.vue diff --git a/src/jmapNew/theme/components/menus/dialog/psl.vue b/src/jmapNew/theme/components/menus/dialog/psl.vue index 98abbdd6c..4261837e8 100644 --- a/src/jmapNew/theme/components/menus/dialog/psl.vue +++ b/src/jmapNew/theme/components/menus/dialog/psl.vue @@ -1,96 +1,95 @@ - diff --git a/src/jmapNew/theme/datie_02/menus/dispatchWorkMenu.vue b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenu.vue new file mode 100644 index 000000000..06057fb64 --- /dev/null +++ b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenu.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue new file mode 100644 index 000000000..52d26d687 --- /dev/null +++ b/src/jmapNew/theme/datie_02/menus/dispatchWorkMenuBar.vue @@ -0,0 +1,189 @@ + + + diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue index c52e4a621..25e4d27f4 100644 --- a/src/jmapNew/theme/datie_02/menus/index.vue +++ b/src/jmapNew/theme/datie_02/menus/index.vue @@ -50,9 +50,6 @@
- @@ -92,7 +89,6 @@ import MenuButtonCtc from './menuButtonCtc'; import RunplanPane from './runplanPane'; import StageRunplan from './dialog/stageRunplan'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; -// import DispatcherLoger from './dispatcherLoger'; import PassiveAlarm from './passiveDialog/alarm'; import PassiveContorl from '@/jmapNew/theme/components/menus/passiveDialog/control'; import PassiveTimeout from './passiveDialog/timeout'; diff --git a/src/jmapNew/theme/fuzhou_01/menus/index.vue b/src/jmapNew/theme/fuzhou_01/menus/index.vue deleted file mode 100644 index 9ad384693..000000000 --- a/src/jmapNew/theme/fuzhou_01/menus/index.vue +++ /dev/null @@ -1,355 +0,0 @@ - - - - - diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuBar.vue b/src/jmapNew/theme/fuzhou_01/menus/menuBar.vue deleted file mode 100644 index 6933e3919..000000000 --- a/src/jmapNew/theme/fuzhou_01/menus/menuBar.vue +++ /dev/null @@ -1,496 +0,0 @@ - - - - diff --git a/src/scripts/cmdPlugin/Command.js b/src/scripts/cmdPlugin/Command.js index d63721116..2913dd77b 100644 --- a/src/scripts/cmdPlugin/Command.js +++ b/src/scripts/cmdPlugin/Command.js @@ -6,7 +6,7 @@ export default class Command { this.isError = false; this.isOver = false; } - + // 对比 参数列表 toFound(definition, wholeParam) { this.id = definition.operate; (definition.paramList || []).forEach(param => { diff --git a/src/scripts/cmdPlugin/CommandHandler.js b/src/scripts/cmdPlugin/CommandHandler.js index f1a075518..90e3d03a0 100644 --- a/src/scripts/cmdPlugin/CommandHandler.js +++ b/src/scripts/cmdPlugin/CommandHandler.js @@ -154,6 +154,7 @@ class CommandHandle { getCommand(cmdType, wholeParam) { if (cmdType) { const command = new Command(); + // 获取指令定义 const definition = this.getDefinition(cmdType); if (definition) { command.toFound(definition, wholeParam); diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js index ebae000d2..5b9b910b2 100644 --- a/src/scripts/cmdPlugin/Handler.js +++ b/src/scripts/cmdPlugin/Handler.js @@ -69,7 +69,7 @@ class Handler { } }); } - + // 获取所有参数列表params getWholeParam() { const whole = {}; (this.operations || {}).forEach(elem => { Object.assign(whole, elem.param || {}); }); @@ -121,19 +121,19 @@ class Handler { this.afterValid(operation, valid).then(()=>{ rtn.valid = valid; if (operation.cmdType && valid) { - const command = this.getCommand(operation); - if (command) { - CommandHandler.execute(command.id, command.get()).then(response => { - rtn.response = response; - resolve(rtn); - }).catch(error => { - console.error(error); - reject(error); - }); - } else { - rtn.response = '获取指令失败,暂无指令或参数传值不正确,请检查指令字典'; - reject(rtn); - } + // const command = this.getCommand(operation); + // if (command) { + CommandHandler.execute(operation.cmdType.value, this.getWholeParam()).then(response => { + rtn.response = response; + resolve(rtn); + }).catch(error => { + console.error(error); + reject(error); + }); + // } else { + // rtn.response = '获取指令失败,暂无指令或参数传值不正确,请检查指令字典'; + // reject(rtn); + // } } else { resolve(rtn); } diff --git a/src/views/ibp/ibpsystem/index.vue b/src/views/ibp/ibpsystem/index.vue index 3b242b2df..77ccae44c 100644 --- a/src/views/ibp/ibpsystem/index.vue +++ b/src/views/ibp/ibpsystem/index.vue @@ -3,8 +3,8 @@
切换 - {{ $t('global.back') }} - 退出 + +