Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
CRM
Commits
dcb41114
Commit
dcb41114
authored
May 19, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ea7dbc4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
95 deletions
+15
-95
Home.vue
src/components/Home.vue
+15
-95
No files found.
src/components/Home.vue
View file @
dcb41114
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment