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 66ae1c3d
authored
Jul 04, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
288386d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
src/components/ViewTabs.vue
src/components/ViewTabs.vue
View file @
66ae1c3
...
@@ -13,9 +13,13 @@
...
@@ -13,9 +13,13 @@
</div>
</div>
<div
class=
"total-number-box flex"
>
<div
class=
"total-number-box flex"
>
<transition-number
<transition-number
:num=
"
pageData.total.totalNum
"
:num=
"
test
"
idKey=
"number-total"
idKey=
"number-total"
/>
/>
<!--
<transition-number
:num=
"pageData.total.totalNum"
idKey=
"number-total"
/>
-->
<transition-number
<transition-number
:num=
"pageData.total.incrNum"
:num=
"pageData.total.incrNum"
idKey=
"number-incr"
idKey=
"number-incr"
...
@@ -247,7 +251,7 @@ export default {
...
@@ -247,7 +251,7 @@ export default {
{
tabType
}
=
this
{
tabType
}
=
this
lineData
.
map
(
e
=>
{
lineData
.
map
(
e
=>
{
let
month
=
new
Date
(
e
.
statDate
).
getMonth
()
let
month
=
new
Date
(
e
.
statDate
).
getMonth
()
xData
.
push
(
queryType
==
0
?
`
${
month
==
0
?
'1月'
:
`
${
Number
(
month
)
+
1
}
月`
}
`
:
e
.
statDate
)
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
)
})
})
let
options
=
{
let
options
=
{
...
@@ -268,10 +272,11 @@ export default {
...
@@ -268,10 +272,11 @@ export default {
type
:
'category'
,
type
:
'category'
,
axisLabel
:
{
axisLabel
:
{
show
:
true
,
show
:
true
,
interval
:
queryType
==
0
?
0
:
7
,
interval
:
queryType
==
0
?
0
:
6
,
color
:
'#606266'
,
color
:
'#606266'
,
fontSize
:
'0.8em'
,
fontSize
:
'0.8em'
,
margin
:
20
margin
:
20
,
showMaxLabel
:
true
},
},
data
:
xData
,
data
:
xData
,
axisTick
:
{
axisTick
:
{
...
@@ -346,7 +351,7 @@ export default {
...
@@ -346,7 +351,7 @@ export default {
grid-template-columns
:
41.5%
57.5%
;
grid-template-columns
:
41.5%
57.5%
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
0.5vh
;
margin-bottom
:
0.5vh
;
overflow
:
hidden
;
.tab-total-box
{
.tab-total-box
{
height
:
100%
;
height
:
100%
;
padding-left
:
8px
;
padding-left
:
8px
;
...
...
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