Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-report
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
4
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit df8a2fd7
authored
Mar 08, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wangzh_dev_v1.2.1' into 'master'
控制台打开 See merge request
!1
2 parents
6ec80da9
629a9588
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
src/components/GroupRanking.vue
src/components/Tab.vue
src/main.js
src/store/modules/report.js
src/components/GroupRanking.vue
View file @
df8a2fd
...
...
@@ -25,7 +25,7 @@
</
template
>
</template>
<
template
v-else
>
<template
v-if=
"tabType.index == 0 ? qyCustomerRatioMerchantTop
.length > 0 :
qyTotalCountMerchantTop.length > 0"
>
<template
v-if=
"tabType.index == 0 ? qyCustomerRatioMerchantTop
&&qyCustomerRatioMerchantTop.length > 0 : qyTotalCountMerchantTop&&
qyTotalCountMerchantTop.length > 0"
>
<div
class=
"group-inline flex"
v-for=
"(c, index) in tabType.index == 0 ? qyCustomerRatioMerchantTop : qyTotalCountMerchantTop"
:key=
"c.id"
>
<div
:class=
"['group-type', index == 0 ? 'group-type-index' : '']"
>
{{
index
+
1
}}
...
...
@@ -76,7 +76,9 @@ export default {
qyTotalCountMerchantTop
:
state
=>
state
.
report
.
qyTotalCountMerchantTop
//企微客户数排行
})
},
mounted
()
{},
mounted
()
{
},
methods
:
{
click
(
tabIndex
)
{
this
.
tabIndex
=
tabIndex
...
...
src/components/Tab.vue
View file @
df8a2fd
...
...
@@ -49,8 +49,8 @@ export default {
},
mounted
()
{},
methods
:
{
click
(
tabIndex
)
{
this
.
showLoading
()
this
.
tabIndex
=
tabIndex
this
.
$emit
(
'change'
,
tabIndex
)
}
...
...
src/main.js
View file @
df8a2fd
...
...
@@ -38,12 +38,11 @@ Vue.prototype.to = function (name, params) {
// import 'lib-flexible/flexible.js'
Vue
.
config
.
productionTip
=
false
//
import VConsole from 'vconsole'
//
const vConsole = new VConsole()
import
VConsole
from
'vconsole'
const
vConsole
=
new
VConsole
()
const
isMock
=
true
fetchConfig
(
!
isMock
).
then
(
res
=>
{
console
.
log
(
res
)
// 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn
Vue
.
use
(
cfg
)
...
...
src/store/modules/report.js
View file @
df8a2fd
...
...
@@ -69,8 +69,6 @@ export default {
state
.
productionValueReportList
=
payload
.
reportData
.
productionValueReportList
?
payload
.
reportData
.
productionValueReportList
:
[];
state
.
trendList
=
payload
.
reportData
.
trendList
?
payload
.
reportData
.
trendList
:
[]
//新增产值趋势图
state
.
trendChartList
=
[]
//客户的趋势图
},
//设置底部tabIndex
[
"SET_TAB_INDEX"
](
state
,
payload
)
{
...
...
@@ -89,7 +87,8 @@ export default {
},
[
'SET_UESR_INFI'
](
state
,
payload
)
{
state
.
userInfo
.
accountLevel
=
payload
.
accountLevel
},
},
//获取客户报表数据
[
'SET_CUSTOMER_REPORT'
](
state
,
payload
)
{
//新增企微客户数环比
...
...
@@ -125,8 +124,8 @@ export default {
payload
.
reportData
.
flowQyDegree
=
payload
.
reportData
.
flowQyDegree
!=
null
&&
(
payload
.
reportData
.
flowQyDegree
*
100
).
toFixed
(
0
)
+
'%'
payload
.
reportData
.
applyDegree
=
payload
.
reportData
.
applyDegree
!=
null
&&
(
payload
.
reportData
.
applyDegree
*
100
).
toFixed
(
0
)
+
'%'
state
.
reportData
=
payload
.
reportData
state
.
qyCustomerRatioMerchantTop
=
payload
.
reportData
.
qyCustomerRatioMerchantTop
//企微客户占比
state
.
qyTotalCountMerchantTop
=
payload
.
reportData
.
qyTotalCountMerchantTop
//企微客户占比
state
.
qyCustomerRatioMerchantTop
=
payload
.
reportData
.
qyCustomerRatioMerchantTop
&&
payload
.
reportData
.
qyCustomerRatioMerchantTop
//企微客户占比
state
.
qyTotalCountMerchantTop
=
payload
.
reportData
.
qyTotalCountMerchantTop
&&
payload
.
reportData
.
qyTotalCountMerchantTop
//企微客户占比
state
.
staffDistributionVOList
=
payload
.
reportData
.
staffDistributionVOList
?
payload
.
reportData
.
staffDistributionVOList
:
[]
//客户分布
state
.
trendChartList
=
payload
.
reportData
.
trendChartList
?
payload
.
reportData
.
trendChartList
:
[]
},
...
...
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