Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
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 d9c4b429
authored
Jul 22, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
6509b9a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
src/components/ViewTabs.vue
src/components/ViewTabs.vue
View file @
d9c4b42
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</template>
</template>
</div>
</div>
<div
class=
"table user-select pointer"
>
<div
class=
"table user-select pointer"
>
<div
class=
"tabs-title-info table-position"
>
({{
tabTitle
}})
</div>
<div
class=
"tabs-title-info table-position"
>
({{
tabTitle
}})
</div>
<div
class=
"table-head"
>
<div
class=
"table-head"
>
<
template
v-for=
"(i, index) in tabHead"
>
<
template
v-for=
"(i, index) in tabHead"
>
<div
:class=
"['table-head-item flex',
{ active: index == tabIndex }]" :key="index" @click="tabIndex = index">
<div
:class=
"['table-head-item flex',
{ active: index == tabIndex }]" :key="index" @click="tabIndex = index">
...
@@ -234,7 +234,9 @@ export default {
...
@@ -234,7 +234,9 @@ export default {
})
})
},
},
draw
(
lineData
,
queryType
)
{
draw
(
lineData
,
queryType
)
{
console
.
log
(
lineData
)
let
data
=
[],
let
data
=
[],
Min
=
0
,
xData
=
[],
xData
=
[],
title
=
{
title
=
{
'total'
:
'客户总数'
,
'total'
:
'客户总数'
,
...
@@ -249,6 +251,7 @@ export default {
...
@@ -249,6 +251,7 @@ export default {
xData
.
push
(
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
new
Date
(
e
.
statDate
).
format
(
'MM-dd'
))
xData
.
push
(
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
new
Date
(
e
.
statDate
).
format
(
'MM-dd'
))
data
.
push
(
e
.
totalNum
)
data
.
push
(
e
.
totalNum
)
})
})
Min
=
Math
.
min
(...
data
)
let
options
=
{
let
options
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
...
@@ -287,6 +290,7 @@ export default {
...
@@ -287,6 +290,7 @@ export default {
},
},
yAxis
:
{
yAxis
:
{
type
:
'value'
,
type
:
'value'
,
min
:
Min
,
splitLine
:
{
splitLine
:
{
lineStyle
:
{
lineStyle
:
{
color
:
'rgba(96,98,102,0.2)'
color
:
'rgba(96,98,102,0.2)'
...
@@ -480,11 +484,11 @@ export default {
...
@@ -480,11 +484,11 @@ export default {
.table
{
.table
{
flex
:
3
;
flex
:
3
;
background
:
#262525
;
background
:
#262525
;
position
:
relative
;
position
:
relative
;
.table-position{
.table-position
{
position
:
absolute
;
position
:
absolute
;
top
:
-20px
;
top
:
-20px
;
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
}
}
&
-head
{
&
-head
{
...
...
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