Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-data-view
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 695058bf
authored
Oct 27, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
cba277a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
12 deletions
src/api/modules/sass.js
src/components/ViewTabs.vue
src/views/saas/overview.vue
src/views/user/usertab.vue
src/api/modules/sass.js
View file @
695058b
...
@@ -21,11 +21,32 @@ const getMerchantInProgressThisMonth = params => {
...
@@ -21,11 +21,32 @@ const getMerchantInProgressThisMonth = params => {
}
}
// 当月进行中门店--区域(省份_地图)分布(参数:新车洽谈/新车交付/0~12个月/12个月以上)
// 当月进行中门店--区域(省份_地图)分布(参数:新车洽谈/新车交付/0~12个月/12个月以上)
const
getSaasValueaddedTransformationOverview
=
params
=>
{
const
getSaasValueaddedTransformationOverview
=
params
=>
{
return
window
.
$HTTP
.
get
(
'
/
saasValueaddedTransformation/getSaasValueaddedTransformationOverview'
,
params
)
return
window
.
$HTTP
.
get
(
'saasValueaddedTransformation/getSaasValueaddedTransformationOverview'
,
params
)
}
}
// 门店会员的权益
const
getMerchantData
=
params
=>
{
return
window
.
$HTTP
.
get
(
'saasSubscription/getMerchantMemberEquity'
,
params
)
}
// 智慧车管线索订阅
const
getSmartData
=
params
=>
{
return
window
.
$HTTP
.
get
(
'saasSubscription/getSmartCarManageClueSubscription'
,
params
)
}
// 智慧门店线索订阅
const
getSmartClueData
=
params
=>
{
return
window
.
$HTTP
.
get
(
'saasSubscription/getSmartMerchantClueSubscription'
,
params
)
}
export
default
{
export
default
{
getBusinessType
,
getBusinessType
,
getDevelopedProvinces
,
getDevelopedProvinces
,
getMerchantInProgressThisMonth
,
getMerchantInProgressThisMonth
,
getSaasValueaddedTransformationOverview
getSaasValueaddedTransformationOverview
,
getMerchantData
,
getSmartData
,
getSmartClueData
}
}
src/components/ViewTabs.vue
View file @
695058b
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<div
class=
"tabs flex box"
>
<div
class=
"tabs flex box"
>
<div
class=
"tab"
v-for=
"item in tabs"
:key=
"item.key"
>
<div
class=
"tab"
v-for=
"item in tabs"
:key=
"item.key"
>
<div
class=
"tab-title"
>
{{
item
.
title
}}
</div>
<div
class=
"tab-title"
>
{{
item
.
title
}}
</div>
<div
class=
"tab-text text-linear"
>
{{
dataList
[
item
.
key
]
}}
</div>
<div
v-if=
"item.key!='retention'"
class=
"tab-text text-linear"
>
{{
numAddSymbol
(
dataList
[
item
.
key
])
}}
</div>
<div
v-else
class=
"tab-text text-linear"
>
{{
(
dataList
[
item
.
key
])
*
100
}}
%
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/saas/overview.vue
View file @
695058b
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<div
:class=
"['content-item', 'flex', info.pd ? info.pd : '']"
v-for=
"(info, index) in infoList"
:key=
"index"
>
<div
:class=
"['content-item', 'flex', info.pd ? info.pd : '']"
v-for=
"(info, index) in infoList"
:key=
"index"
>
<div
class=
"content-title"
>
{{
info
.
title
}}
</div>
<div
class=
"content-title"
>
{{
info
.
title
}}
</div>
<template
v-for=
"(data, ids) in info.dataList"
>
<template
v-for=
"(data, ids) in info.dataList"
>
<div
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
1,287
</div>
<div
v-if=
"ids!=3"
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
{{
index
==
0
?
numAddSymbol
(
data
(
smartClueData
))
:
index
==
1
?
numAddSymbol
(
data
(
merchantData
)
):
numAddSymbol
(
data
(
smartData
))
}}
</div>
<div
v-else
:class=
"['content-number', 'num-' + ids]"
:key=
"ids"
>
{{
index
==
0
?
(
data
(
smartClueData
)
*
100
)
:
index
==
1
?
(
data
(
merchantData
)
*
100
):
(
data
(
smartData
)
*
100
)
}}
%
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
<
template
v-for=
"(clewData, clewIds) in clew"
>
<
template
v-for=
"(clewData, clewIds) in clew"
>
<div
class=
"clew-line-text flex-between"
:key=
"clewIds"
>
<div
class=
"clew-line-text flex-between"
:key=
"clewIds"
>
<div>
{{
clewData
.
title
}}
</div>
<div>
{{
clewData
.
title
}}
</div>
<div
class=
"clew-num"
>
1,542,081
</div>
<div
class=
"clew-num"
>
{{
clewInx
==
0
?
numAddSymbol
(
clewData
.
value
(
smartClueData
))
:
index
==
1
?
numAddSymbol
(
clewData
.
value
(
merchantData
))
:
numAddSymbol
(
clewData
.
value
(
smartData
))
}}
</div>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -33,7 +34,7 @@
...
@@ -33,7 +34,7 @@
<
template
v-for=
"(estimateData, estimateIds) in estimate"
>
<
template
v-for=
"(estimateData, estimateIds) in estimate"
>
<div
:class=
"['estimate-line-text', estimateInx == 2 ? 'flex-column retrieve' : 'text-center']"
:key=
"estimateIds"
>
<div
:class=
"['estimate-line-text', estimateInx == 2 ? 'flex-column retrieve' : 'text-center']"
:key=
"estimateIds"
>
<div
v-if=
"estimateInx == 2"
>
挽回损失
</div>
<div
v-if=
"estimateInx == 2"
>
挽回损失
</div>
<div
class=
"estimate-num"
>
1,542,081
</div>
<div
class=
"estimate-num"
>
{{
estimateInx
==
0
?
numAddSymbol
(
estimateData
(
smartClueData
))
:
index
==
1
?
numAddSymbol
(
estimateData
(
merchantData
))
:
numAddSymbol
(
estimateData
(
smartData
))
}}
</div>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -48,6 +49,9 @@ export default {
...
@@ -48,6 +49,9 @@ export default {
name
:
'oversize'
,
name
:
'oversize'
,
data
()
{
data
()
{
return
{
return
{
merchantData
:
''
,
//门店会员的权益
smartData
:
''
,
// 智慧车管线索订阅
smartClueData
:
''
,
//智慧门店线索订阅
titleList
:
[{
text
:
'订阅门店'
},
{
text
:
'线索订阅门店数(累计)'
,
width
:
'3.82vw'
},
{
text
:
'线索订阅门店数(当年新增)'
,
width
:
'4.68vw'
},
{
text
:
'活跃使用门店'
},
{
text
:
'留存率'
}],
titleList
:
[{
text
:
'订阅门店'
},
{
text
:
'线索订阅门店数(累计)'
,
width
:
'3.82vw'
},
{
text
:
'线索订阅门店数(当年新增)'
,
width
:
'4.68vw'
},
{
text
:
'活跃使用门店'
},
{
text
:
'留存率'
}],
infoList
:
[
infoList
:
[
{
{
...
@@ -85,8 +89,35 @@ export default {
...
@@ -85,8 +89,35 @@ export default {
estimateList
:
[[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
],
[
obj
=>
obj
.
totalnum
],
[
obj
=>
obj
.
totalnum
]]
estimateList
:
[[
obj
=>
obj
.
totalnum
,
obj
=>
obj
.
increnum
,
obj
=>
obj
.
activenum
],
[
obj
=>
obj
.
totalnum
],
[
obj
=>
obj
.
totalnum
]]
}
}
},
},
mounted
()
{},
created
()
{
methods
:
{}
this
.
getMerchantData
()
this
.
getSmartData
()
this
.
getSmartClueData
()
},
methods
:
{
getMerchantData
()
{
this
.
api
.
sass
.
getMerchantData
().
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
this
.
merchantData
=
res
.
data
.
dataList
[
0
]
}
})
},
getSmartData
()
{
this
.
api
.
sass
.
getSmartData
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
smartData
=
res
.
data
.
dataList
[
0
]
}
})
},
getSmartClueData
()
{
this
.
api
.
sass
.
getSmartClueData
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
smartClueData
=
res
.
data
.
dataList
[
0
]
}
})
}
}
}
}
</
script
>
</
script
>
...
@@ -223,9 +254,9 @@ export default {
...
@@ -223,9 +254,9 @@ export default {
.retrieve
{
.retrieve
{
font-size
:
10px
;
font-size
:
10px
;
color
:
#ff3540
;
color
:
#ff3540
;
.estimate-num{
.estimate-num
{
color
:
#ff3540
!important
;
color
:
#ff3540
!important
;
margin-top
:
0.37vh
;
margin-top
:
0.37vh
;
}
}
}
}
}
}
...
...
src/views/user/usertab.vue
View file @
695058b
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<template
v-for=
"(tab, index) in userData"
>
<template
v-for=
"(tab, index) in userData"
>
<div
class=
"tab-item"
:key=
"index"
>
<div
class=
"tab-item"
:key=
"index"
>
<div
class=
"tab-title"
>
{{
tab
.
text
}}
</div>
<div
class=
"tab-title"
>
{{
tab
.
text
}}
</div>
<div
class=
"tab-count text-linear"
>
{{
dataList
[
tab
.
value
]
}}
</div>
<div
class=
"tab-count text-linear"
>
{{
numAddSymbol
(
dataList
[
tab
.
value
])
}}
</div>
<div
class=
"tab-increase flex-between"
>
<div
class=
"tab-increase flex-between"
>
<div
class=
"increase-text"
>
当年新增
</div>
<div
class=
"increase-text"
>
当年新增
</div>
<div
class=
"increase-count"
>
{{
dataList
[
tab
.
key
]
}}
</div>
<div
class=
"increase-count"
>
{{
numAddSymbol
(
dataList
[
tab
.
key
])
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
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