From e8fb8abcf2ff39956d325ed2860a3defd6783e1c Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Mon, 17 Jan 2022 14:19:03 +0800 Subject: [PATCH] =?UTF-8?q?iscs=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iscs.js | 8 + src/views/fileManage/voiceManage/add.vue | 12 +- .../config/broadcast/centerHome.vue | 28 ++- .../system/iscsDeviceManage/batchAdd.vue | 178 ++++++++++++++++++ src/views/system/iscsDeviceManage/index.vue | 18 +- 5 files changed, 233 insertions(+), 11 deletions(-) create mode 100644 src/views/system/iscsDeviceManage/batchAdd.vue diff --git a/src/api/iscs.js b/src/api/iscs.js index 805342c3f..98c8744f7 100644 --- a/src/api/iscs.js +++ b/src/api/iscs.js @@ -109,6 +109,14 @@ export function queryIscsDeviceCod(params) { params }); } +// 批量创建ISCS设备 +export function batchCreateIscsDevcie(data) { + return request({ + url: `/api/iscsDevice/create/batch`, + method: 'post', + data + }); +} // 创建ISCS系统资源 export function createIscsResources(data) { return request({ diff --git a/src/views/fileManage/voiceManage/add.vue b/src/views/fileManage/voiceManage/add.vue index 088fa645a..595d62c5b 100644 --- a/src/views/fileManage/voiceManage/add.vue +++ b/src/views/fileManage/voiceManage/add.vue @@ -40,7 +40,7 @@ + diff --git a/src/views/system/iscsDeviceManage/index.vue b/src/views/system/iscsDeviceManage/index.vue index a2229ed14..ae1845e9c 100644 --- a/src/views/system/iscsDeviceManage/index.vue +++ b/src/views/system/iscsDeviceManage/index.vue @@ -9,6 +9,14 @@ :system-list="systemList" @reloadTable="reloadTable" /> + @@ -16,6 +24,7 @@ import { pagedIscsDevice, deleteIscsDevice } from '@/api/iscs'; import { getPublishMapListOnline } from '@/api/jmap/map'; import AddDevice from './add'; +import BatchAdd from './batchAdd'; const positionMap = { LCD: '站厅', UP_STAND: '上行站台', @@ -61,7 +70,8 @@ const systemList = [ export default { name: 'DeviceManage', components: { - AddDevice + AddDevice, + BatchAdd }, data() { return { @@ -172,7 +182,8 @@ export default { } ], actions: [ - { text: this.$t('global.add'), handler: this.createIscsDevice} + { text: this.$t('global.add'), handler: this.createIscsDevice}, + { text: '批量创建', handler: this.batchCrateIscsDevice } ] }, currentModel: {} @@ -196,6 +207,9 @@ export default { createIscsDevice() { this.$refs.addDevice.show(); }, + batchCrateIscsDevice() { + this.$refs.batchAdd.show(); + }, getMapName(mapId) { const mapInfo = this.mapList.find(elem => elem.id == mapId); return mapInfo ? mapInfo.name : '';