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 2dc8cd1d
authored
Jul 11, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更改通用版
1 parent
956df331
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
40 deletions
src/assets/images/logo.svg
src/components/ViewControl.vue
src/components/ViewTitle.vue
src/config/env.development.js
src/config/env.production.js
src/config/env.staging.js
src/assets/images/logo.svg
View file @
2dc8cd1
This diff is collapsed.
Click to expand it.
src/components/ViewControl.vue
View file @
2dc8cd1
<
template
>
<
template
>
<div
class=
"control"
>
<div
class=
"control"
>
<div
class=
"left flex user-select pointer"
>
<div
class=
"left flex user-select pointer"
>
<template
v-for=
"(i,index) in tab"
>
<template
v-for=
"(i, index) in tab"
>
<div
<div
:class=
"['item flex', index == 0 ? 'text-center' : 'brand',
{ active: tabIndex == index }]" :key="index" @click="change(index)">
:class=
"['item flex',index == 0?'text-center':'brand',
{'active':tabIndex == index}]"
:key="index"
@click="change(index)"
>
<div
class=
"text text-hide"
>
<div
class=
"text text-hide"
>
{{
i
}}
{{
i
}}
</div>
</div>
<template
v-if=
"index == 1"
>
<template
v-if=
"index == 1"
>
<div
class=
"arrow"
></div>
<div
class=
"arrow"
></div>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
<div
<div
class=
"options-box"
:key=
"brandsKey"
ref=
"brands"
>
class=
"options-box"
<
template
v-for=
"(i, index) in brands"
>
:key=
"brandsKey"
<div
:class=
"['options-item flex',
{ active: i.active }]" :key="index" @click="chooseBrand({ i, index })">
ref=
"brands"
<div
class=
"text-hide"
>
{{
i
.
brandName
}}
</div>
>
<
template
v-for=
"(i,index) in brands"
>
<div
:class=
"['options-item flex',
{'active':i.active}]"
:key="index"
@click="chooseBrand({i,index})"
>
<div
class=
"text-hide"
>
{{
i
.
brandName
}}
</div>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<div
class=
"right y-center flex user-select pointer"
>
<div
class=
"right y-center flex user-select pointer"
>
<
template
v-for=
"(i,index) in options"
>
<
template
v-for=
"(i, index) in options"
>
<div
<div
:key=
"index"
@
click=
"reportChange(index)"
:class=
"['item text-center',
{ active: reportIndex == index }]">
:key=
"index"
{{
i
}}
@
click=
"reportChange(index)"
:class=
"['item text-center',
{'active':reportIndex == index}]"
>
{{
i
}}
</div>
</div>
</
template
>
</
template
>
<div
:class=
"['line',`line-${reportIndex}`]"
></div>
<div
:class=
"['line',
`line-${reportIndex}`]"
></div>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
export
default
{
name
:
'ViewControl'
,
name
:
'ViewControl'
,
data
()
{
data
()
{
return
{
return
{
tab
:
[
'
广汇
集团'
,
'品牌概览'
],
tab
:
[
'
XXX
集团'
,
'品牌概览'
],
tabIndex
:
0
,
tabIndex
:
0
,
options
:
[
'日表'
,
'月表'
],
options
:
[
'日表'
,
'月表'
],
reportIndex
:
1
,
reportIndex
:
1
,
...
@@ -78,7 +62,7 @@ export default {
...
@@ -78,7 +62,7 @@ export default {
let
{
tabIndex
}
=
this
let
{
tabIndex
}
=
this
if
(
index
==
0
)
{
if
(
index
==
0
)
{
if
(
tabIndex
==
index
)
return
if
(
tabIndex
==
index
)
return
this
.
tab
=
[
'
广汇
集团'
,
'品牌概览'
]
this
.
tab
=
[
'
XXX
集团'
,
'品牌概览'
]
this
.
brands
.
map
(
e
=>
e
.
active
=
false
)
this
.
brands
.
map
(
e
=>
e
.
active
=
false
)
}
else
{
}
else
{
if
(
!
item
)
return
if
(
!
item
)
return
...
@@ -117,7 +101,7 @@ export default {
...
@@ -117,7 +101,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.control
{
.control
{
position
:
relative
;
position
:
relative
;
.left
{
.left
{
...
@@ -208,7 +192,7 @@ export default {
...
@@ -208,7 +192,7 @@ export default {
background-color
:
#eb6001
;
background-color
:
#eb6001
;
}
}
}
}
.active
{
.active
{
position
:
sticky
;
position
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
2
;
z-index
:
2
;
...
@@ -267,4 +251,4 @@ export default {
...
@@ -267,4 +251,4 @@ export default {
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
src/components/ViewTitle.vue
View file @
2dc8cd1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"logo user-select"
>
<div
class=
"logo user-select"
>
<img
src=
"@/assets/images/logo.svg"
alt=
"logo"
/>
<img
src=
"@/assets/images/logo.svg"
alt=
"logo"
/>
</div>
</div>
<div
class=
"view-title flex user-select"
>
广汇
集团客户池数据大屏
</div>
<div
class=
"view-title flex user-select"
>
XXX
集团客户池数据大屏
</div>
<div
class=
"time"
>
<div
class=
"time"
>
<div
class=
"top flex"
>
<div
class=
"top flex"
>
<img
src=
"@/assets/images/time.svg"
class=
"icon"
/>
<img
src=
"@/assets/images/time.svg"
class=
"icon"
/>
...
...
src/config/env.development.js
View file @
2dc8cd1
...
@@ -3,16 +3,17 @@
...
@@ -3,16 +3,17 @@
* @version:
* @version:
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors:
limin
* @LastEditors:
huyue
* @LastEditTime: 202
1-06-28 10:13:38
* @LastEditTime: 202
2-07-11 11:01:00
*/
*/
// 本地环境配置
// 本地环境配置
module
.
exports
=
{
module
.
exports
=
{
envVersion
:
'trial'
,
envVersion
:
'trial'
,
title
:
'
广汇
汽车服务'
,
title
:
'
XXX
汽车服务'
,
request
:
{
request
:
{
// baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
// baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
baseURL
:
'http://192.168.1.152:8081'
,
// 本地开发项目地址,
// baseURL: 'http://192.168.1.152:8081', // 本地开发项目地址,
baseURL
:
'http://192.168.1.160:8081'
,
// 本地开发项目地址,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/env.production.js
View file @
2dc8cd1
module
.
exports
=
{
module
.
exports
=
{
title
:
'
广汇
汽车服务'
,
title
:
'
XXX
汽车服务'
,
request
:
{
request
:
{
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
baseURL
:
'http://cim.chinagrandauto.com/scrm-wechat'
// 生产
baseURL
:
'http://cim.chinagrandauto.com/scrm-wechat'
// 生产
...
...
src/config/env.staging.js
View file @
2dc8cd1
module
.
exports
=
{
module
.
exports
=
{
title
:
'
广汇
汽车服务'
,
title
:
'
XXX
汽车服务'
,
request
:
{
request
:
{
baseURL
:
'http://xxxxx'
// 项目地址
baseURL
:
'http://xxxxx'
// 项目地址
},
},
...
...
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