Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 276dd625
authored
Mar 20, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
a1db33e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
linkwe-pc/src/App.vue
linkwe-pc/src/views/index/components/TabContent.vue
linkwe-pc/src/views/index/index.vue
linkwe-pc/src/App.vue
View file @
276dd62
<
template
>
<div
id=
"app"
>
<router-view
/>
<router-view
class=
"app-view"
/>
<!-- 这里使用和index.html同样的loading,无缝衔接 -->
<div
id=
"loader-wrapper"
>
<div
id=
"loader"
></div>
<div
class=
"loader-section section-left"
></div>
<div
class=
"loader-section section-right"
></div>
<div
class=
"load_title"
>
正在加载系统资源,请耐心等待
</div>
</div>
</div>
</
template
>
...
...
@@ -9,3 +17,9 @@ export default {
name
:
'App'
,
}
</
script
>
<
style
scoped
>
.app-view
+
#loader-wrapper
{
display
:
none
;
}
</
style
>
linkwe-pc/src/views/index/components/TabContent.vue
View file @
276dd62
...
...
@@ -162,11 +162,7 @@ export default {
// (条形图)
this
.
xData
=
data
.
map
((
e
)
=>
e
.
xtime
)
if
(
'customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'
.
includes
(
this
.
type
)
)
{
if
(
'customerTotalChart,customerGroupTotalChart,customerGroupMemberTotalChart'
.
includes
(
this
.
type
))
{
// 客户总数 / 客群总数 / 客群成员总数 (条形图)
this
.
series
=
data
.
map
((
e
)
=>
e
.
totalCnt
)
}
else
if
(
this
.
type
===
'realDataChart'
)
{
...
...
@@ -175,13 +171,11 @@ export default {
this
.
series
.
push
(
data
.
map
((
e
)
=>
e
.
lostCnt
))
this
.
series
.
push
(
data
.
map
((
e
)
=>
e
.
netCnt
))
this
.
series
.
push
(
data
.
map
((
e
)
=>
e
.
gjCnt
))
}
else
if
(
this
.
type
===
'groupMemberChart'
)
{
}
else
if
(
this
.
type
===
'groupMemberChart'
)
{
// 实时数据
this
.
series
.
push
(
data
.
map
((
e
)
=>
e
.
addCnt
))
this
.
series
.
push
(
data
.
map
((
e
)
=>
e
.
quitCnt
))
}
else
{
}
else
{
let
dict
=
{
singleChatTotalChart
:
'chatCnt'
,
// 单聊总数
sendMessageNumChart
:
'messageCnt'
,
// 发送消息数
...
...
@@ -347,7 +341,7 @@ export default {
:xData=
"xData"
:legend=
"legend || legendDict[type]"
:series=
"series"
></ChartLine>
:bgLinearGradient=
"$attrs.bgLinearGradient"
></ChartLine>
<!--
<template
v-else-if=
"type.includes('Table')"
>
<el-table
:data=
"list"
style=
"width: 100%"
>
...
...
@@ -368,19 +362,14 @@ export default {
/>
</
template
>
-->
<ChartBar
v-else-if=
"'staffCustomerBar'.includes(type)"
:xData=
"xData"
:series=
"series"
></ChartBar>
<ChartBar
v-else-if=
"'staffCustomerBar'.includes(type)"
:xData=
"xData"
:series=
"series"
></ChartBar>
<ChartLine
v-else-if=
"'rowEchart'.includes('vChart')"
:xData=
"xData"
:legend=
"legend || legendDict[type]"
:series=
"series"
:option=
"option"
></ChartLine>
:option=
"option"
></ChartLine>
</div>
<!-- <SelectWeUser
...
...
linkwe-pc/src/views/index/index.vue
View file @
276dd62
...
...
@@ -53,6 +53,7 @@
<TabContent
type=
"groupMemberChart"
:legend=
"['新增成员', '退出成员']"
bgLinearGradient
:request=
"api.getRealCntMember"
></TabContent>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment