Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

杨树贤 / kefu_server

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit cb7518d6 authored 5 years ago by keith's avatar keith
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

首页增加总服务人次

parent 0085c9ac
Show whitespace changes
Inline Side-by-side
Showing with 9 additions and 0 deletions
  • ui/kefu_admin/src/views/home/index.vue
ui/kefu_admin/src/views/home/index.vue
View file @ cb7518d6
......@@ -45,6 +45,7 @@
<el-col :span="8">
<div class="mini-im-home-title">客服<span style="color: #f44336">{{optionsDate[selectDateValue].label}}</span>接入量统计</div>
<ve-funnel :data="membersChartData"></ve-funnel>
<div style="text-align: center;color: #f44336">{{optionsDate[selectDateValue].label}}总服务({{membersChartServicesCounts}}人次)</div>
</el-col>
</el-row>
<div>
......@@ -144,6 +145,14 @@ export default {
self.todayStatisticalTableData[0].count = parseInt(totalCount) + count
}
return count
},
membersChartServicesCounts(){
if(this.membersChartData.rows.length == 0) return 0;
var count = 0;
for(let i =0; i<this.membersChartData.rows.length; i++){
count += parseInt(this.membersChartData.rows[i]['数值'])
}
return count;
}
},
methods: {
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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 sign in to comment