Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
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
qinjianhui
factory_front
Commits
219f633c
Commit
219f633c
authored
Dec 31, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 概览数据优化
parent
431e6b88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
src/views/Dashboard.vue
+12
-18
No files found.
src/views/Dashboard.vue
View file @
219f633c
...
...
@@ -1000,9 +1000,8 @@ const getStatisticDataApi = async () => {
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
const
isEmpty
=
checkOrderTrendDataEmpty
(
res
.
data
)
if
(
!
isEmpty
)
{
updateOrderTrendChart
(
res
.
data
,
0
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateOrderTrendChart
(
res
.
data
,
0
)
updateChart
(
chartInstances
[
0
],
chartConfig1
,
...
...
@@ -1025,9 +1024,8 @@ const getStatisticDataApi = async () => {
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
const
isEmpty
=
checkShipmentTrendDataEmpty
(
res
.
data
)
if
(
!
isEmpty
)
{
updateShipmentTrendChart
(
res
.
data
,
0
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateShipmentTrendChart
(
res
.
data
,
0
)
updateChart
(
chartInstances
[
1
],
chartConfig2
,
...
...
@@ -1050,9 +1048,8 @@ const getStatisticDataApi = async () => {
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
const
isEmpty
=
checkOvertimeTrendDataEmpty
(
res
.
data
)
if
(
!
isEmpty
)
{
updateOvertimeTrendChart
(
res
.
data
,
0
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateOvertimeTrendChart
(
res
.
data
,
0
)
updateChart
(
chartInstances
[
2
],
chartConfig3
,
...
...
@@ -1112,9 +1109,8 @@ const getchartTimes = async (v: string, type: string) => {
})
if
(
type
==
'ORDER_TREND'
)
{
const
isEmpty
=
checkOrderTrendDataEmpty
(
data
)
if
(
!
isEmpty
)
{
updateOrderTrendChart
(
data
,
v
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateOrderTrendChart
(
data
,
v
)
updateChart
(
chartInstances
[
0
],
chartConfig1
,
...
...
@@ -1125,9 +1121,8 @@ const getchartTimes = async (v: string, type: string) => {
orderChart1Loading
.
value
=
!
(
data
&&
data
.
length
>
0
)
}
else
if
(
type
==
'SHIPMENT_TREND'
)
{
const
isEmpty
=
checkShipmentTrendDataEmpty
(
data
)
if
(
!
isEmpty
)
{
updateShipmentTrendChart
(
data
,
v
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateShipmentTrendChart
(
data
,
v
)
updateChart
(
chartInstances
[
1
],
chartConfig2
,
...
...
@@ -1138,9 +1133,8 @@ const getchartTimes = async (v: string, type: string) => {
orderChart2Loading
.
value
=
!
(
data
&&
data
.
length
>
0
)
}
else
{
const
isEmpty
=
checkOvertimeTrendDataEmpty
(
data
)
if
(
!
isEmpty
)
{
updateOvertimeTrendChart
(
data
,
v
)
}
// 无论数据是否为空,都要更新 x 轴数据
updateOvertimeTrendChart
(
data
,
v
)
updateChart
(
chartInstances
[
2
],
chartConfig3
,
...
...
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