Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
5d2e33e4
Commit
5d2e33e4
authored
Jul 30, 2024
by
xuzhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏当日订单量跳转
parent
0a26b4a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
13 deletions
+30
-13
turnoverDetail.js
src/module/databoard/databoard/turnoverDetail.js
+30
-13
No files found.
src/module/databoard/databoard/turnoverDetail.js
View file @
5d2e33e4
...
...
@@ -412,6 +412,22 @@ export const adapterYoySumData = function (type, data) {
}
}
export
const
adapterXAxisData2
=
function
(
color
,
data
)
{
return
{
type
:
'category'
,
axisTick
:
{
alignWithLabel
:
true
},
axisLine
:
{
onZero
:
false
,
lineStyle
:
{
color
:
color
}
},
data
:
data
}
}
/**
* 业务数据加载
* @param type
...
...
@@ -431,18 +447,19 @@ export const adapterYoySumData = function (type, data) {
data
:
data
};
}
export
const
adapterSeriesDataBar
=
function
(
xAxisIndex
,
name
,
data
)
{
return
{
name
:
name
,
type
:
'bar'
,
xAxisIndex
:
xAxisIndex
,
smooth
:
true
,
emphasis
:
{
focus
:
'series'
},
data
:
data
};
}
export
const
adapterSeriesDataBar
=
function
(
xAxisIndex
,
name
,
data
)
{
return
{
name
:
name
,
type
:
'bar'
,
xAxisIndex
:
xAxisIndex
,
smooth
:
true
,
emphasis
:
{
focus
:
'series'
},
data
:
data
};
}
/**
...
...
@@ -518,7 +535,7 @@ export const getShipmentWeight = async function (department_code, cur_day) {
series
.
push
(
adapterSeriesData
(
null
,
"完成量"
,
line1
));
series
.
push
(
adapterSeriesData
(
null
,
"未完成量"
,
line2
));
var
xAxis
=
new
Array
();
xAxis
.
push
(
adapterXAxisData
(
"#00bbe5"
,
xAxisData
));
xAxis
.
push
(
adapterXAxisData
2
(
"#00bbe5"
,
xAxisData
));
var
seriesBar
=
new
Array
();
seriesBar
.
push
(
adapterSeriesDataBar
(
null
,
"完成量"
,
line1
));
...
...
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