Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 05d344f7
authored
Sep 07, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
总览数据接口联调
1 parent
a2f0c404
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
271 deletions
src/views/home/pages/ViewInterior.vue
src/views/internal/InternalRight.vue
src/views/internal/components/CoreIndex.vue
src/views/internal/components/DigitalLink.vue
src/views/internal/components/DigitalMarketing.vue
src/views/internal/components/ViewClue.vue
src/views/internal/components/ViewEdun.vue
src/views/internal/components/ViewIntersts.vue
src/views/internal/components/constant.js
src/views/home/pages/ViewInterior.vue
View file @
05d344f
...
...
@@ -17,6 +17,7 @@
<
script
>
import
InternalLeft
from
"../../internal/InternalLeft.vue"
import
InternalRight
from
"../../internal/InternalRight.vue"
import
{
overViewList
}
from
'../../internal/components/constant'
export
default
{
name
:
'ViewInterior'
,
components
:
{
...
...
@@ -24,10 +25,29 @@ export default {
InternalRight
},
data
()
{
return
{}
return
{
overViewData
:
overViewList
}
},
created
()
{
this
.
getAllOverview
()
},
mounted
()
{
},
methods
:
{
async
getAllOverview
()
{
const
_data
=
await
this
.
api
.
internal
.
getAllOverview
()
const
_dataList
=
_data
.
data
.
dataList
[
0
]
console
.
log
(
_dataList
);
this
.
overViewData
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
if
(
item
.
bottomValue
)
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
if
(
item
.
bottomType
===
'ratio'
)
{
item
.
ratioLeftValue
=
_dataList
[
item
.
ratioLeftValueName
]
item
.
ratioRightValue
=
_dataList
[
item
.
ratioRightValueName
]
}
})
this
.
$bus
.
$emit
(
'innerGetAllOverview'
,
this
.
overViewData
)
}
}
}
</
script
>
...
...
src/views/internal/InternalRight.vue
View file @
05d344f
...
...
@@ -3,6 +3,7 @@
<box-title
title=
"数字化管理"
></box-title>
<Tab
class=
"tab"
:list=
"tabList"
:width=
"25.5"
:itemWidth=
"9"
@
changeTab=
"changeTab"
></Tab>
<div
class=
"digital-manager-box-content"
>
<StatisticsBox
:list=
"digitalMarketingList"
></StatisticsBox>
<components
:is=
"tabName"
></components>
</div>
</div>
...
...
@@ -23,64 +24,8 @@ export default {
return
{
tabList
:
[
'线索服务'
,
'会员权益'
,
'车管(虎哥E盾)'
],
activeName
:
0
,
digitalMarketingList
:
[
{
name
:
'注册门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'活跃门店总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'设备订阅数量总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总收入'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
]
digitalMarketingList
:
[],
allDigitalMarketingList
:
[]
}
},
...
...
@@ -101,11 +46,32 @@ export default {
return
sname
}
},
mounted
()
{},
mounted
()
{
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
allDigitalMarketingList
=
data
this
.
digitalMarketingList
=
data
.
filter
(
item
=>
item
.
tag
===
'digitalManageClue'
)
console
.
log
(
this
.
allDigitalMarketingList
);
})
},
methods
:
{
changeTab
(
data
)
{
this
.
activeName
=
data
let
_data
=
[]
switch
(
data
)
{
case
0
:
_data
=
this
.
allDigitalMarketingList
.
filter
(
item
=>
item
.
tag
===
'digitalManageClue'
)
this
.
digitalMarketingList
=
_data
break
case
1
:
_data
=
this
.
allDigitalMarketingList
.
filter
(
item
=>
item
.
tag
===
'digitalManageMember'
)
this
.
digitalMarketingList
=
_data
break
case
2
:
_data
=
this
.
allDigitalMarketingList
.
filter
(
item
=>
item
.
tag
===
'digitalManageE'
)
this
.
digitalMarketingList
=
_data
break
}
}
}
}
...
...
@@ -116,9 +82,9 @@ export default {
width
:
47.48vw
;
height
:
89.33vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
/deep/.tab-item-box
{
margin
:
0
auto
;
}
/deep/.tab-item-box
{
margin
:
0
auto
;
}
.digital-manager-box-content
{
padding
:
1.56vh
0.83vw
;
}
...
...
src/views/internal/components/CoreIndex.vue
View file @
05d344f
...
...
@@ -22,36 +22,7 @@ export default {
data
()
{
return
{
tabList
:
[
'SaaS+门店总数'
,
'有成交门店数'
,
'活跃门店数'
],
coreIndexList
:
[
{
name
:
'门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'留存门店总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
coreIndexList
:
[],
selectList
:
[
{
name
:
'门店活跃统计'
,
...
...
@@ -87,6 +58,10 @@ export default {
mounted
()
{
this
.
$refs
.
coreChartRef
.
drawBar
()
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
coreIndexList
=
data
.
filter
(
item
=>
item
.
tag
===
'coreKeepMerchant'
)
})
},
methods
:
{
...
...
src/views/internal/components/DigitalLink.vue
View file @
05d344f
...
...
@@ -22,36 +22,7 @@ export default {
},
data
()
{
return
{
digitalLinkList
:
[
{
name
:
'成品激活设备总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'半成品激活设备总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
digitalLinkList
:
[],
selectList
:
[
{
name
:
'成品设备激活趋势'
,
...
...
@@ -86,6 +57,10 @@ export default {
mounted
()
{
this
.
$refs
.
linkChartRef
.
drawBar
()
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
digitalLinkList
=
data
.
filter
(
item
=>
item
.
tag
===
'digitalLink'
)
})
},
methods
:
{
...
...
src/views/internal/components/DigitalMarketing.vue
View file @
05d344f
...
...
@@ -15,7 +15,7 @@
<
script
>
import
DigitalMarketingLeft
from
'./DigitalMarketingLeft.vue'
import
DigitalMarketingRight
from
'./DigitalMarketingRight.vue'
import
{
digitalMarketingObj
}
from
'./constant'
//
import { digitalMarketingObj } from './constant'
export
default
{
name
:
'DigitalMarketing'
,
components
:
{
...
...
@@ -26,11 +26,18 @@ export default {
return
{
tabList
:
[
'1.1精品升级'
,
'1.3售后众筹'
],
activeName
:
0
,
digitalMarketingList
:
digitalMarketingObj
.
boutique
// digitalMarketingList: digitalMarketingObj.boutique
allDigitalMarketingList
:
[],
digitalMarketingList
:
[]
}
},
mounted
()
{},
mounted
()
{
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
allDigitalMarketingList
=
data
this
.
digitalMarketingList
=
data
.
filter
(
item
=>
item
.
tag
===
'digitalMarketingUpgrade'
)
})
},
methods
:
{
changeTab
(
data
)
{
...
...
@@ -38,11 +45,10 @@ export default {
console
.
log
(
data
);
switch
(
data
)
{
case
0
:
this
.
digitalMarketingList
=
digitalMarketingObj
.
boutique
this
.
digitalMarketingList
=
this
.
allDigitalMarketingList
.
filter
(
item
=>
item
.
tag
===
'digitalMarketingUpgrade'
)
break
case
1
:
console
.
log
(
digitalMarketingObj
);
this
.
digitalMarketingList
=
digitalMarketingObj
.
crowdfunding
this
.
digitalMarketingList
=
this
.
allDigitalMarketingList
.
filter
(
item
=>
item
.
tag
===
'digitalMarketingCrowdFunding'
)
break
}
this
.
$bus
.
$emit
(
'digitalMarketingTabChange'
,
data
)
...
...
src/views/internal/components/ViewClue.vue
View file @
05d344f
<
template
>
<div
class=
"clue"
>
<StatisticsBox
:list=
"digitalMarketingList"
></StatisticsBox>
<div
class=
"trend-box"
>
<div
class=
"patch-title"
>
注册门店趋势
</div>
<BarChart
ref=
"signChartRef"
domId=
"signChart"
:height=
"chartHeight"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips"
></BarChart>
...
...
@@ -45,64 +44,6 @@ export default {
},
data
()
{
return
{
digitalMarketingList
:
[
{
name
:
'注册门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'活跃门店总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'设备订阅数量总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总收入'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
chartHeight
:
'18vh'
,
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
greenColorList
:
[
'#2AD191'
,
'#0E958D'
,
'#063139'
],
...
...
@@ -143,7 +84,6 @@ export default {
.trend-box
{
display
:
inline-block
;
height
:
21.78vh
;
margin-top
:
0.89vh
;
width
:
50%
;
&:nth-child(1),
&:nth-child(2)
{
...
...
src/views/internal/components/ViewEdun.vue
View file @
05d344f
<
template
>
<div
class=
"edun-box"
>
<StatisticsBox
:list=
"digitalEdunList"
></StatisticsBox>
<div
class=
"edun-statistic-box"
>
<div
class=
"patch-title
title
"
>
按年统计客户销售金额分布的合理性
</div>
<div
class=
"patch-title"
>
按年统计客户销售金额分布的合理性
</div>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"8.1"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:64.89%
</div>
...
...
@@ -31,36 +30,6 @@ export default {
},
data
()
{
return
{
digitalEdunList
:
[
{
name
:
'品牌商总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总收入'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
tabList
:
[
'品牌商数'
,
'总金额'
],
priceList
:
edunPriceList
,
dataList
:
[
...
...
@@ -95,7 +64,7 @@ export default {
statMonth
:
'2023'
,
actiNum
:
800
}
]
,
]
}
},
...
...
@@ -117,7 +86,7 @@ export default {
.edun-statistic-box
{
height
:
32vh
;
.inner-tab
{
margin
:
0.92vh
0
;
margin
:
0.92vh
0
;
}
.switch-box
{
display
:
flex
;
...
...
src/views/internal/components/ViewIntersts.vue
View file @
05d344f
<
template
>
<div
class=
"equity-box"
>
<StatisticsBox
:list=
"digitalequityList"
></StatisticsBox>
<div
class=
"equity-statistic-box"
>
<div
class=
"patch-title
title
"
>
按年统计客户销售金额分布的合理性
</div>
<div
class=
"patch-title"
>
按年统计客户销售金额分布的合理性
</div>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"12.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<div
class=
"switch-box"
>
<div
class=
"text"
>
收入占比:64.89%
</div>
...
...
@@ -31,50 +30,6 @@ export default {
},
data
()
{
return
{
digitalequityList
:
[
{
name
:
'门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'会员总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总收入总览'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
tabList
:
[
'门店数'
,
'会员人数'
,
'会员人数'
],
priceList
:
equityPriceList
,
dataList
:
[
...
...
@@ -109,7 +64,7 @@ export default {
statMonth
:
'2023'
,
actiNum
:
800
}
]
,
]
}
},
...
...
@@ -131,7 +86,7 @@ export default {
.equity-statistic-box
{
height
:
32vh
;
.inner-tab
{
margin
:
0.92vh
0
;
margin
:
0.92vh
0
;
}
.switch-box
{
display
:
flex
;
...
...
src/views/internal/components/constant.js
View file @
05d344f
This diff is collapsed.
Click to expand it.
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