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 7189c637
authored
Sep 07, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.2.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v2.2.0
2 parents
bdf2aed6
53f726a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
19 deletions
src/api/modules/internal.js
src/views/internal/components/CoreIndex.vue
src/views/internal/components/DigitalLink.vue
src/api/modules/internal.js
View file @
7189c63
...
...
@@ -8,6 +8,11 @@ const getCoreActiveMerchant = params => {
return
window
.
$HTTP
.
get
(
'inner/getCoreActiveMerchant'
,
params
)
}
// 核心指标:SAAS门店留存率
const
getCoreRetention
=
params
=>
{
return
window
.
$HTTP
.
get
(
'inner/getCoreRetention'
,
params
)
}
// 数字化链接:成品设备激活趋势
const
getLinkFinishedProductTrend
=
params
=>
{
return
window
.
$HTTP
.
get
(
'inner/getLinkFinishedProductTrend'
,
params
)
...
...
@@ -81,6 +86,7 @@ const getMarketingTrend = params => {
export
default
{
getAllOverview
,
getCoreActiveMerchant
,
getCoreRetention
,
getLinkFinishedProductTrend
,
getManageClueAnalysis
,
getManageClueSalesAmountRationality
,
...
...
src/views/internal/components/CoreIndex.vue
View file @
7189c63
...
...
@@ -26,7 +26,7 @@ export default {
selectList
:
[
{
name
:
'门店活跃统计'
,
val
:
'
num
'
val
:
'
activeMerchant
'
},
{
name
:
'Saas门店留存率'
,
...
...
@@ -34,30 +34,27 @@ export default {
}
],
selectType
:
''
,
dataList
:
[
{
statMonth
:
'2021'
,
actiNum
:
400
},
{
statMonth
:
'2022'
,
actiNum
:
400
},
{
statMonth
:
'2023'
,
actiNum
:
400
}
],
dataList
:
[],
activeMerchant
:
[],
coreRetention
:
[],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
label
:
'场次'
,
attrName
:
'actiNum'
label
:
'门店数'
,
attrName
:
'saasMerchantNum'
,
XAxis
:
'statYear'
}
}
},
created
()
{
// 门店活跃统计
this
.
getCoreActiveMerchant
()
// SAAS门店留存率
this
.
getCoreRetention
()
},
mounted
()
{
this
.
$refs
.
coreChartRef
.
drawBar
()
//
this.$refs.coreChartRef.drawBar()
this
.
$bus
.
$on
(
'innerGetAllOverview'
,
data
=>
{
this
.
coreIndexList
=
data
.
filter
(
item
=>
item
.
tag
===
'coreKeepMerchant'
)
...
...
@@ -81,6 +78,20 @@ export default {
// this.paymentData = this.dataList.completed
// break
// }
},
async
getCoreActiveMerchant
()
{
const
_data
=
await
this
.
api
.
internal
.
getCoreActiveMerchant
()
console
.
log
(
_data
);
const
_dataList
=
_data
.
data
.
dataList
this
.
activeMerchant
=
this
.
dataList
=
_dataList
console
.
log
(
this
.
dataList
);
this
.
$refs
.
coreChartRef
.
drawBar
()
},
async
getCoreRetention
()
{
const
_data
=
await
this
.
api
.
internal
.
getCoreRetention
()
console
.
log
(
_data
);
const
_dataList
=
_data
.
data
.
dataList
this
.
coreRetention
=
_dataList
}
}
}
...
...
src/views/internal/components/DigitalLink.vue
View file @
7189c63
...
...
@@ -55,6 +55,10 @@ export default {
}
},
created
()
{
this
.
getLinkFinishedProductTrend
()
},
mounted
()
{
this
.
$refs
.
linkChartRef
.
drawBar
()
...
...
@@ -64,7 +68,15 @@ export default {
},
methods
:
{
selectVal
(
val
)
{}
selectVal
(
val
)
{},
async
getLinkFinishedProductTrend
()
{
const
params
=
{
queryItem
:
'finished'
,
// finished--成品,semifinished--半成品
queryType
:
1
}
const
_data
=
await
this
.
api
.
internal
.
getLinkFinishedProductTrend
(
params
)
const
_dataList
=
_data
.
data
.
dataList
}
}
}
</
script
>
...
...
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