Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
e050452c
Commit
e050452c
authored
Jul 18, 2022
by
fuqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【商家端】首页数据统计
parent
8cafabfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
src/page/data/chart.vue
+3
-3
src/page/data/data.vue
+9
-9
No files found.
src/page/data/chart.vue
View file @
e050452c
...
...
@@ -19,7 +19,7 @@
<el-radio-button
label=
"商品数"
></el-radio-button>
<el-radio-button
label=
"订单数"
></el-radio-button>
<el-radio-button
label=
"流水"
></el-radio-button>
<el-radio-button
label=
"历史
体
现"
></el-radio-button>
<el-radio-button
label=
"历史
提
现"
></el-radio-button>
</el-radio-group>
<echarts-from
ref=
"juwuChart"
:echartsTitle=
"line"
:xAxis=
"xAxis"
:yAxis=
"yAxis"
:seriesData=
"series"
>
</echarts-from>
...
...
@@ -44,7 +44,7 @@
line
:
'line'
,
circle
:
'circle'
,
chartType
:
'商品数'
,
dateType
:
'
近
7天'
,
dateType
:
'7天'
,
xAxis
:
[],
yAxis
:[{
show
:
false
}],
infoList
:
{},
...
...
@@ -59,7 +59,7 @@
type
=
"2"
}
else
if
(
tab
==
'流水'
)
{
type
=
"3"
}
else
if
(
tab
==
'历史
体现A币
'
)
{
}
else
if
(
tab
==
'历史
提现
'
)
{
type
=
"4"
}
return
type
...
...
src/page/data/data.vue
View file @
e050452c
...
...
@@ -23,19 +23,19 @@
<div
class=
"layout_h_b"
style=
"padding-top: 20px;"
>
<div
class=
"number_container"
>
<div
class=
"number_name"
>
商品数
</div>
<div
class=
"number"
>
{{
stat
.
user
Num
}}
件
</div>
<div
class=
"number"
>
{{
stat
.
goods
Num
}}
件
</div>
</div>
<div
class=
"number_container"
>
<div
class=
"number_name"
>
订单数
</div>
<div
class=
"number"
>
{{
stat
.
vip
Num
}}
件
</div>
<div
class=
"number"
>
{{
stat
.
order
Num
}}
件
</div>
</div>
<div
class=
"number_container"
>
<div
class=
"number_name"
>
流水
</div>
<div
class=
"number"
>
{{
stat
.
taskNum
}}
元
</div>
<div
class=
"number"
>
{{
stat
.
mallMoney
}}
元
</div>
</div>
<div
class=
"number_container"
>
<div
class=
"number_name"
>
历史
体
现
</div>
<div
class=
"number"
>
{{
stat
.
taskNum
}}
元
</div>
<div
class=
"number_name"
>
历史
提
现
</div>
<div
class=
"number"
>
{{
stat
.
merchantWithdraw
}}
元
</div>
</div>
</div>
</div>
...
...
@@ -54,7 +54,7 @@
data
:
function
()
{
return
{
range
:
[],
statRange
:
'
近7天
'
,
statRange
:
'
今日
'
,
stat
:
{
}
...
...
@@ -84,11 +84,11 @@
start
=
mStart
end
=
mEnd
}
else
if
(
state
==
'本月'
)
{
end
.
setDate
(
start
.
getMonth
()
-
1
)
end
=
new
Date
(
end
.
getFullYear
(),
end
.
getMonth
(),
1
);
}
else
if
(
state
==
'本季度'
)
{
end
.
setMonth
(
end
.
getMonth
()
-
3
)
end
=
new
Date
(
end
.
getFullYear
(),
end
.
getMonth
()
-
3
,
1
);
}
else
if
(
state
==
'本年'
)
{
end
.
setFullYear
(
end
.
getFullYear
()
-
1
)
end
=
new
Date
(
end
.
getFullYear
(),
0
,
1
);
}
if
(
state
)
{
this
.
range
=
[
end
.
format
(
'yyyy-mm-dd'
),
start
.
format
(
'yyyy-mm-dd'
)]
...
...
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