diff --git a/.env b/.env index 27b2ff739..891550011 100644 --- a/.env +++ b/.env @@ -8,13 +8,13 @@ VITE_PORT=8080 VITE_OPEN=true # 租户开关 -VITE_APP_TENANT_ENABLE=true +VITE_APP_TENANT_ENABLE=false # 验证码的开关 VITE_APP_CAPTCHA_ENABLE=true # 文档地址的开关 -VITE_APP_DOCALERT_ENABLE=true +VITE_APP_DOCALERT_ENABLE=false # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc diff --git a/src/api/deviceuser/index.ts b/src/api/deviceuser/index.ts index a4dec16bc..78ce62b45 100644 --- a/src/api/deviceuser/index.ts +++ b/src/api/deviceuser/index.ts @@ -1,46 +1,51 @@ -import request from '@/config/axios' - -// 设备人员关联 VO -export interface DeviceuserVO { - id: number // 主键ID - deviceid: number // 设备ID - userid: number // 用户ID - createtime: Date // 创建时间 - updatetime: Date // 更新时间 - createby: string // 创建人 - updateby: string // 更新人 - username: string // 用户姓名 -} - -// 设备人员关联 API -export const DeviceuserApi = { - // 查询设备人员关联分页 - getDeviceuserPage: async (params: any) => { - return await request.get({ url: `/system/deviceuser/page`, params }) - }, - - // 查询设备人员关联详情 - getDeviceuser: async (id: number) => { - return await request.get({ url: `/system/deviceuser/get?id=` + id }) - }, - - // 新增设备人员关联 - createDeviceuser: async (data: DeviceuserVO) => { - return await request.post({ url: `/system/deviceuser/create`, data }) - }, - - // 修改设备人员关联 - updateDeviceuser: async (data: DeviceuserVO) => { - return await request.put({ url: `/system/deviceuser/update`, data }) - }, - - // 删除设备人员关联 - deleteDeviceuser: async (id: number) => { - return await request.delete({ url: `/system/deviceuser/delete?id=` + id }) - }, - - // 导出设备人员关联 Excel - exportDeviceuser: async (params) => { - return await request.download({ url: `/system/deviceuser/export-excel`, params }) - }, -} \ No newline at end of file +import request from '@/config/axios' + +// 设备人员关联 VO +export interface DeviceuserVO { + id: number // 主键ID + deviceid: number // 设备ID + userid: number // 用户ID + createtime: Date // 创建时间 + updatetime: Date // 更新时间 + createby: string // 创建人 + updateby: string // 更新人 + username: string // 用户姓名 +} + +// 设备人员关联 API +export const DeviceuserApi = { + // 查询设备人员关联分页 + getDeviceuserPage: async (params: any) => { + return await request.get({ url: `/system/deviceuser/page`, params }) + }, + + // 查询设备人员关联详情 + getDeviceuser: async (id: number) => { + return await request.get({ url: `/system/deviceuser/get?id=` + id }) + }, + + // 新增设备人员关联 + createDeviceuser: async (data: DeviceuserVO) => { + return await request.post({ url: `/system/deviceuser/create`, data }) + }, + + // 修改设备人员关联 + updateDeviceuser: async (data: DeviceuserVO) => { + return await request.put({ url: `/system/deviceuser/update`, data }) + }, + + // 删除设备人员关联 + deleteDeviceuser: async (id: number) => { + return await request.delete({ url: `/system/deviceuser/delete?id=` + id }) + }, + + // 导出设备人员关联 Excel + exportDeviceuser: async (params) => { + return await request.download({ url: `/system/deviceuser/export-excel`, params }) + }, + + //根据设备ID查询设备人员关联 + getDeviceuserByDeviceId: async (deviceid: number) => { + return await request.get({ url: `/system/deviceuser/getDeviceuserByDeviceId?deviceid=` + deviceid }) + }, +} diff --git a/src/api/ecgdata/index.ts b/src/api/ecgdata/index.ts index 695ba054d..119c3af63 100644 --- a/src/api/ecgdata/index.ts +++ b/src/api/ecgdata/index.ts @@ -1,65 +1,75 @@ -import request from '@/config/axios' - -// 心电数据采集 VO -export interface EcgdataVO { - id: number // 主键ID - deviceid: number // 设备ID - devicename: string // 设备名称 - userid: number // 人员ID - collecttime: Date // 采集时间 - devicetype: string // 设备类型 - heartrate: number // 心率(次/分) - rhythm: string // 心律类型(窦性心律,房颤等) - printerval: number // PR间期(ms) - qrsduration: number // QRS时限(ms) - qtinterval: number // QT间期(ms) - qtcinterval: number // QTc间期(ms) - paxis: number // P电轴(度) - qrsaxis: number // QRS电轴(度) - taxis: number // T电轴(度) - rv5: number // RV5电压(mV) - sv1: number // SV1电压(mV) - rv5sv1: number // RV5+SV1电压(mV) - stsegment: string // ST段改变 - twave: string // T波改变 - diagnosis: string // 心电图诊断 - ecgimageurl: string // 心电图图片地址 - ecgdataurl: string // 心电图数据文件地址 - orgid: number // 机构ID - orgname: string // 机构名称 - datastatus: number // 数据状态(0:异常,1:正常) - remark: string // 备注 -} - -// 心电数据采集 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 +import request from '@/config/axios' + +// 心电数据采集 VO +export interface EcgdataVO { + id: number // 主键ID + deviceid: number // 设备ID + devicename: string // 设备名称 + userid: number // 人员ID + collecttime: Date // 采集时间 + devicetype: string // 设备类型 + heartrate: number // 心率(次/分) + rhythm: string // 心律类型(窦性心律,房颤等) + printerval: number // PR间期(ms) + qrsduration: number // QRS时限(ms) + qtinterval: number // QT间期(ms) + qtcinterval: number // QTc间期(ms) + paxis: number // P电轴(度) + qrsaxis: number // QRS电轴(度) + taxis: number // T电轴(度) + rv5: number // RV5电压(mV) + sv1: number // SV1电压(mV) + rv5sv1: number // RV5+SV1电压(mV) + stsegment: string // ST段改变 + twave: string // T波改变 + diagnosis: string // 心电图诊断 + ecgimageurl: string // 心电图图片地址 + ecgdataurl: string // 心电图数据文件地址 + orgid: number // 机构ID + orgname: string // 机构名称 + datastatus: number // 数据状态(0:异常,1:正常) + remark: string // 备注 +} + +// 心电数据采集 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 }) + }, + + // 根据用户ID查询心电采集时间列表 + getEcgdataByUserId: async (userId: number) => { + return await request.get({ url: `/system/ecgdata/getByUserId?userId=` + userId }) + }, + + // 根据时间&ID查询心电数据 + getEcgdataByTime: async (collecttime: Date, userId: number) => { + return await request.get({ url: `/system/ecgdata/getByTime?collecttime=` + collecttime + `&userId=` + userId }) + } +} diff --git a/src/views/devices/Device_Data_Components/ECG_datas.vue b/src/views/devices/Device_Data_Components/ECG_datas.vue index 92afe9925..00f4e4b18 100644 --- a/src/views/devices/Device_Data_Components/ECG_datas.vue +++ b/src/views/devices/Device_Data_Components/ECG_datas.vue @@ -13,14 +13,9 @@