diff --git a/dl_admin/ruoyi-admin/src/main/resources/mapper/busi/BusiChatItemMapper.xml b/dl_admin/ruoyi-admin/src/main/resources/mapper/busi/BusiChatItemMapper.xml index 4dc5b66..f14813d 100644 --- a/dl_admin/ruoyi-admin/src/main/resources/mapper/busi/BusiChatItemMapper.xml +++ b/dl_admin/ruoyi-admin/src/main/resources/mapper/busi/BusiChatItemMapper.xml @@ -60,5 +60,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" set is_read = 1 where main_id = #{sessionId} and receiver_id = #{receiverId} + and is_read =0 \ No newline at end of file diff --git a/dl_vue/src/views/busi/chatMain/index.vue b/dl_vue/src/views/busi/chatMain/index.vue index 3c14ccb..83e1f9f 100644 --- a/dl_vue/src/views/busi/chatMain/index.vue +++ b/dl_vue/src/views/busi/chatMain/index.vue @@ -142,11 +142,19 @@ @@ -274,8 +282,10 @@ export default { * 查看聊天记录详情 * @param row */ - handleDetail(row){ - console.log(row,'sdfadsafadsf') + handleDetail(row,flag){ + if(flag && "view"==flag){ + this.$refs.chatFrom.readOnly = true + } this.$refs.chatFrom.show(row) } }