Commit daac14c2 authored by 赵茹林's avatar 赵茹林

聊天记录组件 更新 支持时间分段

团队概况 修复 平均业绩小数点不正确的问题
parent de675b9e
This diff is collapsed.
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<!--<el-button size="small" v-if="scope.row.chat_count > 0">聊天记录</el-button>--> <!--<el-button size="small" v-if="scope.row.chat_count > 0">聊天记录</el-button>-->
<chat-record <chat-record
v-if="scope.row.chat_count > 0" v-if="scope.row.chat_count > 0"
:friend-id="scope.row.friend_id" :start-at="dialogObj.start_at"></chat-record> :friend-id="scope.row.friend_id" :chat-start-at="scope.row.chat_start_at" :chat-end-at="scope.row.chat_end_at"></chat-record>
<phone-record <phone-record
v-if="scope.row.phone_source_file" v-if="scope.row.phone_source_file"
:src="scope.row.phone_source_file"></phone-record> :src="scope.row.phone_source_file"></phone-record>
...@@ -143,8 +143,8 @@ ...@@ -143,8 +143,8 @@
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<chat-record <chat-record
v-if="dialog.search.type == '0'" v-if="scope.row.chat_count > 0"
:friend-id="scope.row.friend_id" :start-at="dialogObj.start_at"></chat-record> :friend-id="scope.row.friend_id" :chat-start-at="scope.row.chat_start_at" :chat-end-at="scope.row.chat_end_at"></chat-record>
<phone-record <phone-record
v-if="dialog.search.type == '1' && scope.row.source_file" v-if="dialog.search.type == '1' && scope.row.source_file"
:src="scope.row.source_file"></phone-record> :src="scope.row.source_file"></phone-record>
......
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
}, },
transRate(child, mother) { transRate(child, mother) {
if (mother) { if (mother) {
return `${Math.floor(child * 100) / mother}%` return `${Math.floor(child * 1000 / mother)/10}%`
} else { } else {
return '-' return '-'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment