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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
src/components/ViewControl.vue
src/components/ViewTabs.vue
src/components/ViewControl.vue
View file @
3eae00b
...
...
@@ -109,7 +109,7 @@ export default {
let
{
brands
}
=
this
brands
.
map
(
e
=>
e
.
active
=
false
)
brands
[
index
].
active
=
true
this
.
brandsKey
=
Date
.
now
()
//
this.brandsKey = Date.now()
// this.$refs.brands.style.display = 'none'
this
.
change
(
1
,
i
)
},
...
...
@@ -208,6 +208,12 @@ export default {
background-color
:
#eb6001
;
}
}
.active
{
position
:
sticky
;
top
:
0
;
z-index
:
2
;
left
:
0
;
}
}
::-webkit-scrollbar
{
background-color
:
#383737
;
...
...
src/components/ViewTabs.vue
View file @
3eae00b
...
...
@@ -8,8 +8,8 @@
<div
class=
"tab-total-box"
>
<div
class=
"total-title-box flex"
>
<div
class=
"title inline total"
>
客户总数
</div>
<div
class=
"title inline"
>
昨日
新增
</div>
<div
class=
"title inline"
>
上月
到店
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
新增
</div>
<div
class=
"title inline"
>
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
到店
</div>
</div>
<div
class=
"total-number-box flex"
>
<transition-number
...
...
@@ -41,7 +41,7 @@
class="item-total"
/>
<div
class=
"item-incr flex"
>
上月
{{
req
.
queryType
==
0
?
'上月'
:
'昨日'
}}
<transition-number
:num=
"pageData[i.key].incrNum"
:idKey=
"`number-incr-$
{i.key}`"
...
...
@@ -180,7 +180,7 @@ export default {
const
params
=
{
queryItem
,
queryType
,
queryTime
:
this
.
getNDate
(
-
1
)
queryTime
:
this
.
getNDate
(
-
1
)
}
this
.
tabHead
=
this
.
isGroup
?
[
'前5品牌'
,
'后5品牌'
]
:
[
'前5门店'
,
'后5门店'
]
this
.
api
.
overview
[
this
.
isGroup
?
'getBrandOverallbase'
:
'getMerchantOverallbase'
](
params
).
then
(({
code
,
data
})
=>
{
...
...
@@ -204,7 +204,7 @@ export default {
},
ObjectToArray
(
obj
)
{
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
]
}))
})
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