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
fd7d9058
Commit
fd7d9058
authored
Dec 15, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复图表显示错误
parent
12d12d5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/types/api/statistic.ts
+1
-1
src/views/Dashboard.vue
+2
-3
No files found.
src/types/api/statistic.ts
View file @
fd7d9058
...
...
@@ -30,7 +30,7 @@ export interface statisticData {
}
export
interface
trendType
{
confirmNum
:
number
// 接单数
produce
d
Num
:
number
// 生产数
produceNum
:
number
// 生产数
shipmentNum
:
number
// 发货数
shipmentRateOf24Hour
:
number
// 24小时发货率
shipmentRateOf48Hour
:
number
// 48小时发货率
...
...
src/views/Dashboard.vue
View file @
fd7d9058
...
...
@@ -694,7 +694,6 @@ const createChartOption = (config: typeof chartConfig1) => {
series
:
data
.
series
.
map
((
item
)
=>
({
name
:
item
.
name
,
type
:
'line'
,
stack
:
'Total'
,
data
:
item
.
data
,
smooth
:
true
,
lineStyle
:
{
...
...
@@ -832,7 +831,7 @@ const getchartTimes = async (v: string, type: string) => {
const
updateOrderTrendChart
=
(
data
:
trendType
[],
type
:
number
|
string
)
=>
{
const
confirmNums
=
data
.
map
((
el
)
=>
el
.
confirmNum
)
const
produce
dNums
=
data
.
map
((
el
)
=>
el
.
produced
Num
)
const
produce
Nums
=
data
.
map
((
el
)
=>
el
.
produce
Num
)
const
shipmentNums
=
data
.
map
((
el
)
=>
el
.
shipmentNum
)
const
startTimes
=
data
.
map
((
el
)
=>
el
.
startTime
)
const
timerange
=
data
.
map
((
el
)
=>
`
${
el
.
startTime
}
——
${
el
.
endTime
}
`
)
...
...
@@ -843,7 +842,7 @@ const updateOrderTrendChart = (data: trendType[], type: number | string) => {
chartConfig1
.
value
.
xAxisData
=
timerange
}
chartConfig1
.
value
.
series
[
0
].
data
=
confirmNums
chartConfig1
.
value
.
series
[
1
].
data
=
produce
d
Nums
chartConfig1
.
value
.
series
[
1
].
data
=
produceNums
chartConfig1
.
value
.
series
[
2
].
data
=
shipmentNums
}
...
...
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