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 3eae00b7
authored
Jul 02, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
17b70496
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
src/components/ViewControl.vue
src/components/ViewTabs.vue
src/components/ViewControl.vue
View file @
3eae00b
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
let
{
brands
}
=
this
let
{
brands
}
=
this
brands
.
map
(
e
=>
e
.
active
=
false
)
brands
.
map
(
e
=>
e
.
active
=
false
)
brands
[
index
].
active
=
true
brands
[
index
].
active
=
true
this
.
brandsKey
=
Date
.
now
()
//
this.brandsKey = Date.now()
// this.$refs.brands.style.display = 'none'
// this.$refs.brands.style.display = 'none'
this
.
change
(
1
,
i
)
this
.
change
(
1
,
i
)
},
},
...
@@ -208,6 +208,12 @@ export default {
...
@@ -208,6 +208,12 @@ export default {
background-color
:
#eb6001
;
background-color
:
#eb6001
;
}
}
}
}
.active
{
position
:
sticky
;
top
:
0
;
z-index
:
2
;
left
:
0
;
}
}
}
::-webkit-scrollbar
{
::-webkit-scrollbar
{
background-color
:
#383737
;
background-color
:
#383737
;
...
...
src/components/ViewTabs.vue
View file @
3eae00b
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<div
class=
"tab-total-box"
>
<div
class=
"tab-total-box"
>
<div
class=
"total-title-box flex"
>
<div
class=
"total-title-box flex"
>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline"
>
昨日
新增
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
新增
</div>
<div
class=
"title inline"
>
上月
到店
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
到店
</div>
</div>
</div>
<div
class=
"total-number-box flex"
>
<div
class=
"total-number-box flex"
>
<transition-number
<transition-number
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
class="item-total"
class="item-total"
/>
/>
<div
class=
"item-incr flex"
>
<div
class=
"item-incr flex"
>
上月
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
<transition-number
<transition-number
:num=
"pageData[i.key].incrNum"
:num=
"pageData[i.key].incrNum"
:idKey=
"`number-incr-$
{i.key}`"
:idKey=
"`number-incr-$
{i.key}`"
...
@@ -204,7 +204,7 @@ export default {
...
@@ -204,7 +204,7 @@ export default {
},
},
ObjectToArray
(
obj
)
{
ObjectToArray
(
obj
)
{
let
arr
=
[]
let
arr
=
[]
JSON
.
parse
(
obj
).
map
(
e
=>
{
if
(
obj
)
JSON
.
parse
(
obj
).
map
(
e
=>
{
Object
.
keys
(
e
).
map
(
name
=>
arr
.
push
({
name
,
num
:
e
[
name
]
}))
Object
.
keys
(
e
).
map
(
name
=>
arr
.
push
({
name
,
num
:
e
[
name
]
}))
})
})
return
arr
return
arr
...
...
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