diff --git a/src/api/msg.ts b/src/api/msg.ts index dd78d08..3192424 100644 --- a/src/api/msg.ts +++ b/src/api/msg.ts @@ -39,4 +39,12 @@ export function queryNoReadCount(query?: Object) { method: 'get', params: query }) +} +// 批量更新消息状态 +export function batchUpdateFlag(query?: Object) { + return request({ + url: '/bus/bloodbank/msg/batchUpdateFlag', + method: 'post', + data: query + }) } \ No newline at end of file diff --git a/src/components/WsMsgList/index.vue b/src/components/WsMsgList/index.vue index c846d35..21e81f2 100644 --- a/src/components/WsMsgList/index.vue +++ b/src/components/WsMsgList/index.vue @@ -28,7 +28,7 @@
查询 - + 一键已读
@@ -57,11 +57,13 @@ diff --git a/src/utils/webSocket.ts b/src/utils/webSocket.ts index e06c24b..0b6121c 100644 --- a/src/utils/webSocket.ts +++ b/src/utils/webSocket.ts @@ -40,7 +40,7 @@ export function initWebSocket(options: WebSocketInternalOptions) { const msgType = rawMsg.type; //根据消息类型发送事件 //APPLY_NOTICE 输血申请保存 - emitter.emit(msgType, rawMsg); + emitter.emit("newMsg", rawMsg); // 重置未读消息数 emitter.emit('resetCount') } catch (err) { diff --git a/src/views/blood/clinical/index.vue b/src/views/blood/clinical/index.vue index f2ca6ab..31e08dc 100644 --- a/src/views/blood/clinical/index.vue +++ b/src/views/blood/clinical/index.vue @@ -322,8 +322,8 @@ - + @@ -661,6 +661,11 @@ const jsRowclick = (row) => { selectRow.value = row } +const dblClickRow = (row) => { + selectRow.value = row + handleConfirm() +} + const getBloodMatchInfo = () => { queryOutInfo({ billNo: selectRow.value.bill_no }).then(res => { diff --git a/src/views/blood/crossMatching/index.vue b/src/views/blood/crossMatching/index.vue index 8516a28..73e22e4 100644 --- a/src/views/blood/crossMatching/index.vue +++ b/src/views/blood/crossMatching/index.vue @@ -354,7 +354,7 @@ - +
- + @@ -391,7 +391,8 @@ - +