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
42cabc89
Commit
42cabc89
authored
Aug 21, 2024
by
xuzhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按钮颜色修改
parent
6c9c20b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
department-shipment.vue
src/module/databoard/databoard/department-shipment.vue
+25
-11
No files found.
src/module/databoard/databoard/department-shipment.vue
View file @
42cabc89
<
template
>
<div
class=
"target-achievement"
>
<div
class=
"menu"
>
<input
type=
"button"
value=
"上海事业部"
@
click=
"changeDimension('L022')"
>
<input
type=
"button"
value=
"广东事业部"
@
click=
"changeDimension('L026')"
>
<input
type=
"button"
value=
"江苏事业部"
@
click=
"changeDimension('L024')"
>
<input
type=
"button"
value=
"天津事业部"
@
click=
"changeDimension('L025')"
>
<input
type=
"button"
value=
"成都事业部"
@
click=
"changeDimension('L004')"
>
<input
type=
"button"
value=
"山东事业部"
@
click=
"changeDimension('L005')"
>
<input
type=
"button"
value=
"河南事业部"
@
click=
"changeDimension('L007')"
>
<input
type=
"button"
value=
"华西事业部"
@
click=
"changeDimension('L008')"
>
<input
type=
"button"
value=
"湛江事业部"
@
click=
"changeDimension('L009')"
>
<input
type=
"button"
value=
"上海事业部"
@
click=
"changeDimension('L022'
, 1)"
:style=
"dynamicStyle(1
)"
>
<input
type=
"button"
value=
"广东事业部"
@
click=
"changeDimension('L026'
, 2)"
:style=
"dynamicStyle(2
)"
>
<input
type=
"button"
value=
"江苏事业部"
@
click=
"changeDimension('L024'
, 3)"
:style=
"dynamicStyle(3
)"
>
<input
type=
"button"
value=
"天津事业部"
@
click=
"changeDimension('L025'
, 4)"
:style=
"dynamicStyle(4
)"
>
<input
type=
"button"
value=
"成都事业部"
@
click=
"changeDimension('L004'
, 5)"
:style=
"dynamicStyle(5
)"
>
<input
type=
"button"
value=
"山东事业部"
@
click=
"changeDimension('L005'
, 6)"
:style=
"dynamicStyle(6
)"
>
<input
type=
"button"
value=
"河南事业部"
@
click=
"changeDimension('L007'
, 7)"
:style=
"dynamicStyle(7
)"
>
<input
type=
"button"
value=
"华西事业部"
@
click=
"changeDimension('L008'
, 8)"
:style=
"dynamicStyle(8
)"
>
<input
type=
"button"
value=
"湛江事业部"
@
click=
"changeDimension('L009'
, 9)"
:style=
"dynamicStyle(9
)"
>
</div>
<div
class=
"chart"
>
<div
ref=
"chart"
style=
"width: 100%;height: 100%;"
/>
...
...
@@ -31,6 +31,7 @@ export default {
return
{
// today: "2023-06-30",
today
:
moment
().
format
(
"yyyy-MM-DD"
),
current_index
:
1
,
discountOption
:
{
tooltip
:
{
trigger
:
'axis'
...
...
@@ -65,8 +66,14 @@ export default {
this
.
chart
.
resize
();
}
},
dynamicStyle
(
index
)
{
return
{
background
:
index
===
this
.
current_index
?
'#00F6F0'
:
null
,
color
:
index
===
this
.
current_index
?
'#000000'
:
null
,
};
},
//dimension 事业部code
async
changeDimension
(
dimension
)
{
async
changeDimension
(
dimension
,
index
)
{
this
.
currentBtn
=
dimension
;
// this.chart.dispose();
let
chartDom
=
this
.
$refs
.
chart
;
...
...
@@ -81,6 +88,9 @@ export default {
//柱状图加载
this
.
discountOption
.
series
=
this
.
currentData
.
seriesBar
;
this
.
bar
.
setOption
(
this
.
discountOption
);
this
.
current_index
=
index
;
console
.
log
(
this
.
current_index
);
},
},
...
...
@@ -92,7 +102,7 @@ export default {
let
barDom
=
this
.
$refs
.
bar
;
this
.
bar
=
echarts
.
init
(
barDom
);
this
.
changeDimension
(
'L022'
);
this
.
changeDimension
(
'L022'
,
1
);
window
.
addEventListener
(
'resize'
,
this
.
resizeChart
);
},
500
);
...
...
@@ -102,6 +112,10 @@ export default {
</
script
>
<
style
scoped
>
.bg_color
{
background-color
:
#00F6F0
;
}
.turnover-detail
{
width
:
100%
;
height
:
100%
;
...
...
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