diff --git a/src/api/system/warning/index.ts b/src/api/system/warning/index.ts index 0c53408f..f4c73989 100644 --- a/src/api/system/warning/index.ts +++ b/src/api/system/warning/index.ts @@ -16,9 +16,9 @@ export interface WarningVO { checkDateTime: Date // 确认时间 remark: string // 备注 warningProcess: string // 危急值报告进程:Json格式 - readDateTime:string - receiptDateTime:string - readremark:string + readDateTime: string + receiptDateTime: string + readremark: string } // 危急值记录 API @@ -52,16 +52,20 @@ export const WarningApi = { exportWarning: async (params) => { return await request.download({ url: `/system/warning/export-excel`, params }) }, - // 查询患者危急值记录详情 - getexmidororgiddata: async (examId: String,orgId: String) => { + // 查询患者危急值记录详情 + getexmidororgiddata: async (examId: String, orgId: String) => { return await request.get({ url: `/system/warning/getexmidororgiddata?examID=${examId}&&orgID=${orgId}` }) }, - // 查询患者危急值记录详情 - updateWarningdate: async (id:String,readDateTime: String,receiptDateTime: String) => { - return await request.get({ url: `/system/warning/updateWarningdate?id=${id}&&readDateTime=${readDateTime}&&receiptDateTime=${receiptDateTime}` }) - }, - // 修改危急值记录 - SaveupdateWarning: async (data: WarningVO) => { + // 查询患者危急值记录详情 + updateWarningdate: async (id: String, readDateTime: String, receiptDateTime: String) => { + return await request.get({ url: `/system/warning/updateWarningdate?id=${id}&&readDateTime=${readDateTime}&&receiptDateTime=${receiptDateTime}` }) + }, + // 修改危急值记录 + SaveupdateWarning: async (data: WarningVO) => { return await request.put({ url: `/system/warning/Saveupdate`, data }) }, + // 发送站内消息 + sendMessage: async (userid: String, name: String) => { + return await request.get({ url: `/system/warning/sendMessage?userid=${userid}&&name=${name}` }) + }, } diff --git a/src/layout/components/Message/src/Message.vue b/src/layout/components/Message/src/Message.vue index 6bd7724a..25b56e39 100644 --- a/src/layout/components/Message/src/Message.vue +++ b/src/layout/components/Message/src/Message.vue @@ -56,7 +56,7 @@ onMounted(() => {