Commit 53f726a8 by 匡雅琴

接口联调

1 parent 7841f29e
......@@ -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,
......
......@@ -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
}
}
}
......
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!