Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 f6bfc044
authored
Jul 06, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v1.0.0
2 parents
67eb37f2
3309d98d
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
57 additions
and
81 deletions
src/components/SelectBox.vue
src/components/ViewDate.vue
src/components/ViewTitle.vue
src/views/home/components/ViewContent.vue
src/views/home/index.vue
src/views/home/components/ViewBoutique.vue → src/views/home/pages/ViewBoutique.vue
src/views/home/components/ViewCrowdfunding.vue → src/views/home/pages/ViewCrowdfunding.vue
src/views/home/components/ViewEquity.vue → src/views/home/pages/ViewEquity.vue
src/views/home/components/ViewInterior.vue → src/views/home/pages/ViewInterior.vue
src/views/home/components/ViewOperational.vue → src/views/home/pages/ViewOperational.vue
src/views/home/components/ViewSolar.vue → src/views/home/pages/ViewSolar.vue
src/views/home/components/index.js → src/views/home/pages/index.js
src/views/home/components/ContentLeft.vue → src/views/home/solar/ContentLeft.vue
src/views/home/components/ContentRight.vue → src/views/home/solar/ContentRight.vue
src/views/home/components/RightViewContent.vue → src/views/home/solar/RightViewContent.vue
src/components/SelectBox.vue
View file @
f6bfc04
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-05 15:11:53
* @Date: 2023-07-05 15:11:53
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-0
5 17:19:32
* @LastEditTime: 2023-07-0
6 12:01:43
-->
-->
<
template
>
<
template
>
<div
v-show=
"isShow"
class=
"select-box"
:style=
"
{'width': boxWidth}">
<div
v-show=
"isShow"
class=
"select-box"
:style=
"
{'width': boxWidth}">
...
@@ -22,6 +22,7 @@ export default {
...
@@ -22,6 +22,7 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
// dataList里面的值是否是对象
isObject
:
{
isObject
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
...
@@ -34,6 +35,7 @@ export default {
...
@@ -34,6 +35,7 @@ export default {
type
:
String
,
type
:
String
,
default
:
'value'
default
:
'value'
},
},
// 下拉框的宽度设置
boxWidth
:
{
boxWidth
:
{
type
:
String
type
:
String
}
}
...
...
src/components/ViewDate.vue
View file @
f6bfc04
<!--
* @Description: 内容页面统计年份组件
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 12:06:38
-->
<
template
>
<
template
>
<div
class=
"view-date"
>
统计年份:
<div
class=
"view-date"
>
统计年份:
<div
class=
"year-plugin"
>
<div
class=
"year-plugin"
>
...
...
src/components/ViewTitle.vue
View file @
f6bfc04
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
1:45:34
* @LastEditTime: 2023-07-06 1
4:16:20
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description:
这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description:
页面头部组件
-->
-->
<
template
>
<
template
>
<div
class=
"content flex"
>
<div
class=
"content flex"
>
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<img
style=
"height: 2.89vh"
src=
"@/assets/images/logo.png"
alt=
"logo"
/>
<img
style=
"height: 2.89vh"
src=
"@/assets/images/logo.png"
alt=
"logo"
/>
</div>
</div>
<div
class=
"tab"
>
<div
class=
"tab"
>
<div
class=
"tab-item first-tab"
@
click
.
self=
"jump('home')"
>
<div
class=
"tab-item first-tab"
:class=
"currentMenu == 'home' ? 'active' : ''"
@
click
.
self=
"jump('home')"
>
{{
firstTab
.
label
}}
{{
firstTab
.
label
}}
<img
class=
"arrow-down"
@
click
.
stop=
"openSelect"
src=
"@/assets/images/title-arrow.png"
alt=
""
>
<img
class=
"arrow-down"
@
click
.
stop=
"openSelect"
src=
"@/assets/images/title-arrow.png"
alt=
""
>
<SelectBox
:isShow=
"isShow"
:dataList=
"dataList"
:boxWidth=
"'17.1vw'"
isObject
@
selectVal=
"selectVal"
></SelectBox>
<SelectBox
:isShow=
"isShow"
:dataList=
"dataList"
:boxWidth=
"'17.1vw'"
isObject
@
selectVal=
"selectVal"
></SelectBox>
</div>
</div>
<div
class=
"tab-item other-tab"
@
click=
"jump('operational')"
>
运营数据
</div>
<div
class=
"tab-item other-tab"
:class=
"currentMenu == 'operational' ? 'active' : ''"
@
click=
"jump('operational')"
>
运营数据
</div>
<div
class=
"tab-item other-tab"
@
click=
"jump('interior')"
>
内部数据
</div>
<div
class=
"tab-item other-tab"
:class=
"currentMenu == 'interior' ? 'active' : ''"
@
click=
"jump('interior')"
>
内部数据
</div>
</div>
</div>
<!--
<div
class=
"view-title user-select"
>
嘀加智慧门店运营看板
</div>
-->
<!--
<div
class=
"view-title user-select"
>
嘀加智慧门店运营看板
</div>
-->
<div
class=
"time"
>
<div
class=
"time"
>
...
@@ -37,9 +37,9 @@ export default {
...
@@ -37,9 +37,9 @@ export default {
return
{
return
{
isShow
:
false
,
isShow
:
false
,
dataList
:
datas
.
DefaultData
.
businessList
,
dataList
:
datas
.
DefaultData
.
businessList
,
firstTab
:
''
,
firstTab
:
''
,
// 存储第一个tab下的子菜单对象
now
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
now
:
new
Date
().
format
(
'yyyy-MM-dd hh:mm:ss'
),
isFirst
:
true
currentMenu
:
'home'
// 标记当前是哪个tab菜单
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -55,18 +55,19 @@ export default {
...
@@ -55,18 +55,19 @@ export default {
openSelect
()
{
openSelect
()
{
this
.
isShow
=
!
this
.
isShow
this
.
isShow
=
!
this
.
isShow
},
},
// 监听子菜单变化
selectVal
(
val
)
{
selectVal
(
val
)
{
console
.
log
(
val
)
this
.
firstTab
=
val
this
.
firstTab
=
val
this
.
$bus
.
$emit
(
'selectVal'
,
val
.
value
)
this
.
$bus
.
$emit
(
'selectVal'
,
val
.
value
)
this
.
openSelect
()
this
.
openSelect
()
},
},
// tab菜单切换
jump
(
val
)
{
jump
(
val
)
{
console
.
log
(
val
)
let
_val
=
val
let
_val
=
val
this
.
isFirst
=
val
===
'home'
this
.
currentMenu
=
val
if
(
val
===
'home'
)
_val
=
this
.
firstTab
.
value
if
(
val
===
'home'
)
_val
=
this
.
firstTab
.
value
this
.
$bus
.
$emit
(
'selectVal'
,
_val
)
this
.
$bus
.
$emit
(
'selectVal'
,
_val
)
this
.
isShow
=
false
}
}
}
}
}
}
...
@@ -111,8 +112,9 @@ export default {
...
@@ -111,8 +112,9 @@ export default {
&-item
{
&-item
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
height
:
4.44vh
;
height
:
4.44vh
;
padding
:
0
1.36vw
;
//
padding
:
0
1.36vw
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-right
:
0.56vw
;
margin-right
:
0.56vw
;
border
:
2px
solid
;
border
:
2px
solid
;
...
@@ -122,6 +124,14 @@ export default {
...
@@ -122,6 +124,14 @@ export default {
}
}
.first-tab
{
.first-tab
{
position
:
relative
;
position
:
relative
;
width
:
16.94vw
;
box-sizing
:
border-box
;
&.active
{
background-image
:
url('../assets/images/first-tab-bg.png')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
border
:
none
;
}
.arrow-down
{
.arrow-down
{
margin-left
:
0.28vw
;
margin-left
:
0.28vw
;
width
:
1.39vw
;
width
:
1.39vw
;
...
@@ -131,5 +141,15 @@ export default {
...
@@ -131,5 +141,15 @@ export default {
left
:
-2px
;
left
:
-2px
;
}
}
}
}
.other-tab
{
width
:
7.22vw
;
box-sizing
:
border-box
;
&.active
{
background-image
:
url('../assets/images/other-tab-bg.png')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
border
:
none
;
}
}
}
}
</
style
>
</
style
>
src/views/home/components/ViewContent.vue
deleted
100644 → 0
View file @
67eb37f
<!--
* @Description: 内容
* @Author: huyue
* @Date: 2023-07-04 13:56:33
* @LastEditors: huyue
* @LastEditTime: 2023-07-05 10:47:13
-->
<
template
>
<div
class=
"view-content"
>
<ViewDate></ViewDate>
<div
class=
"content"
>
<ContentLeft></ContentLeft>
<ContentRight></ContentRight>
</div>
</div>
</
template
>
<
script
>
import
ContentLeft
from
'./ContentLeft.vue'
import
ContentRight
from
'./ContentRight.vue'
export
default
{
name
:
'ViewContent'
,
components
:
{
ContentLeft
,
ContentRight
},
props
:
{
},
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.view-content
{
width
:
100%
;
height
:
100%
;
box-sizing
:
border-box
;
position
:
relative
;
padding
:
1.78vh
24px
;
gap
:
0
16px
;
}
.content
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
1.78vh
0
;
>
div
{
//
height
:
100%
;
}
}
</
style
>
src/views/home/index.vue
View file @
f6bfc04
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
1:26:17
* @LastEditTime: 2023-07-06 1
5:03:06
-->
-->
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</template>
</template>
<
script
>
<
script
>
import
'./
component
s'
import
'./
page
s'
// import ViewContent from './components/ViewContent.vue'
// import ViewContent from './components/ViewContent.vue'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
...
...
src/views/home/
component
s/ViewBoutique.vue
→
src/views/home/
page
s/ViewBoutique.vue
View file @
f6bfc04
<!--
<!--
* @Description:
* @Description:
1.0 精品升级内容页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
1:24:08
* @LastEditTime: 2023-07-06 1
2:04:11
-->
-->
<
template
>
<
template
>
<div>
<div>
...
...
src/views/home/
component
s/ViewCrowdfunding.vue
→
src/views/home/
page
s/ViewCrowdfunding.vue
View file @
f6bfc04
<!--
<!--
* @Description:
* @Description:
1.0 售后众筹内容页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
...
...
src/views/home/
component
s/ViewEquity.vue
→
src/views/home/
page
s/ViewEquity.vue
View file @
f6bfc04
<!--
<!--
* @Description:
* @Description:
1.0 会员权益内容页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
...
...
src/views/home/
component
s/ViewInterior.vue
→
src/views/home/
page
s/ViewInterior.vue
View file @
f6bfc04
<!--
<!--
* @Description:
* @Description:
内部数据页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
0:13:42
* @LastEditTime: 2023-07-06 1
2:05:18
-->
-->
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
...
...
src/views/home/
component
s/ViewOperational.vue
→
src/views/home/
page
s/ViewOperational.vue
View file @
f6bfc04
<!--
<!--
* @Description:
* @Description:
运营数据页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:55:35
* @Date: 2023-07-04 13:55:35
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
0:14:47
* @LastEditTime: 2023-07-06 1
2:04:55
-->
-->
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
...
...
src/views/home/
component
s/ViewSolar.vue
→
src/views/home/
page
s/ViewSolar.vue
View file @
f6bfc04
<!--
<!--
* @Description:
内容
* @Description:
1.0 太阳膜内容页面
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-04 13:56:33
* @Date: 2023-07-04 13:56:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-06 1
1:21:44
* @LastEditTime: 2023-07-06 1
5:05:18
-->
-->
<
template
>
<
template
>
<div
class=
"view-content"
>
<div
class=
"view-content"
>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
ContentLeft
from
'.
/ContentLeft.vue
'
import
ContentLeft
from
'.
./solar/ContentLeft
'
import
ContentRight
from
'./ContentRight.vue'
import
ContentRight
from
'.
./solar
/ContentRight.vue'
export
default
{
export
default
{
name
:
'ViewSolar'
,
name
:
'ViewSolar'
,
components
:
{
components
:
{
...
...
src/views/home/
component
s/index.js
→
src/views/home/
page
s/index.js
View file @
f6bfc04
File moved
src/views/home/
components
/ContentLeft.vue
→
src/views/home/
solar
/ContentLeft.vue
View file @
f6bfc04
<!--
<!--
* @Description: 1.0
左侧
* @Description: 1.0
太阳膜左侧内容
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditors: huyue
...
...
src/views/home/
components
/ContentRight.vue
→
src/views/home/
solar
/ContentRight.vue
View file @
f6bfc04
<!--
<!--
* @Description: 1.0 右侧内容
* @Description: 1.0
太阳膜
右侧内容
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditors: huyue
...
...
src/views/home/
components
/RightViewContent.vue
→
src/views/home/
solar
/RightViewContent.vue
View file @
f6bfc04
File moved
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