diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a5c8ec3..00994da 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -5,7 +5,9 @@ --> + + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a5c8ec3..00994da 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -5,7 +5,9 @@ --> + + diff --git a/src/components/map/infoWindow2.vue b/src/components/map/infoWindow2.vue new file mode 100644 index 0000000..407e288 --- /dev/null +++ b/src/components/map/infoWindow2.vue @@ -0,0 +1,80 @@ + + + + + + + + {{ info?.stationName }} + + + x + + + + 光伏挂载节点 : {{ info?.nodeId }} + + + 发电机组有功 : {{ info?.pg }} 发电机组无功 : {{ info?.qg }} + + + 碳排强度 : {{ info?.strength }} + + + + + diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a5c8ec3..00994da 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -5,7 +5,9 @@ --> + + diff --git a/src/components/map/infoWindow2.vue b/src/components/map/infoWindow2.vue new file mode 100644 index 0000000..407e288 --- /dev/null +++ b/src/components/map/infoWindow2.vue @@ -0,0 +1,80 @@ + + + + + + + + {{ info?.stationName }} + + + x + + + + 光伏挂载节点 : {{ info?.nodeId }} + + + 发电机组有功 : {{ info?.pg }} 发电机组无功 : {{ info?.qg }} + + + 碳排强度 : {{ info?.strength }} + + + + + diff --git a/src/static/1.png b/src/static/1.png new file mode 100644 index 0000000..9dca264 --- /dev/null +++ b/src/static/1.png Binary files differ diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a5c8ec3..00994da 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -5,7 +5,9 @@ --> + + diff --git a/src/components/map/infoWindow2.vue b/src/components/map/infoWindow2.vue new file mode 100644 index 0000000..407e288 --- /dev/null +++ b/src/components/map/infoWindow2.vue @@ -0,0 +1,80 @@ + + + + + + + + {{ info?.stationName }} + + + x + + + + 光伏挂载节点 : {{ info?.nodeId }} + + + 发电机组有功 : {{ info?.pg }} 发电机组无功 : {{ info?.qg }} + + + 碳排强度 : {{ info?.strength }} + + + + + diff --git a/src/static/1.png b/src/static/1.png new file mode 100644 index 0000000..9dca264 --- /dev/null +++ b/src/static/1.png Binary files differ diff --git a/src/static/2.png b/src/static/2.png new file mode 100644 index 0000000..0eb5760 --- /dev/null +++ b/src/static/2.png Binary files differ diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 4a6cf27..0af6bf9 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -110,13 +110,43 @@ method: 'post', }) } -// 配电网节点查询 +// 配电网节点查询 / 母线参数 export function electricityNode(id: any) { return request({ url: `/electricityNode/list?electricityId=${id}`, method: 'get', }) } +// 母线参数新增 +export function electricityNodeAdd(data: object) { + return request({ + url: '/electricityNode/add', + method: 'post', + data, + }) +} +// 母线参数修改 +export function electricityNodeUpdate(data: object) { + return request({ + url: '/electricityNode/update', + method: 'post', + data, + }) +} +// 母线参数删除 +export function electricityNodeDelete(id: string) { + return request({ + url: `/electricityNode/delete?id=${id}`, + method: 'post', + }) +} +// 配电网支路查询 +export function electricityBranch(id: any) { + return request({ + url: `/branchNodeInfo/branchList?electricityId=${id}`, + method: 'get', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -125,6 +155,13 @@ params, }) } +// 光伏列表 - 不分页 +export function getMonitorStationList() { + return request({ + url: '/monitorStation/list', + method: 'get', + }) +} // 添加 光伏/楼宇/电动车管 export function addMonitorStation(data: any) { return request({ diff --git a/src/components.d.ts b/src/components.d.ts index 1bd3d1b..5c3eb2a 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -40,6 +40,8 @@ ImagePreview: typeof import('./components/ImagePreview/index.vue')['default'] ImagesUpload: typeof import('./components/ImagesUpload/index.vue')['default'] ImageUpload: typeof import('./components/ImageUpload/index.vue')['default'] + InfoWindow: typeof import('./components/map/infoWindow.vue')['default'] + InfoWindow2: typeof import('./components/map/infoWindow2.vue')['default'] LineChart: typeof import('./components/Echart/LineChart.vue')['default'] Map: typeof import('./components/map/index.vue')['default'] MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default'] diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a5c8ec3..00994da 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -5,7 +5,9 @@ --> + + diff --git a/src/components/map/infoWindow2.vue b/src/components/map/infoWindow2.vue new file mode 100644 index 0000000..407e288 --- /dev/null +++ b/src/components/map/infoWindow2.vue @@ -0,0 +1,80 @@ + + + + + + + + {{ info?.stationName }} + + + x + + + + 光伏挂载节点 : {{ info?.nodeId }} + + + 发电机组有功 : {{ info?.pg }} 发电机组无功 : {{ info?.qg }} + + + 碳排强度 : {{ info?.strength }} + + + + + diff --git a/src/static/1.png b/src/static/1.png new file mode 100644 index 0000000..9dca264 --- /dev/null +++ b/src/static/1.png Binary files differ diff --git a/src/static/2.png b/src/static/2.png new file mode 100644 index 0000000..0eb5760 --- /dev/null +++ b/src/static/2.png Binary files differ diff --git a/src/views/data/electricity/components/busbarAdd.vue b/src/views/data/electricity/components/busbarAdd.vue index 7f81ed6..fa5ccb8 100644 --- a/src/views/data/electricity/components/busbarAdd.vue +++ b/src/views/data/electricity/components/busbarAdd.vue @@ -7,8 +7,7 @@ import type { FormRules } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus' import dayjs from 'dayjs' -import showPhoto from './showPhoto.vue' -import { addElectricityList, updateElectricityList, uploadApi } from '@/api/api/index' +import { electricityNodeAdd, electricityNodeUpdate } from '@/api/api/index' import { getUserList } from '@/api/system/user' const emits = defineEmits(['refresh']) const dataFormRef = ref() @@ -16,12 +15,19 @@ const dialogStatus = ref('') // 对话框类型:create,update const isEditMode = ref(true) const areaForm = ref({ - electricityName: '', // 配电网名称 - electricityArea: '', // 配电网区域 - uploaderName: '', // 上传人 - uploader: '', - uploadTime: '', // 上传时间 - electricityDetail: '', // 详情图片 + type: '', // 节点类型 + gs: '', // 节点并联电导 + bs: '', // 节点并联电纳 + area: '', // 母线断面号 + vm: '', // 节点电压初始幅值 + va: '', // 节点电压初始相位角 + zone: '', // 母线省损耗区域 + vmax: '', // 节点最大电压 + vmin: '', // 节点最小电压 + pd: '', // 负荷有功功率 + qd: '', // 负荷无功功率 + // qd: '', // 负荷无功功率 + // qd: '', // 负荷无功功率 }) // 表单 const textMap: { [key: string]: string } = { update: '编辑', @@ -29,11 +35,17 @@ } // 表头显示标题 const btnLoading = ref(false) // 保存按钮的加载中状态 const rules: FormRules = { - electricityName: [{ required: true, message: '请输入配电网名称', trigger: ['blur', 'change'] }], - electricityArea: [{ required: true, message: '请输入配电网区域', trigger: ['blur', 'change'] }], - uploader: [{ required: true, message: '请选择上传人', trigger: ['blur', 'change'] }], - uploadTime: [{ required: true, message: '请选择上传时间', trigger: ['blur', 'change'] }], - electricityDetail: [{ required: true, message: '请上传附件', trigger: ['blur', 'change'] }], + type: [{ required: true, message: '请选择节点类型', trigger: ['blur', 'change'] }], + gs: [{ required: true, message: '节点并联电导', trigger: ['blur', 'change'] }], + bs: [{ required: true, message: '节点并联电纳', trigger: ['blur', 'change'] }], + area: [{ required: true, message: '母线断面号', trigger: ['blur', 'change'] }], + vm: [{ required: true, message: '节点电压初始幅值', trigger: ['blur', 'change'] }], + va: [{ required: true, message: '节点电压初始相位角', trigger: ['blur', 'change'] }], + zone: [{ required: true, message: '母线省损耗区域', trigger: ['blur', 'change'] }], + vmax: [{ required: true, message: '节点最大电压', trigger: ['blur', 'change'] }], + vmin: [{ required: true, message: '节点最小电压', trigger: ['blur', 'change'] }], + pd: [{ required: true, message: '负荷有功功率', trigger: ['blur', 'change'] }], + qd: [{ required: true, message: '负荷无功功率', trigger: ['blur', 'change'] }], } // 前端校验规则 // 获取用户列表 const userList = ref([]) @@ -46,12 +58,17 @@ // 重置表单 const resetForm = () => { areaForm.value = { - electricityName: '', // 配电网名称 - electricityArea: '', // 配电网区域 - uploaderName: '', // 上传人+ - uploader: '', - uploadTime: '', // 上传时间 - electricityDetail: '', + type: '', // 节点类型 + gs: '', // 节点并联电导 + bs: '', // 节点并联电纳 + area: '', // 母线断面号 + vm: '', // 节点电压初始幅值 + va: '', // 节点电压初始相位角 + zone: '', // 母线省损耗区域 + vmax: '', // 节点最大电压 + vmin: '', // 节点最小电压 + pd: '', // 负荷有功功率 + qd: '', // 负荷无功功率 } } const deviceTypeList = ref([]) @@ -80,9 +97,8 @@ const createData = () => { dataFormRef.value.validate((valid: any) => { if (valid) { - areaForm.value.uploadTime = dayjs().format('YYYY-MM-DD') btnLoading.value = true - addElectricityList(areaForm.value).then((response) => { + electricityNodeAdd(areaForm.value).then((response) => { if (response.code === 200) { btnLoading.value = false // 通知父组件刷新状态 @@ -106,9 +122,8 @@ const updateData = () => { dataFormRef.value.validate((valid: any) => { if (valid) { - areaForm.value.uploadTime = dayjs().format('YYYY-MM-DD') btnLoading.value = true - updateElectricityList(areaForm.value).then((response) => { + electricityNodeUpdate(areaForm.value).then((response) => { if (response.code === 200) { ElMessage({ message: '修改成功', @@ -168,91 +183,89 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - +