diff --git a/src/api/tblist/ecganalysisparas/index.ts b/src/api/tblist/ecganalysisparas/index.ts new file mode 100644 index 00000000..2c207720 --- /dev/null +++ b/src/api/tblist/ecganalysisparas/index.ts @@ -0,0 +1,79 @@ +import request from '@/config/axios' + +// 心电分析数据 VO +export interface EcganalysisparasVO { + id: string // 主键 + orgId: string // 机构ID + examId: string // 检查ID:体检编号、住院号、门诊号等 + collectionTime: Date // 采集时间 + hr: string // 心率 + pAxle: string // P电轴 + qrsAxle: string // QRS电轴 + tAxle: string // T电轴 + pTimeLimit: string // P波时限 + pr: string // PR间期 + qrsTimeLimit: string // QRS时限 + qt: string // QT间期 + qtc: string // QTC间期 + rv5: string // 胸导V5导联电压 + sv1: string // V1导联S波深度 + rv5Sv1: string // RV5+SV1 + snapshotTime: Date // 快照时间:参考心电波形的起始时间 + autoDiagResult: string // 算法自动诊断结果 + autoDiagTime: Date // 自动诊断的时间 + doctorDiagResult: string // 医生诊断结果 + doctorDiagTime: string // 医生诊断的时间 + doctorName: string // 诊断医生的姓名 + doctorId: string // 诊断医生的医生id + departId: string // 诊断医生的科室id + departName: string // 诊断医生的科室名称 + isDelete: string // 是否删除: 1 为删除 + deleteTime: Date // 删除时间 + deleteDoctorName: string // 执行删除操作的医生姓名 + deleteDoctorId: string // 执行删除操作的医生id + ecgDataFilePath: string // 心电数据文件的路径: 路径或URL + ecgJsonDataFilePath: string // 心电数据json格式的数据文件路径:路径或URL + createDate: Date // 分析参数的创建时间 +} + +// 心电分析数据 API +export const EcganalysisparasApi = { + // 查询心电分析数据分页 + getEcganalysisparasPage: async (params: any) => { + return await request.get({ url: `/tblist/ecganalysisparas/page`, params }) + }, + + // 查询心电分析数据详情 + getEcganalysisparas: async (id: number) => { + return await request.get({ url: `/tblist/ecganalysisparas/get?id=` + id }) + }, + + // 新增心电分析数据 + createEcganalysisparas: async (data: EcganalysisparasVO) => { + return await request.post({ url: `/tblist/ecganalysisparas/create`, data }) + }, + + // 修改心电分析数据 + updateEcganalysisparas: async (data: EcganalysisparasVO) => { + return await request.put({ url: `/tblist/ecganalysisparas/update`, data }) + }, + // 保存心电分析数据 + SaveEcganalysisparas: async (data: EcganalysisparasVO) => { + return await request.put({ url: `/tblist/ecganalysisparas/save`, data }) + }, + + // 删除心电分析数据 + deleteEcganalysisparas: async (id: number) => { + return await request.delete({ url: `/tblist/ecganalysisparas/delete?id=` + id }) + }, + + // 导出心电分析数据 Excel + exportEcganalysisparas: async (params) => { + return await request.download({ url: `/tblist/ecganalysisparas/export-excel`, params }) + }, + // 按照examId查询心电分析数据详情 + getexamIDdata: async (examId: String) => { + return await request.get({ url: `/tblist/ecganalysisparas/getexamIDdata?examId=` + examId }) + }, + +} diff --git a/src/router/index.ts b/src/router/index.ts index ff345323..358a2dc4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining' // 创建路由实例 const router = createRouter({ - history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# liunx 病理 需要在这里加 '/bl/' + history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带# liunx 病理 需要在这里加 '/bl/' 李晓东 strict: true, routes: remainingRouter as RouteRecordRaw[], scrollBehavior: () => ({ left: 0, top: 0 }) diff --git a/src/utils/formatTime.ts b/src/utils/formatTime.ts index 3fd980ae..9471facc 100644 --- a/src/utils/formatTime.ts +++ b/src/utils/formatTime.ts @@ -88,6 +88,22 @@ export function getNowDateTimeS() { const formattedDate = dayjs(formattedDateTime).toDate(); return formattedDate; } +/** + * 获取当前的日期+时间 YYYY-MM-DD HH:mm:ss 后端字段是LocalDateTime + */ +export function getCurrentLocalDateTime () { + const now = new Date(); + const year = now.getFullYear(); + const month = String(now.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要+1 + const day = String(now.getDate()).padStart(2, '0'); + const hour = String(now.getHours()).padStart(2, '0'); + const minute = String(now.getMinutes()).padStart(2, '0'); + const second = String(now.getSeconds()).padStart(2, '0'); + const value=`${year}-${month}-${day}T${hour}:${minute}:${second}` + + // 构建LocalDateTime格式的字符串 + return value ; +}; /** * 获取当前日期是第几周 * @param dateTime 当前传入的日期值 diff --git a/src/views/ECG/ECGBB.vue b/src/views/ECG/ECGBB.vue new file mode 100644 index 00000000..85c84085 --- /dev/null +++ b/src/views/ECG/ECGBB.vue @@ -0,0 +1,116 @@ + + + + + \ No newline at end of file diff --git a/src/views/ECG/ECGFD.vue b/src/views/ECG/ECGFD.vue new file mode 100644 index 00000000..d142a9b9 --- /dev/null +++ b/src/views/ECG/ECGFD.vue @@ -0,0 +1,145 @@ + + + + + \ No newline at end of file diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue new file mode 100644 index 00000000..e480b505 --- /dev/null +++ b/src/views/ECG/ECGForm.vue @@ -0,0 +1,475 @@ + + + + + diff --git a/src/views/ECG/ECGSB.vue b/src/views/ECG/ECGSB.vue new file mode 100644 index 00000000..486531c5 --- /dev/null +++ b/src/views/ECG/ECGSB.vue @@ -0,0 +1,164 @@ + + + + diff --git a/src/views/ECG/ECGhtml.vue b/src/views/ECG/ECGhtml.vue new file mode 100644 index 00000000..4d4064cf --- /dev/null +++ b/src/views/ECG/ECGhtml.vue @@ -0,0 +1,563 @@ + + + + + diff --git a/src/views/tblist/patientexamlistECG/index.vue b/src/views/tblist/patientexamlistECG/index.vue new file mode 100644 index 00000000..c535d99d --- /dev/null +++ b/src/views/tblist/patientexamlistECG/index.vue @@ -0,0 +1,556 @@ + + + + +