1
This commit is contained in:
parent
a33b1bff7e
commit
8dd3cccf87
@ -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>
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user