Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-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 ac4bd30c
authored
Oct 24, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
88b4464e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
26 deletions
src/components/ViewTabs.vue
src/components/ViewTabs.vue
View file @
ac4bd30
<
template
>
<div
class=
"tabs box"
>
<div
class=
"tab"
>
</div>
<div
class=
"tabs flex box"
>
<div
class=
"tab"
v-for=
"item in tabs"
:key=
"item.key"
>
<div
class=
"tab-title"
>
{{
item
.
title
}}
</div>
<div
class=
"tab-text"
>
2,174443
</div>
</div>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
const
tabs
=
[
{
title
:
'企微客户'
,
key
:
'wechat'
},
{
title
:
'企微群数'
,
key
:
'wechatGroup'
},
{
title
:
'小程序客户数'
,
key
:
'applet'
},
{
title
:
'公众号客户数'
,
key
:
'publiccus'
}
]
import
*
as
echarts
from
'echarts'
export
default
{
name
:
'ViewTabs'
,
data
()
{
return
{}
return
{
tabs
:
[
{
title
:
'总门店数'
,
key
:
'wechat'
},
{
title
:
'当年新增'
,
key
:
'wechatGroup'
},
{
title
:
'总门店数'
,
key
:
'applet'
},
{
title
:
'总门店数'
,
key
:
'publiccus'
}
]
}
},
mounted
()
{},
methods
:
{}
...
...
@@ -39,7 +40,22 @@ export default {
<
style
scoped
lang=
"scss"
>
.tabs
{
margin
:
1.22vh
0
0.98vh
0
;
height
:
6.95vh
;
margin
:
1.22vh
2.78vw
0.98vh
2.78vw
;
height
:
6.95vh
;
justify-content
:
space-between
;
.tab
{
margin
:
0.61vh
0
;
.tab-title
{
font-weight
:
400
;
font-size
:
12px
;
color
:
#e8e8e8
;
}
.tab-text
{
font-weight
:
700
;
font-size
:
24px
;
color
:
#6578ff
;
line-height
:
30px
;
}
}
}
</
style
>
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