diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Tools/alarmDialog.vue b/src/layouts/components/Tools/alarmDialog.vue deleted file mode 100644 index 0d8c350..0000000 --- a/src/layouts/components/Tools/alarmDialog.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Tools/alarmDialog.vue b/src/layouts/components/Tools/alarmDialog.vue deleted file mode 100644 index 0d8c350..0000000 --- a/src/layouts/components/Tools/alarmDialog.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - diff --git a/src/layouts/components/Tools/alarmList.vue b/src/layouts/components/Tools/alarmList.vue deleted file mode 100644 index e1ba9fd..0000000 --- a/src/layouts/components/Tools/alarmList.vue +++ /dev/null @@ -1,449 +0,0 @@ - - - - - diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Tools/alarmDialog.vue b/src/layouts/components/Tools/alarmDialog.vue deleted file mode 100644 index 0d8c350..0000000 --- a/src/layouts/components/Tools/alarmDialog.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - diff --git a/src/layouts/components/Tools/alarmList.vue b/src/layouts/components/Tools/alarmList.vue deleted file mode 100644 index e1ba9fd..0000000 --- a/src/layouts/components/Tools/alarmList.vue +++ /dev/null @@ -1,449 +0,0 @@ - - - - - diff --git a/src/main.ts b/src/main.ts index eff833e..d1d463c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,6 +31,16 @@ app.config.globalProperties.hasPerm = hasPermission app.config.globalProperties.buttonPerm = buttonPerm app.config.globalProperties.dayjs = dayjs + // 支持下发配置的设备类型 + app.config.globalProperties.support = result.data.support + // 支持配置参数-重传次数的设备类型 + app.config.globalProperties.retryTimes = result.data.retryTimes + // 支持配置参数-最大尝试次数的设备类型 + app.config.globalProperties.attemptsMax = result.data.attemptsMax + // 支持配置参数-采集间隔的设备类型 + app.config.globalProperties.collectInterval = result.data.collectInterval + // 支持配置参数-上传周期的设备类型 + app.config.globalProperties.uploadPeriod = result.data.uploadPeriod // app.use(print) app.use(ElementPlus) app.use(pinia) diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Tools/alarmDialog.vue b/src/layouts/components/Tools/alarmDialog.vue deleted file mode 100644 index 0d8c350..0000000 --- a/src/layouts/components/Tools/alarmDialog.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - diff --git a/src/layouts/components/Tools/alarmList.vue b/src/layouts/components/Tools/alarmList.vue deleted file mode 100644 index e1ba9fd..0000000 --- a/src/layouts/components/Tools/alarmList.vue +++ /dev/null @@ -1,449 +0,0 @@ - - - - - diff --git a/src/main.ts b/src/main.ts index eff833e..d1d463c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,6 +31,16 @@ app.config.globalProperties.hasPerm = hasPermission app.config.globalProperties.buttonPerm = buttonPerm app.config.globalProperties.dayjs = dayjs + // 支持下发配置的设备类型 + app.config.globalProperties.support = result.data.support + // 支持配置参数-重传次数的设备类型 + app.config.globalProperties.retryTimes = result.data.retryTimes + // 支持配置参数-最大尝试次数的设备类型 + app.config.globalProperties.attemptsMax = result.data.attemptsMax + // 支持配置参数-采集间隔的设备类型 + app.config.globalProperties.collectInterval = result.data.collectInterval + // 支持配置参数-上传周期的设备类型 + app.config.globalProperties.uploadPeriod = result.data.uploadPeriod // app.use(print) app.use(ElementPlus) app.use(pinia) diff --git a/src/views/basic/device/addDeviceDialog.vue b/src/views/basic/device/addDeviceDialog.vue index efd2bf7..ad121ec 100644 --- a/src/views/basic/device/addDeviceDialog.vue +++ b/src/views/basic/device/addDeviceDialog.vue @@ -8,6 +8,7 @@ import { getProductListPage } from '@/api/basic/product' import { getGroupListPage } from '@/api/basic/group' import { getDictByCode } from '@/api/system/dict' +import $bus from '@/utils/eventBus' const emit = defineEmits(['recordSaved']) const $props = defineProps({ needGroup: { @@ -86,7 +87,7 @@ if (res.code === 200) { // 提示保存成功 ElMessage.success('保存成功') - + $bus.emit('refresh-devicelist') emit('recordSaved') resetForm() } diff --git a/public/config/config.json b/public/config/config.json index fbe695a..e13dd58 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,5 +1,41 @@ { - "title":"物联网设备管理平台", + "title": "物联网设备管理平台", "english": "IoT device management platform", - "baseUrl": "http://111.198.10.15:11608" + "baseUrl": "http://111.198.10.15:11608", + "support": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "retryTimes": [ + "1", + "2", + "3", + "4", + "5", + "32" + ], + "attemptsMax": [ + "1", + "2", + "3", + "5", + "4", + "32" + ], + "collectInterval": [ + "3", + "4", + "5", + "32" + ], + "uploadPeriod": [ + "3", + "4", + "5", + "32" + ] } diff --git a/src/api/basic/device.ts b/src/api/basic/device.ts index de34630..78227cd 100644 --- a/src/api/basic/device.ts +++ b/src/api/basic/device.ts @@ -82,3 +82,11 @@ }) } +// 批量下发配置 +export function batchConfig(data: object) { + return request({ + url: '/bus/config/addBatchConfig', + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Tools/alarmDialog.vue b/src/layouts/components/Tools/alarmDialog.vue deleted file mode 100644 index 0d8c350..0000000 --- a/src/layouts/components/Tools/alarmDialog.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - - - - - - diff --git a/src/layouts/components/Tools/alarmList.vue b/src/layouts/components/Tools/alarmList.vue deleted file mode 100644 index e1ba9fd..0000000 --- a/src/layouts/components/Tools/alarmList.vue +++ /dev/null @@ -1,449 +0,0 @@ - - - - - diff --git a/src/main.ts b/src/main.ts index eff833e..d1d463c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,6 +31,16 @@ app.config.globalProperties.hasPerm = hasPermission app.config.globalProperties.buttonPerm = buttonPerm app.config.globalProperties.dayjs = dayjs + // 支持下发配置的设备类型 + app.config.globalProperties.support = result.data.support + // 支持配置参数-重传次数的设备类型 + app.config.globalProperties.retryTimes = result.data.retryTimes + // 支持配置参数-最大尝试次数的设备类型 + app.config.globalProperties.attemptsMax = result.data.attemptsMax + // 支持配置参数-采集间隔的设备类型 + app.config.globalProperties.collectInterval = result.data.collectInterval + // 支持配置参数-上传周期的设备类型 + app.config.globalProperties.uploadPeriod = result.data.uploadPeriod // app.use(print) app.use(ElementPlus) app.use(pinia) diff --git a/src/views/basic/device/addDeviceDialog.vue b/src/views/basic/device/addDeviceDialog.vue index efd2bf7..ad121ec 100644 --- a/src/views/basic/device/addDeviceDialog.vue +++ b/src/views/basic/device/addDeviceDialog.vue @@ -8,6 +8,7 @@ import { getProductListPage } from '@/api/basic/product' import { getGroupListPage } from '@/api/basic/group' import { getDictByCode } from '@/api/system/dict' +import $bus from '@/utils/eventBus' const emit = defineEmits(['recordSaved']) const $props = defineProps({ needGroup: { @@ -86,7 +87,7 @@ if (res.code === 200) { // 提示保存成功 ElMessage.success('保存成功') - + $bus.emit('refresh-devicelist') emit('recordSaved') resetForm() } diff --git a/src/views/basic/device/batchconfig.vue b/src/views/basic/device/batchconfig.vue index e1aa6e1..3d6814f 100644 --- a/src/views/basic/device/batchconfig.vue +++ b/src/views/basic/device/batchconfig.vue @@ -6,6 +6,8 @@