Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 05a51b5d
authored
Nov 02, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.2.0' into 'master'
V1.2.0 See merge request
!5
2 parents
2f93be75
167b3b86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
src/views/operational/components/BarChart.vue
src/views/operational/components/UserTab.vue
src/views/operational/components/BarChart.vue
View file @
05a51b5
...
@@ -121,9 +121,16 @@ export default {
...
@@ -121,9 +121,16 @@ export default {
mounted
()
{
mounted
()
{
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
.
chartReaize
()
this
.
chartBindEvent
()
this
.
chartBindEvent
()
},
},
methods
:
{
methods
:
{
chartReaize
()
{
window
.
addEventListener
(
'resize'
,
()
=>
{
console
.
log
(
444
)
this
[
this
.
domId
].
resize
()
})
},
chartBindEvent
()
{
chartBindEvent
()
{
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
if
(
this
.
revese
===
false
)
return
if
(
this
.
revese
===
false
)
return
...
@@ -142,9 +149,10 @@ export default {
...
@@ -142,9 +149,10 @@ export default {
this
.
chartAction
(
yIndex
)
this
.
chartAction
(
yIndex
)
},
500
)
},
500
)
)
)
window
.
addEventListener
(
'resize'
,
()
=>
{
// window.addEventListener('resize', () => {
this
[
this
.
domId
].
resize
()
// console.log(444);
})
// this[this.domId].resize()
// })
this
[
this
.
domId
].
getZr
().
on
(
this
[
this
.
domId
].
getZr
().
on
(
'mouseout'
,
'mouseout'
,
utils
.
debounce
(()
=>
{
utils
.
debounce
(()
=>
{
...
@@ -179,8 +187,8 @@ export default {
...
@@ -179,8 +187,8 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.line-box
{
.line-box
{
height
:
100%
;
//
height
:
100%
;
color
:
#ffffff
;
//
color
:
#ffffff
;
.txt-orange
{
.txt-orange
{
color
:
#eb6001
;
color
:
#eb6001
;
}
}
...
...
src/views/operational/components/UserTab.vue
View file @
05a51b5
...
@@ -86,7 +86,7 @@ const TEXT_VIEW = [
...
@@ -86,7 +86,7 @@ const TEXT_VIEW = [
bottomValue
:
'7,329,2'
bottomValue
:
'7,329,2'
},
},
{
{
name
:
'
个微
客户数'
,
name
:
'
硬件线索
客户数'
,
valueName
:
'totalsinglewechantnum'
,
valueName
:
'totalsinglewechantnum'
,
value
:
'15,351,2'
,
value
:
'15,351,2'
,
bottomLabel
:
'当年新增'
,
bottomLabel
:
'当年新增'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment