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 2d2fcc2e
authored
Jul 17, 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
c3b8e8bc
419aa0e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
src/components/DetailTitle.vue
src/components/SelectBox.vue
src/components/ViewDate.vue
src/views/solarDetail/index.vue
src/components/DetailTitle.vue
View file @
2d2fcc2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @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-14 1
6:49:50
* @LastEditTime: 2023-07-14 1
8:15:03
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 页面头部组件
* @Description: 页面头部组件
-->
-->
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
utils
from
'@/utils/util'
import
utils
from
'@/utils/util'
import
{
number
}
from
'echarts'
export
default
{
export
default
{
name
:
'DetailTitle'
,
name
:
'DetailTitle'
,
props
:
{
props
:
{
...
...
src/components/SelectBox.vue
View file @
2d2fcc2
...
@@ -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-14 1
7:03:43
* @LastEditTime: 2023-07-14 1
8:02:44
-->
-->
<
template
>
<
template
>
<div
v-click-outside=
"handleClickOutside"
@
mouseleave=
"handleMouseLeave"
v-show=
"isShow"
class=
"select-box"
:style=
"
{'width': boxWidth}">
<div
v-click-outside=
"handleClickOutside"
@
mouseleave=
"handleMouseLeave"
v-show=
"isShow"
class=
"select-box"
:style=
"
{'width': boxWidth}">
...
@@ -146,6 +146,6 @@ export default {
...
@@ -146,6 +146,6 @@ export default {
}
}
::-webkit-scrollbar-thumb
{
::-webkit-scrollbar-thumb
{
border-radius
:
5px
;
border-radius
:
5px
;
background-
image
:
linear-gradient
(
270deg
,
#6578FF
0%
,
#079FF1
100%
);
/* 设置滑块的颜色 */
background-
color
:
rgba
(
244
,
244
,
244
,
0.26
);
/* 设置滑块的颜色 */
}
}
</
style
>
</
style
>
src/components/ViewDate.vue
View file @
2d2fcc2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-14 1
7:07:42
* @LastEditTime: 2023-07-14 1
8:11:23
-->
-->
<
template
>
<
template
>
<div
class=
"view-date"
>
统计年份:
<div
class=
"view-date"
>
统计年份:
...
@@ -17,7 +17,10 @@
...
@@ -17,7 +17,10 @@
<div
class=
"year-item"
:class=
"year == item ? 'active' : ''"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click
.
s=
"selectYear(item)"
>
{{
item
}}
</div>
<div
class=
"year-item"
:class=
"year == item ? 'active' : ''"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click
.
s=
"selectYear(item)"
>
{{
item
}}
</div>
</div>
-->
</div>
-->
</div>
</div>
业务开始时间:
{{
businessTime
}}
</div>
<span
class=
"businessTime"
>
业务开始时间:
{{
new
Date
(
businessTime
).
format
(
'yyyy-MM-dd'
)
}}
</span>
</div>
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
datas
from
'@/utils/data'
import
datas
from
'@/utils/data'
...
@@ -43,8 +46,6 @@ export default {
...
@@ -43,8 +46,6 @@ export default {
this
.
isShow
=
!
this
.
isShow
this
.
isShow
=
!
this
.
isShow
},
},
selectVal
(
val
)
{
selectVal
(
val
)
{
// this.year = val
// this.$emit('yearValue', val)
this
.
setSolarYear
(
val
)
this
.
setSolarYear
(
val
)
this
.
switchYear
()
this
.
switchYear
()
},
},
...
@@ -84,4 +85,8 @@ export default {
...
@@ -84,4 +85,8 @@ export default {
}
}
}
}
}
}
.businessTime
{
color
:
#536079
;
font-size
:
14px
;
}
</
style
>
</
style
>
src/views/solarDetail/index.vue
View file @
2d2fcc2
...
@@ -218,6 +218,7 @@ export default {
...
@@ -218,6 +218,7 @@ export default {
return
return
}
}
const
_dataList
=
res
.
data
.
dataList
[
0
]
const
_dataList
=
res
.
data
.
dataList
[
0
]
this
.
businessTime
=
_dataList
.
businessstarttime
this
.
solarDetailList
.
forEach
(
item
=>
{
this
.
solarDetailList
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
item
.
value
=
_dataList
[
item
.
valueName
]
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
...
...
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