Commit dcb41114 authored by 黄奎's avatar 黄奎

页面修改

parent ea7dbc4c
......@@ -355,7 +355,6 @@
</el-row>
</div>
<div style="width:100%;height:100%;">
<!-- <sjld :MYdata="[]"/> -->
<div v-if="RankingList.length < 1" class="nodata font-color-info">
<p>努力开发中</p>
</div>
......@@ -386,104 +385,25 @@
TotalPrice: 0
}
},
rankMsg: {
RankType: 1, //排行类型(1-引流排行,2-销售排行,3-利润排行)
QueryType: 2, //查询类型(1-按天查询,2-按月查询,3-按年查询)
StartDay: "2022-05-01", //开始时间
EndDay: "2022-05-31", //结束时间
StartMonth: '2022-04', //开始月份
EndMonth: '2022-05', //结束月份
StartYear: '2022', //开始年份
EndYear: '2022', //结束年份
},
};
},
mounted() {
this.GetRankingList();
this.GetBriefing();
this.createClue();
this.doanLoadFile();
},
methods: {
createClue() {
var url = "";
var msg = {};
//生成线索数据
// url = "/api/ClueStatic/CreateClue";
// msg={};
//每日数据统计
// url = "/api/ClueStatic/GetClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//每月数据统计
// url = "/api/ClueStatic/GetClueMonth";
// msg = {
// YearStr: 2022,
// }
//每月数据成长率统计
// url = "/api/ClueStatic/GetClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//年度线索数据统计
// url = "/api/ClueStatic/GetClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/GetClueYearRate";
// msg = {
// }
if (url && url != "") {
this.apipost(url, msg, (res) => {
console.log("res.data", res.data);
});
}
},
doanLoadFile() {
var url = "";
var msg = {};
//下载每日数据统计
// url = "/api/ClueStatic/DownLoadClueDay";
// msg = {
// YearStr: 2022,
// MonthStr: 5
// }
//下载每月数据统计
// url = "/api/ClueStatic/DownLoadClueMonth";
// msg = {
// YearStr: 2022,
// }
//下载每月数据成长率统计
// url = "/api/ClueStatic/DownLoadClueMonthRate";
// msg = {
// YearStr: 2022,
// }
//下载年度线索数据统计
// url = "/api/ClueStatic/DownLoadClueYear";
// msg = {
// }
//年度线索成长率数据统计
// url = "/api/ClueStatic/DownLoadClueYearRate";
// msg = {
// }
if (url && url != "") {
this.GetLocalFile(url, msg, '数据统计.xls', res => {
console.log("res", res);
});
}
},
//客户简报
GetBriefing() {
this.apipost("/api/CustomerDashboard/GetBriefing", {}, (res) => {
if (res.data.resultCode == 1) {
......@@ -491,13 +411,13 @@
}
});
},
//排行榜
GetRankingList() {
this.apipost(
"/api/CustomerDashboard/GetRankingList", {
rankType: this.rankType
},
"/api/CustomerDashboard/GetRankingList", this.rankMsg,
(res) => {
if (res.data.resultCode == 1) {
console.log("rankData","res.data.data")
this.RankingList = res.data.data;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment