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') }} - 退出 + +