From 9af33c70db8b9c45223c80ecbc46f7132b83ddfc Mon Sep 17 00:00:00 2001 From: Flow <958079825@qq.com> Date: Mon, 14 Jul 2025 11:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=BF=83=E7=94=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecgdata/index.ts | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/api/ecgdata/index.ts diff --git a/src/api/ecgdata/index.ts b/src/api/ecgdata/index.ts new file mode 100644 index 0000000..25309e3 --- /dev/null +++ b/src/api/ecgdata/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +// 心电图动态数据 VO +export interface ecgdataVO { + id: number // 主键ID,自增 + regid: string // 患者ID + examid: string // 检查ID + name: string // 患者姓名 + gender: string // 性别:0-未知,1-男,2-女 + age: number // 年龄 + wearstarttime: Date // 佩戴开始时间 + wearendtime: Date // 佩戴结束时间 + duration: localtime // 佩戴时长(时分秒格式) + durationseconds: number // 佩戴时长(秒数) + reportgenerated: number // 是否生成报告:0-未生成,1-已生成 + superiorrequest: number // 是否上级申请:0-否,1-是 + orgid: string // 机构ID + orgname: string // 机构名称 + managerorg: string // 管理机构 + status: number // 状态:0-禁用,1-启用 + createtime: Date // 创建时间 + updatetime: Date // 更新时间 +} + +// 心电图动态数据 API +export const ecgdataApi = { + // 查询心电图动态数据分页 + getecgdataPage: async (params: any) => { + return await request.get({ url: `/system/ecgdata/page`, params }) + }, + + // 查询心电图动态数据详情 + getecgdata: async (id: number) => { + return await request.get({ url: `/system/ecgdata/get?id=` + id }) + }, + + // 新增心电图动态数据 + createecgdata: async (data: ecgdataVO) => { + return await request.post({ url: `/system/ecgdata/create`, data }) + }, + + // 修改心电图动态数据 + updateecgdata: async (data: ecgdataVO) => { + return await request.put({ url: `/system/ecgdata/update`, data }) + }, + + // 删除心电图动态数据 + deleteecgdata: async (id: number) => { + return await request.delete({ url: `/system/ecgdata/delete?id=` + id }) + }, + + // 导出心电图动态数据 Excel + exportecgdata: async (params) => { + return await request.download({ url: `/system/ecgdata/export-excel`, params }) + } +} \ No newline at end of file