From e44aed32ce5fafde7ce26f504ceec4a272ea20f8 Mon Sep 17 00:00:00 2001 From: xiongqin <3323939337@qq.com> Date: Fri, 4 Jul 2025 20:07:24 +0800 Subject: [PATCH] =?UTF-8?q?xq=20feat:"=E6=B7=BB=E5=8A=A0=E4=BA=86=E9=80=86?= =?UTF-8?q?=E5=8F=98=E5=99=A8=E6=95=B0=E6=8D=AE=E5=88=97=E8=A1=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=86=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/details/nbqDetail/index.ts | 63 +++ src/api/details/nbqDetail/types.ts | 482 ++++++++++++++++++++++ src/views/business/nbq/index.vue | 21 +- src/views/details/nbqDetail/index.vue | 554 ++++++++++++++++++++++++++ 4 files changed, 1106 insertions(+), 14 deletions(-) create mode 100644 src/api/details/nbqDetail/index.ts create mode 100644 src/api/details/nbqDetail/types.ts create mode 100644 src/views/details/nbqDetail/index.vue diff --git a/src/api/details/nbqDetail/index.ts b/src/api/details/nbqDetail/index.ts new file mode 100644 index 0000000..e25a4e5 --- /dev/null +++ b/src/api/details/nbqDetail/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { NbqDetailVO, NbqDetailForm, NbqDetailQuery } from '@/api/details/nbqDetail/types'; + +/** + * 查询逆变器列列表 + * @param query + * @returns {*} + */ + +export const listNbqDetail = (query?: NbqDetailQuery): AxiosPromise => { + return request({ + url: '/details/nbqDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询逆变器列详细 + * @param id + */ +export const getNbqDetail = (id: string | number): AxiosPromise => { + return request({ + url: '/details/nbqDetail/' + id, + method: 'get' + }); +}; + +/** + * 新增逆变器列 + * @param data + */ +export const addNbqDetail = (data: NbqDetailForm) => { + return request({ + url: '/details/nbqDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改逆变器列 + * @param data + */ +export const updateNbqDetail = (data: NbqDetailForm) => { + return request({ + url: '/details/nbqDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除逆变器列 + * @param id + */ +export const delNbqDetail = (id: string | number | Array) => { + return request({ + url: '/details/nbqDetail/' + id, + method: 'delete' + }); +}; diff --git a/src/api/details/nbqDetail/types.ts b/src/api/details/nbqDetail/types.ts new file mode 100644 index 0000000..4eb8202 --- /dev/null +++ b/src/api/details/nbqDetail/types.ts @@ -0,0 +1,482 @@ +export interface NbqDetailVO { + /** + * 逆变器id + */ + id: string | number; + + /** + * 逆变器SN + */ + sn: string; + + /** + * 电站id + */ + stationid: string | number; + + /** + * 电站名称 + */ + stationname: string; + + /** + * 业主id + */ + userid: string | number; + + /** + * 装机容量 + */ + power: string; + + /** + * 装机容量单位 + */ + powerstr: string; + + /** + * 当日能量 + */ + etoday: string; + + /** + * 当日发电量原始值 + */ + etoday1: string; + + /** + * 当日能量单位 + */ + etodaystr: string; + + /** + * 总电量 + */ + etotal: string; + + /** + * 累计发电量原始值 + */ + etotal1: string; + + /** + * 总能量单位 + */ + etotalstr: string; + + /** + * 满发小时数 + */ + fullhour: string; + + /** + * 功率 + */ + pac: string; + + /** + * 功率单位 + */ + pacstr: string; + + /** + * 逆变器状态 + */ + state: number; + + /** + * 更新时间 + */ + datatimestamp: number; + + /** + * 采集器SN + */ + collectorsn: string; + + /** + * 逆变器类型 + */ + productmodel: string; + + /** + * 直流输入路数 + */ + dcinputtype: number; + + /** + * 交流输出类 + */ + acoutputtype: number; + + /** + * 逆变器系列 + */ + series: string; + + /** + * 逆变器名称 + */ + name: string; + + /** + * 电站地址 + */ + addr: string; + + /** + * 采集器状态 + */ + collectorstate: number; + + /** + * 逆变器离线状态: +0 = 正常离线 +1 = 异常离线 + */ + stateexceptionflag: number; + + /** + * 累计满发小时数 + */ + totalfullhour: string; + + /** + * 逆变器电表类型,详见附录3 + */ + invertermetermodel: number; + + /** + * 创建时间 + */ + createdate: number; + + /** + * 质保结束时间 + */ + updateshelfendtime: number; + +} + +export interface NbqDetailForm extends BaseEntity { + /** + * 逆变器id + */ + id?: string | number; + + /** + * 逆变器SN + */ + sn?: string; + + /** + * 电站id + */ + stationid?: string | number; + + /** + * 电站名称 + */ + stationname?: string; + + /** + * 业主id + */ + userid?: string | number; + + /** + * 装机容量 + */ + power?: string; + + /** + * 装机容量单位 + */ + powerstr?: string; + + /** + * 当日能量 + */ + etoday?: string; + + /** + * 当日发电量原始值 + */ + etoday1?: string; + + /** + * 当日能量单位 + */ + etodaystr?: string; + + /** + * 总电量 + */ + etotal?: string; + + /** + * 累计发电量原始值 + */ + etotal1?: string; + + /** + * 总能量单位 + */ + etotalstr?: string; + + /** + * 满发小时数 + */ + fullhour?: string; + + /** + * 功率 + */ + pac?: string; + + /** + * 功率单位 + */ + pacstr?: string; + + /** + * 逆变器状态 + */ + state?: number; + + /** + * 更新时间 + */ + datatimestamp?: number; + + /** + * 采集器SN + */ + collectorsn?: string; + + /** + * 逆变器类型 + */ + productmodel?: string; + + /** + * 直流输入路数 + */ + dcinputtype?: number; + + /** + * 交流输出类 + */ + acoutputtype?: number; + + /** + * 逆变器系列 + */ + series?: string; + + /** + * 逆变器名称 + */ + name?: string; + + /** + * 电站地址 + */ + addr?: string; + + /** + * 采集器状态 + */ + collectorstate?: number; + + /** + * 逆变器离线状态: +0 = 正常离线 +1 = 异常离线 + */ + stateexceptionflag?: number; + + /** + * 累计满发小时数 + */ + totalfullhour?: string; + + /** + * 逆变器电表类型,详见附录3 + */ + invertermetermodel?: number; + + /** + * 创建时间 + */ + createdate?: number; + + /** + * 质保结束时间 + */ + updateshelfendtime?: number; + +} + +export interface NbqDetailQuery extends PageQuery { + + /** + * 逆变器SN + */ + sn?: string; + + /** + * 电站id + */ + stationid?: string | number; + + /** + * 电站名称 + */ + stationname?: string; + + /** + * 业主id + */ + userid?: string | number; + + /** + * 装机容量 + */ + power?: string; + + /** + * 装机容量单位 + */ + powerstr?: string; + + /** + * 当日能量 + */ + etoday?: string; + + /** + * 当日发电量原始值 + */ + etoday1?: string; + + /** + * 当日能量单位 + */ + etodaystr?: string; + + /** + * 总电量 + */ + etotal?: string; + + /** + * 累计发电量原始值 + */ + etotal1?: string; + + /** + * 总能量单位 + */ + etotalstr?: string; + + /** + * 满发小时数 + */ + fullhour?: string; + + /** + * 功率 + */ + pac?: string; + + /** + * 功率单位 + */ + pacstr?: string; + + /** + * 逆变器状态 + */ + state?: number; + + /** + * 更新时间 + */ + datatimestamp?: number; + + /** + * 采集器SN + */ + collectorsn?: string; + + /** + * 逆变器类型 + */ + productmodel?: string; + + /** + * 直流输入路数 + */ + dcinputtype?: number; + + /** + * 交流输出类 + */ + acoutputtype?: number; + + /** + * 逆变器系列 + */ + series?: string; + + /** + * 逆变器名称 + */ + name?: string; + + /** + * 电站地址 + */ + addr?: string; + + /** + * 采集器状态 + */ + collectorstate?: number; + + /** + * 逆变器离线状态: +0 = 正常离线 +1 = 异常离线 + */ + stateexceptionflag?: number; + + /** + * 累计满发小时数 + */ + totalfullhour?: string; + + /** + * 逆变器电表类型,详见附录3 + */ + invertermetermodel?: number; + + /** + * 创建时间 + */ + createdate?: number; + + /** + * 质保结束时间 + */ + updateshelfendtime?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/business/nbq/index.vue b/src/views/business/nbq/index.vue index 7e2771f..255ebfb 100644 --- a/src/views/business/nbq/index.vue +++ b/src/views/business/nbq/index.vue @@ -56,7 +56,7 @@ - + @@ -70,18 +70,6 @@