diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue new file mode 100644 index 0000000..d58d515 --- /dev/null +++ b/src/views/home/device/device/components/showPosition.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue new file mode 100644 index 0000000..d58d515 --- /dev/null +++ b/src/views/home/device/device/components/showPosition.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/src/views/home/device/device/components/statusReport.vue b/src/views/home/device/device/components/statusReport.vue new file mode 100644 index 0000000..110d749 --- /dev/null +++ b/src/views/home/device/device/components/statusReport.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue new file mode 100644 index 0000000..d58d515 --- /dev/null +++ b/src/views/home/device/device/components/showPosition.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/src/views/home/device/device/components/statusReport.vue b/src/views/home/device/device/components/statusReport.vue new file mode 100644 index 0000000..110d749 --- /dev/null +++ b/src/views/home/device/device/components/statusReport.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/views/home/device/device/index.vue b/src/views/home/device/device/index.vue index 663618b..9e7b316 100644 --- a/src/views/home/device/device/index.vue +++ b/src/views/home/device/device/index.vue @@ -11,6 +11,7 @@ import { getDictByCode } from '@/api/system/dict' import { getManufacturerListPage } from '@/api/home/device/product' import { exportFile } from '@/utils/exportUtils' +const $router = useRouter() // 表格数据 const list = ref([]) const total = ref(0) @@ -108,6 +109,16 @@ // 新建或者编辑 const addRef = ref() const editRow = (type: string, row: any) => { + if (type === 'detail') { + $router.push({ + path: `/manage/${type}`, + query: { + id: row.id, + row: JSON.stringify(row), + }, + }) + return + } addRef.value.initDialog(type, row) } // 删除 @@ -132,6 +143,19 @@ }) }) } +// 撤防 +const changeDefense = (row: any) => { + ElMessageBox.confirm( + `确定要撤防${row.devcode}设备吗?`, + '确认操作', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + }) +} // 导出列表 const exportList = () => { const loading = ElLoading.service({ @@ -202,7 +226,7 @@ diff --git a/src/api/home/device/device.ts b/src/api/home/device/device.ts index aa7dadc..e1220f7 100644 --- a/src/api/home/device/device.ts +++ b/src/api/home/device/device.ts @@ -47,3 +47,41 @@ responseType: 'blob', }) } + +// 详情 +export function getDeviceDetail(id: any) { + return request({ + url: '/system/busDevice/detail', + method: 'post', + data: { + id, + }, + }) +} + +// 数据查询 +export function getDataSearch(data: any) { + return request({ + url: '/system/busDevice/monitorData', + method: 'post', + data, + }) +} + +// 报警记录 +export function getAlarmRecord(data: any) { + return request({ + url: '/system/busDevice/alarmRecords', + method: 'post', + data, + }) +} + +// 耗电分析 +export function getElectricityAnalyse(data: any) { + return request({ + url: '/system/busDevice/cellAnalysis', + method: 'post', + data, + }) +} diff --git a/src/api/home/device/instruction.ts b/src/api/home/device/instruction.ts index bee99eb..29e3db4 100644 --- a/src/api/home/device/instruction.ts +++ b/src/api/home/device/instruction.ts @@ -3,7 +3,7 @@ */ import request from '@/api/index' -// 设备管理基础列表 +// 基础列表 export function getInstructionListPage(data: any) { return request({ url: `/system/busConfig/listPage?limit=${data.limit}&offset=${data.offset}`, diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 89fcd01..3baff06 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -323,6 +323,7 @@ } option.series = newSeries } + console.log(option.series, 'option.series') return option } // 初始化图表 diff --git a/src/router/modules/pc.ts b/src/router/modules/pc.ts index a32c37d..d9d0923 100644 --- a/src/router/modules/pc.ts +++ b/src/router/modules/pc.ts @@ -393,6 +393,19 @@ auth: '/device/manage', }, }, + { + path: '/manage/:type', + component: () => import('@/views/home/device/device/components/detail.vue'), + name: 'DeviceManageDetail', + meta: { + title: '设备详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: false, + activeMenu: '/device/manage', + auth: '/device/manage', + }, + }, // { // path: 'operation', // component: () => import('@/views/home/device/operation/index.vue'), diff --git a/src/views/home/device/device/components/addDialog.vue b/src/views/home/device/device/components/addDialog.vue index ef299f5..4c9f349 100644 --- a/src/views/home/device/device/components/addDialog.vue +++ b/src/views/home/device/device/components/addDialog.vue @@ -30,6 +30,8 @@ watchObject: '', tagNumber: '', // 安装位号 deptName: '', + lng: '', + lat: '', }) // 表单 const textMap: { [key: string]: string } = { edit: '编辑', @@ -56,6 +58,8 @@ tagNumber: '', // 安装位号 watchObject: '', deptName: '', + lng: '', + lat: '', } } @@ -196,6 +200,8 @@ dataForm.value.tagNumber = data.tagNumber dataForm.value.position = data.position dataForm.value.deptName = data.deptName + dataForm.value.lat = data.latGaode + dataForm.value.lng = data.lngGaode } @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue new file mode 100644 index 0000000..d58d515 --- /dev/null +++ b/src/views/home/device/device/components/showPosition.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/src/views/home/device/device/components/statusReport.vue b/src/views/home/device/device/components/statusReport.vue new file mode 100644 index 0000000..110d749 --- /dev/null +++ b/src/views/home/device/device/components/statusReport.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/views/home/device/device/index.vue b/src/views/home/device/device/index.vue index 663618b..9e7b316 100644 --- a/src/views/home/device/device/index.vue +++ b/src/views/home/device/device/index.vue @@ -11,6 +11,7 @@ import { getDictByCode } from '@/api/system/dict' import { getManufacturerListPage } from '@/api/home/device/product' import { exportFile } from '@/utils/exportUtils' +const $router = useRouter() // 表格数据 const list = ref([]) const total = ref(0) @@ -108,6 +109,16 @@ // 新建或者编辑 const addRef = ref() const editRow = (type: string, row: any) => { + if (type === 'detail') { + $router.push({ + path: `/manage/${type}`, + query: { + id: row.id, + row: JSON.stringify(row), + }, + }) + return + } addRef.value.initDialog(type, row) } // 删除 @@ -132,6 +143,19 @@ }) }) } +// 撤防 +const changeDefense = (row: any) => { + ElMessageBox.confirm( + `确定要撤防${row.devcode}设备吗?`, + '确认操作', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + }) +} // 导出列表 const exportList = () => { const loading = ElLoading.service({ @@ -202,7 +226,7 @@ diff --git a/src/views/home/device/instruction/components/editDialog.vue b/src/views/home/device/instruction/components/editDialog.vue index fb7109b..a263304 100644 --- a/src/views/home/device/instruction/components/editDialog.vue +++ b/src/views/home/device/instruction/components/editDialog.vue @@ -4,6 +4,7 @@ Date: 2024-07-15 --> @@ -275,7 +281,7 @@ - + diff --git a/src/views/home/device/device/components/alarmRecord.vue b/src/views/home/device/device/components/alarmRecord.vue new file mode 100644 index 0000000..687266f --- /dev/null +++ b/src/views/home/device/device/components/alarmRecord.vue @@ -0,0 +1,115 @@ + + + + diff --git a/src/views/home/device/device/components/controlRecord.vue b/src/views/home/device/device/components/controlRecord.vue new file mode 100644 index 0000000..185348e --- /dev/null +++ b/src/views/home/device/device/components/controlRecord.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/home/device/device/components/dataSearch.vue b/src/views/home/device/device/components/dataSearch.vue new file mode 100644 index 0000000..a7e37fa --- /dev/null +++ b/src/views/home/device/device/components/dataSearch.vue @@ -0,0 +1,114 @@ + + + + diff --git a/src/views/home/device/device/components/detail.vue b/src/views/home/device/device/components/detail.vue new file mode 100644 index 0000000..354da6b --- /dev/null +++ b/src/views/home/device/device/components/detail.vue @@ -0,0 +1,145 @@ + + + + + + diff --git a/src/views/home/device/device/components/detailData.vue b/src/views/home/device/device/components/detailData.vue new file mode 100644 index 0000000..764e3a5 --- /dev/null +++ b/src/views/home/device/device/components/detailData.vue @@ -0,0 +1,45 @@ + + + + diff --git a/src/views/home/device/device/components/electricityAnalyse.vue b/src/views/home/device/device/components/electricityAnalyse.vue new file mode 100644 index 0000000..06d6a5a --- /dev/null +++ b/src/views/home/device/device/components/electricityAnalyse.vue @@ -0,0 +1,129 @@ + + + + + + diff --git a/src/views/home/device/device/components/localtionForPieple.vue b/src/views/home/device/device/components/localtionForPieple.vue index d5494fe..6684c32 100644 --- a/src/views/home/device/device/components/localtionForPieple.vue +++ b/src/views/home/device/device/components/localtionForPieple.vue @@ -1,7 +1,7 @@ + + diff --git a/src/views/home/device/device/components/operationRecord.vue b/src/views/home/device/device/components/operationRecord.vue new file mode 100644 index 0000000..0280058 --- /dev/null +++ b/src/views/home/device/device/components/operationRecord.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/views/home/device/device/components/showPosition.vue b/src/views/home/device/device/components/showPosition.vue new file mode 100644 index 0000000..d58d515 --- /dev/null +++ b/src/views/home/device/device/components/showPosition.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/src/views/home/device/device/components/statusReport.vue b/src/views/home/device/device/components/statusReport.vue new file mode 100644 index 0000000..110d749 --- /dev/null +++ b/src/views/home/device/device/components/statusReport.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/views/home/device/device/index.vue b/src/views/home/device/device/index.vue index 663618b..9e7b316 100644 --- a/src/views/home/device/device/index.vue +++ b/src/views/home/device/device/index.vue @@ -11,6 +11,7 @@ import { getDictByCode } from '@/api/system/dict' import { getManufacturerListPage } from '@/api/home/device/product' import { exportFile } from '@/utils/exportUtils' +const $router = useRouter() // 表格数据 const list = ref([]) const total = ref(0) @@ -108,6 +109,16 @@ // 新建或者编辑 const addRef = ref() const editRow = (type: string, row: any) => { + if (type === 'detail') { + $router.push({ + path: `/manage/${type}`, + query: { + id: row.id, + row: JSON.stringify(row), + }, + }) + return + } addRef.value.initDialog(type, row) } // 删除 @@ -132,6 +143,19 @@ }) }) } +// 撤防 +const changeDefense = (row: any) => { + ElMessageBox.confirm( + `确定要撤防${row.devcode}设备吗?`, + '确认操作', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + }) +} // 导出列表 const exportList = () => { const loading = ElLoading.service({ @@ -202,7 +226,7 @@ diff --git a/src/views/home/device/instruction/components/editDialog.vue b/src/views/home/device/instruction/components/editDialog.vue index fb7109b..a263304 100644 --- a/src/views/home/device/instruction/components/editDialog.vue +++ b/src/views/home/device/instruction/components/editDialog.vue @@ -4,6 +4,7 @@ Date: 2024-07-15 -->