From 2ae20014b1dcd7e48eb1865d07f26740b3f083a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 4 Sep 2025 14:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../heating/heatanalysis/Heatanalysis.data.ts | 4 +- src/views/heating/yunwei/Heatanalysis.api.ts | 35 +++ src/views/heating/yunwei/Heatanalysis.data.ts | 137 ++++++++ .../yunwei/components/ChangeLevelForm.vue | 146 +++++++++ .../yunwei/components/ChangeLevelModal.vue | 75 +++++ .../components/HeatanalysisReamrks.api.ts | 54 ++++ .../components/HeatanalysisReamrks.data.ts | 69 ++++ .../HeatanalysisReamrksFormModal.vue | 77 +++++ .../HeatanalysisReamrksListModal.vue | 77 +++++ .../components/HeatanalysisRemarksForm.vue | 179 +++++++++++ .../components/HeatanalysisRemarksList.vue | 253 +++++++++++++++ src/views/heating/yunwei/index.vue | 294 ++++++++++++++++++ 12 files changed, 1398 insertions(+), 2 deletions(-) create mode 100644 src/views/heating/yunwei/Heatanalysis.api.ts create mode 100644 src/views/heating/yunwei/Heatanalysis.data.ts create mode 100644 src/views/heating/yunwei/components/ChangeLevelForm.vue create mode 100644 src/views/heating/yunwei/components/ChangeLevelModal.vue create mode 100644 src/views/heating/yunwei/components/HeatanalysisReamrks.api.ts create mode 100644 src/views/heating/yunwei/components/HeatanalysisReamrks.data.ts create mode 100644 src/views/heating/yunwei/components/HeatanalysisReamrksFormModal.vue create mode 100644 src/views/heating/yunwei/components/HeatanalysisReamrksListModal.vue create mode 100644 src/views/heating/yunwei/components/HeatanalysisRemarksForm.vue create mode 100644 src/views/heating/yunwei/components/HeatanalysisRemarksList.vue create mode 100644 src/views/heating/yunwei/index.vue diff --git a/src/views/heating/heatanalysis/Heatanalysis.data.ts b/src/views/heating/heatanalysis/Heatanalysis.data.ts index ef9c6bb..c3984cc 100644 --- a/src/views/heating/heatanalysis/Heatanalysis.data.ts +++ b/src/views/heating/heatanalysis/Heatanalysis.data.ts @@ -18,7 +18,7 @@ export const columns: BasicColumn[] = [ ellipsis: false }, { - title: '锅炉房', + title: '换热站', align: "center", dataIndex: 'view004Name', ellipsis: false @@ -204,7 +204,7 @@ export const formSchema: FormSchema[] = [ field: 'view002Name', }, { - label: '锅炉房', + label: '换热站', field: 'view004Name', }, { diff --git a/src/views/heating/yunwei/Heatanalysis.api.ts b/src/views/heating/yunwei/Heatanalysis.api.ts new file mode 100644 index 0000000..5a49c8b --- /dev/null +++ b/src/views/heating/yunwei/Heatanalysis.api.ts @@ -0,0 +1,35 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/heating/heatanalysis/page', + edit='/heating/heatanalysis/updateFaultLevel', + companylist = '/heating/thermalcompany/list', + heatsourcelist = '/heating/heatsource/list', + heatsourcestationlist = '/heating/heatsourcestation/list', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +export const companylist = (params) => + defHttp.get({url: Api.companylist, params}); + +export const heatsourcelist = (params) => + defHttp.get({url: Api.heatsourcelist, params}); + +export const heatsourcestationlist = (params) => + defHttp.get({url: Api.heatsourcestationlist, params}); +/** + * 更新故障等级 + * @param params + */ +export const saveOrUpdate = (params) => { + return defHttp.post({url: Api.edit, params},{ isTransformResponse: false }); +} diff --git a/src/views/heating/yunwei/Heatanalysis.data.ts b/src/views/heating/yunwei/Heatanalysis.data.ts new file mode 100644 index 0000000..902f801 --- /dev/null +++ b/src/views/heating/yunwei/Heatanalysis.data.ts @@ -0,0 +1,137 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '区域', + align: "center", + dataIndex: 'regionType', + width:80, + }, + { + title: '供热公司', + align: "center", + dataIndex: 'view001Name', + width:140, + }, + { + title: '锅炉房', + align: "center", + dataIndex: 'view002Name', + width:140, + }, + { + title: '换热站', + align: "center", + dataIndex: 'view004Name', + width:140, + }, + { + title: 'SIM', + align: "center", + dataIndex: 'sim', + width:140, + }, + { + title: 'CODE', + align: "center", + dataIndex: 'code', + width:120, + }, + { + title: 'SN', + align: "center", + dataIndex: 'view031', + width:140, + }, + { + title: '故障等级', + align: "center", + dataIndex: 'faultLevel', + width:140, + }, + { + title: '数据时间', + align: "center", + dataIndex: 'datatime', + width:160, + }, + { + title:'一次网', + width:100, + children:[ + { + title: '供水温度', + align:"center", + width:120, + dataIndex: 'view005', + }, + { + title: '回水温度', + align:"center", + width:120, + dataIndex: 'view006' + }, + { + title: '供水压力', + align:"center", + width:120, + dataIndex: 'view007' + }, + { + title: '回水压力', + align:"center", + width:120, + dataIndex: 'view008' + } + ] + }, + { + title:'二次网', + width:100, + children:[ + { + title: '供水温度', + align:"center", + width:120, + dataIndex: 'view009' + }, + { + title: '回水温度', + align:"center", + width:120, + dataIndex: 'view010' + }, + { + title: '供水压力', + align:"center", + width:120, + dataIndex: 'view011' + }, + { + title: '回水压力', + align:"center", + width:120, + dataIndex: 'view012' + } + ] + }, + { + title: '热量', + align:"center", + width:120, + dataIndex: 'view041', + }, + { + title: '水流量', + align:"center", + width:120, + dataIndex: 'view037' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; diff --git a/src/views/heating/yunwei/components/ChangeLevelForm.vue b/src/views/heating/yunwei/components/ChangeLevelForm.vue new file mode 100644 index 0000000..333e65b --- /dev/null +++ b/src/views/heating/yunwei/components/ChangeLevelForm.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/views/heating/yunwei/components/ChangeLevelModal.vue b/src/views/heating/yunwei/components/ChangeLevelModal.vue new file mode 100644 index 0000000..9551a1f --- /dev/null +++ b/src/views/heating/yunwei/components/ChangeLevelModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/heating/yunwei/components/HeatanalysisReamrks.api.ts b/src/views/heating/yunwei/components/HeatanalysisReamrks.api.ts new file mode 100644 index 0000000..0006abd --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisReamrks.api.ts @@ -0,0 +1,54 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/heating/heatanalysisRemarks/page', + save='/heating/heatanalysisRemarks/add', + edit='/heating/heatanalysisRemarks/edit', + deleteOne = '/heating/heatanalysisRemarks/delete', + deleteBatch = '/heating/heatanalysisRemarks/deleteBatch', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}, { isTransformResponse: false }); +} diff --git a/src/views/heating/yunwei/components/HeatanalysisReamrks.data.ts b/src/views/heating/yunwei/components/HeatanalysisReamrks.data.ts new file mode 100644 index 0000000..5dec84c --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisReamrks.data.ts @@ -0,0 +1,69 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '序号', + align:"center", + dataIndex: 'id', + width: 80 + }, + // { + // title: '公司名称', + // align:"center", + // dataIndex: 'companyName' + // }, + // { + // title: '锅炉房', + // align:"center", + // dataIndex: 'sourceName' + // }, + // { + // title: '换热站', + // align:"center", + // dataIndex: 'stationName' + // }, + { + title: '创建时间', + align:"center", + dataIndex: 'createDate', + width: 160 + }, + { + title: '更新时间', + align:"center", + dataIndex: 'updateDate', + width: 160 + }, + { + title: '备注', + align:"center", + dataIndex: 'remarks' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: '删除', + field: 'delFlag', + component: 'Select', + componentProps: { + options: [ + { + label: '正常', + value: '0', + key: '0', + }, + { + label: '删除', + value: '1', + key: '1', + }, + ], + }, + colProps: { span: 6 }, + }, +]; diff --git a/src/views/heating/yunwei/components/HeatanalysisReamrksFormModal.vue b/src/views/heating/yunwei/components/HeatanalysisReamrksFormModal.vue new file mode 100644 index 0000000..4a11498 --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisReamrksFormModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/heating/yunwei/components/HeatanalysisReamrksListModal.vue b/src/views/heating/yunwei/components/HeatanalysisReamrksListModal.vue new file mode 100644 index 0000000..5a9e85a --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisReamrksListModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/heating/yunwei/components/HeatanalysisRemarksForm.vue b/src/views/heating/yunwei/components/HeatanalysisRemarksForm.vue new file mode 100644 index 0000000..99d4f7a --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisRemarksForm.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/src/views/heating/yunwei/components/HeatanalysisRemarksList.vue b/src/views/heating/yunwei/components/HeatanalysisRemarksList.vue new file mode 100644 index 0000000..64ebd48 --- /dev/null +++ b/src/views/heating/yunwei/components/HeatanalysisRemarksList.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/heating/yunwei/index.vue b/src/views/heating/yunwei/index.vue new file mode 100644 index 0000000..2aadc9d --- /dev/null +++ b/src/views/heating/yunwei/index.vue @@ -0,0 +1,294 @@ + + + + +