From 7bd6013565ecd4f255a4681cac67df70ec0e9c33 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Mon, 20 Jul 2020 10:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=87=E4=BB=A4=E5=AD=97?= =?UTF-8?q?=E5=85=B8=20=E5=A4=8D=E5=88=B6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PopMenu/item.vue | 1 + src/jmapNew/theme/xian_01/menus/menuBar.vue | 2 +- .../system/commandDictionary/copyParam.vue | 105 ++++++++++++++++++ src/views/system/commandDictionary/index.vue | 20 +++- 4 files changed, 122 insertions(+), 6 deletions(-) create mode 100644 src/views/system/commandDictionary/copyParam.vue diff --git a/src/components/PopMenu/item.vue b/src/components/PopMenu/item.vue index 7e1acef42..e912d8c17 100644 --- a/src/components/PopMenu/item.vue +++ b/src/components/PopMenu/item.vue @@ -169,6 +169,7 @@ export default { .menu-item { // background: $bg; list-style: none; + min-width: 110px; } .menu-item:hover { diff --git a/src/jmapNew/theme/xian_01/menus/menuBar.vue b/src/jmapNew/theme/xian_01/menus/menuBar.vue index 187d949de..ac207902f 100644 --- a/src/jmapNew/theme/xian_01/menus/menuBar.vue +++ b/src/jmapNew/theme/xian_01/menus/menuBar.vue @@ -330,7 +330,7 @@ export default { title: this.$t('menu.menuBar.toStationControl'), click: this.turnToStationControl, operate: OperationEvent.StationControl.requestStationControl.mbar, - froce: true + // froce: true }, { title: this.$t('menu.menuBar.forcedStationControl'), diff --git a/src/views/system/commandDictionary/copyParam.vue b/src/views/system/commandDictionary/copyParam.vue new file mode 100644 index 000000000..f85bf7514 --- /dev/null +++ b/src/views/system/commandDictionary/copyParam.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/views/system/commandDictionary/index.vue b/src/views/system/commandDictionary/index.vue index e701c1ad3..25532adcb 100644 --- a/src/views/system/commandDictionary/index.vue +++ b/src/views/system/commandDictionary/index.vue @@ -2,6 +2,7 @@
+
@@ -10,11 +11,13 @@ import { createCommand, getCommandList, delCommand } from '@/api/management/dict import { getLineCodeList } from '@/api/management/mapline'; import CommandEnum from '@/scripts/cmdPlugin/CommandEnum'; import ShowCondition from './showCondition'; +import CopyParam from './copyParam'; export default { name: 'CommandDictionary', components: { - ShowCondition + ShowCondition, + CopyParam }, data() { return { @@ -23,7 +26,8 @@ export default { pagerConfig: { pageSize: 'pageSize', pageIndex: 'pageNum' - }, + }, + lineCode: '', queryForm: { labelWidth: '80px', reset: true, @@ -118,7 +122,8 @@ export default { } ], actions: [ - { text: this.$t('global.add'), handler: this.handleAdd } + { text: this.$t('global.add'), handler: this.handleAdd }, + { text: '复刻', handler: this.handleCopyAll } ] }, @@ -150,7 +155,8 @@ export default { queryFunction(params) { if (!params['lineCode']) { params['lineCode'] = ''; - } + } + this.lineCode = params['lineCode']; return getCommandList(params); }, replace(fieldValue) { @@ -205,7 +211,11 @@ export default { this.$message.error('复制指令失败!'); }); }); - }, + }, + // 复制线路到其他线路 操作 + handleCopyAll() { + this.$refs.copyParam.doShow(this.lineCode); + }, reloadTable() { this.queryList.reload(); }