Commit 3bb922ef by Lin

feat: 线上运营分析接口联调

1 parent 4afc657d
......@@ -188,7 +188,7 @@
import HeaderCustom from '../strategyCentre/compoments/headerCustom.vue';
import SelectCustom from '../strategyCentre/compoments/selectCustom.vue';
import * as echarts from 'echarts';
import { getBIMatterList,getStrategyTotal,getStrategyTypeDist } from "@/api/earlyWarningManager";
import { getBIMatterList,getStrategyTotal,getStrategyTypeDist,getStrategyOnlineDist } from "@/api/earlyWarningManager";
import { Util, deepClone } from "@/common/util";
import dayjs from 'dayjs';
......@@ -427,6 +427,8 @@ export default {
this.fetchStrategyTotal();
// 调用策略类型分布接口
this.fetchStrategyTypeDist();
// 调用线上运营分布接口
this.fetchStrategyOnlineDist();
},
beforeDestroy() {
if (this.myChart) {
......@@ -668,6 +670,24 @@ export default {
} catch (error) {
console.error('获取策略类型分布失败:', error);
}
},
/**
* 获取线上运营分布
*/
async fetchStrategyOnlineDist() {
try {
const params = {
startDate: this.startDate,
endDate: this.endDate,
businessType: this.currentTab.value
};
const res = await getStrategyOnlineDist(params);
if (res.data && Array.isArray(res.data)) {
// this.rankData = res.data;
}
} catch (error) {
console.error('获取线上运营分布失败:', error);
}
}
}
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!