Commit 53f726a8 by 匡雅琴

接口联调

1 parent 7841f29e
...@@ -8,6 +8,11 @@ const getCoreActiveMerchant = params => { ...@@ -8,6 +8,11 @@ const getCoreActiveMerchant = params => {
return window.$HTTP.get('inner/getCoreActiveMerchant', params) return window.$HTTP.get('inner/getCoreActiveMerchant', params)
} }
// 核心指标:SAAS门店留存率
const getCoreRetention = params => {
return window.$HTTP.get('inner/getCoreRetention', params)
}
// 数字化链接:成品设备激活趋势 // 数字化链接:成品设备激活趋势
const getLinkFinishedProductTrend = params => { const getLinkFinishedProductTrend = params => {
return window.$HTTP.get('inner/getLinkFinishedProductTrend', params) return window.$HTTP.get('inner/getLinkFinishedProductTrend', params)
...@@ -81,6 +86,7 @@ const getMarketingTrend = params => { ...@@ -81,6 +86,7 @@ const getMarketingTrend = params => {
export default { export default {
getAllOverview, getAllOverview,
getCoreActiveMerchant, getCoreActiveMerchant,
getCoreRetention,
getLinkFinishedProductTrend, getLinkFinishedProductTrend,
getManageClueAnalysis, getManageClueAnalysis,
getManageClueSalesAmountRationality, getManageClueSalesAmountRationality,
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
selectList: [ selectList: [
{ {
name: '门店活跃统计', name: '门店活跃统计',
val: 'num' val: 'activeMerchant'
}, },
{ {
name: 'Saas门店留存率', name: 'Saas门店留存率',
...@@ -34,30 +34,27 @@ export default { ...@@ -34,30 +34,27 @@ export default {
} }
], ],
selectType: '', selectType: '',
dataList: [ dataList: [],
{ activeMerchant: [],
statMonth: '2021', coreRetention: [],
actiNum: 400
},
{
statMonth: '2022',
actiNum: 400
},
{
statMonth: '2023',
actiNum: 400
}
],
colorList: ['#22D8FF', '#223FA9', '#061422'], colorList: ['#22D8FF', '#223FA9', '#061422'],
tooltips: { tooltips: {
label: '场次', label: '门店数',
attrName: 'actiNum' attrName: 'saasMerchantNum',
XAxis: 'statYear'
} }
} }
}, },
created() {
// 门店活跃统计
this.getCoreActiveMerchant()
// SAAS门店留存率
this.getCoreRetention()
},
mounted() { mounted() {
this.$refs.coreChartRef.drawBar() // this.$refs.coreChartRef.drawBar()
this.$bus.$on('innerGetAllOverview', data => { this.$bus.$on('innerGetAllOverview', data => {
this.coreIndexList = data.filter(item => item.tag === 'coreKeepMerchant') this.coreIndexList = data.filter(item => item.tag === 'coreKeepMerchant')
...@@ -81,6 +78,20 @@ export default { ...@@ -81,6 +78,20 @@ export default {
// this.paymentData = this.dataList.completed // this.paymentData = this.dataList.completed
// break // 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
} }
} }
} }
......
...@@ -55,6 +55,10 @@ export default { ...@@ -55,6 +55,10 @@ export default {
} }
}, },
created() {
this.getLinkFinishedProductTrend()
},
mounted() { mounted() {
this.$refs.linkChartRef.drawBar() this.$refs.linkChartRef.drawBar()
...@@ -64,7 +68,15 @@ export default { ...@@ -64,7 +68,15 @@ export default {
}, },
methods: { 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> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!