This commit is contained in:
Vinjor 2025-09-02 15:57:13 +08:00
parent a33b1bff7e
commit 8dd3cccf87
2 changed files with 13 additions and 2 deletions

View File

@ -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
</update>
</mapper>

View File

@ -142,11 +142,19 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.status==1"
size="mini"
type="text"
icon="el-icon-s-comment"
@click="handleDetail(scope.row)"
>聊天</el-button>
<el-button
v-if="scope.row.status!=1"
size="mini"
type="text"
icon="el-icon-s-comment"
@click="handleDetail(scope.row,'view')"
>查看</el-button>
</template>
</el-table-column>
</el-table>
@ -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)
}
}