Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
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 ad05c6aa
authored
Jan 29, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
4524fdf5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
67 deletions
src/assets/images/avatar.png
src/views/lifeSceneDataPage/components/ActivityRate.vue
src/views/lifeSceneDataPage/components/BarChartOptions.js
src/views/lifeSceneDataPage/components/Maintenance.vue
src/views/lifeSceneDataPage/const/index.js
src/assets/images/avatar.png
0 → 100644
View file @
ad05c6a
2.02 KB
src/views/lifeSceneDataPage/components/ActivityRate.vue
View file @
ad05c6a
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
},
},
{
{
name
:
'num'
,
name
:
'num'
,
width
:
'
1.88
vw'
,
width
:
'
2.25
vw'
,
unitIcon
:
'场'
unitIcon
:
'场'
}
}
]
]
...
...
src/views/lifeSceneDataPage/components/BarChartOptions.js
View file @
ad05c6a
...
@@ -16,14 +16,14 @@ function getBarOptions(obj) {
...
@@ -16,14 +16,14 @@ function getBarOptions(obj) {
// formatter: tooltipFormatter || '',
// formatter: tooltipFormatter || '',
// confine: true
// confine: true
// },
// },
barWidth
:
14
,
xAxis
:
{
xAxis
:
{
data
:
[]
data
:
[]
},
},
yAxis
:
{
yAxis
:
{
name
:
''
,
name
:
''
,
type
:
'value'
,
type
:
'value'
,
// min: 0,
interval
:
250
,
// max: 100,
splitLine
:
{
splitLine
:
{
lineStyle
:
{
lineStyle
:
{
color
:
'#1d2a38'
color
:
'#1d2a38'
...
@@ -53,15 +53,15 @@ function getBarOptions(obj) {
...
@@ -53,15 +53,15 @@ function getBarOptions(obj) {
return
new
echarts
.
graphic
.
LinearGradient
(
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[{
// 代表渐变色从正上方开始
0
,
0
,
0
,
1
,
[{
// 代表渐变色从正上方开始
offset
:
0
,
// offset范围是0~1,用于表示位置,0是指0%处的颜色
offset
:
0
,
// offset范围是0~1,用于表示位置,0是指0%处的颜色
color
:
'#
22D
8FF'
color
:
'#
00C
8FF'
},
// 柱图渐变色
},
// 柱图渐变色
{
//
{
offset
:
0.5
,
// 指100%处的颜色
//
offset: 0.5, // 指100%处的颜色
color
:
'#223FA9'
//
color: '#223FA9'
},
//
},
{
{
offset
:
1
,
// 指100%处的颜色
offset
:
1
,
// 指100%处的颜色
color
:
'#0
6142
2'
color
:
'#0
069F
2'
}]
}]
)
)
}
}
...
...
src/views/lifeSceneDataPage/components/Maintenance.vue
View file @
ad05c6a
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
<div
class=
"dialogue-content-item"
>
<div
class=
"dialogue-content-item"
>
<div
class=
"dialogue-content-item-top"
>
<div
class=
"dialogue-content-item-top"
>
<div
class=
"dialogue-content-item-top-left"
>
<div
class=
"dialogue-content-item-top-left"
>
<div></div>
<div
class=
"dialogue-content-item-top-img"
>
<img
src=
"../../../assets/images/avatar.png"
alt=
""
>
</div>
<div>
<div>
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
phone
}}
</div>
<div>
{{
item
.
phone
}}
</div>
...
@@ -33,8 +35,9 @@
...
@@ -33,8 +35,9 @@
</div>
</div>
</Phone>
</Phone>
<Phone
class=
"enterprise-box"
:imgName=
"'customer-detail'"
>
<Phone
class=
"enterprise-box"
:imgName=
"'customer-detail'"
>
<div
class=
"video-content"
slot=
"content"
@
click=
"openVideo"
>
<div
class=
"video-content"
slot=
"content"
>
<video
id=
"videos"
muted=
"muted"
controls
autoplay
loop
>
<div
class=
"video-click-content"
@
click=
"openVideo"
></div>
<video
ref=
"videoRef"
id=
"videos"
muted=
"muted"
controls
autoplay
loop
>
<!--
<source
src=
"/media/cc0-videos/flower.webm"
type=
"video/webm"
/>
-->
<!--
<source
src=
"/media/cc0-videos/flower.webm"
type=
"video/webm"
/>
-->
<source
src=
"../../../assets/images/video(1).mp4"
type=
"video/mp4"
/>
<source
src=
"../../../assets/images/video(1).mp4"
type=
"video/mp4"
/>
</video>
</video>
...
@@ -63,12 +66,23 @@ export default {
...
@@ -63,12 +66,23 @@ export default {
dialogShow
:
false
dialogShow
:
false
}
}
},
},
mounted
()
{
this
.
$refs
.
videoRef
.
addEventListener
(
'ended'
,
this
.
replayVideo
);
},
beforeDestroy
()
{
this
.
$refs
.
videoRef
.
removeEventListener
(
'ended'
,
this
.
replayVideo
);
},
methods
:
{
methods
:
{
openVideo
()
{
openVideo
()
{
this
.
dialogShow
=
true
this
.
dialogShow
=
true
},
},
closeDialog
()
{
closeDialog
()
{
this
.
dialogShow
=
false
this
.
dialogShow
=
false
},
replayVideo
()
{
const
video
=
this
.
$refs
.
videoRef
;
video
.
currentTime
=
0
;
video
.
play
();
}
}
}
}
}
}
...
@@ -90,7 +104,7 @@ export default {
...
@@ -90,7 +104,7 @@ export default {
position
:
absolute
;
position
:
absolute
;
top
:
7.78vh
;
top
:
7.78vh
;
left
:
0.31vw
;
left
:
0.31vw
;
max-height
:
2
4
.3vh
;
max-height
:
2
1
.3vh
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
&-item
{
&-item
{
width
:
7.28vw
;
width
:
7.28vw
;
...
@@ -110,6 +124,11 @@ export default {
...
@@ -110,6 +124,11 @@ export default {
&-left
{
&-left
{
display
:
flex
;
display
:
flex
;
}
}
&
-img
{
width
:
0.89vw
;
height
:
0.89vw
;
margin-right
:
0.2vw
;
}
.call
{
.call
{
width
:
1.35vw
;
width
:
1.35vw
;
height
:
1.57vh
;
height
:
1.57vh
;
...
@@ -135,6 +154,14 @@ export default {
...
@@ -135,6 +154,14 @@ export default {
.enterprise-box
{
.enterprise-box
{
margin-left
:
0.42vw
;
margin-left
:
0.42vw
;
position
:
relative
;
position
:
relative
;
.video-click-content
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
8.28vw
;
height
:
3.97vh
;
z-index
:
9999
;
}
.video-content
{
.video-content
{
position
:
absolute
;
position
:
absolute
;
top
:
5.28vh
;
top
:
5.28vh
;
...
...
src/views/lifeSceneDataPage/const/index.js
View file @
ad05c6a
const
AIBarLineData
=
[
const
AIBarLineData
=
[
{
{
statMonth
:
'
2023-10
'
,
statMonth
:
'
8月
'
,
outputvalue
:
3
5
2
,
outputvalue
:
3
1
2
,
perCusTrans
:
158
perCusTrans
:
297
},
},
{
{
statMonth
:
'
2023-11
'
,
statMonth
:
'
9月
'
,
outputvalue
:
189
,
outputvalue
:
416
,
perCusTrans
:
2
55
perCusTrans
:
3
55
},
},
{
{
statMonth
:
'
2023-12
'
,
statMonth
:
'
10月
'
,
outputvalue
:
580
,
outputvalue
:
827
,
perCusTrans
:
28
6
perCusTrans
:
44
6
},
},
{
{
statMonth
:
'
2024-01
'
,
statMonth
:
'
11月
'
,
outputvalue
:
68
5
,
outputvalue
:
85
5
,
perCusTrans
:
311
perCusTrans
:
452
},
},
{
{
statMonth
:
'
2024-02
'
,
statMonth
:
'
12月
'
,
outputvalue
:
185
,
outputvalue
:
901
,
perCusTrans
:
258
perCusTrans
:
587
},
},
{
{
statMonth
:
'
2024-03
'
,
statMonth
:
'
01月
'
,
outputvalue
:
1
77
,
outputvalue
:
9
77
,
perCusTrans
:
457
perCusTrans
:
701
}
}
]
]
...
@@ -97,86 +97,102 @@ const marketingStatisData = [
...
@@ -97,86 +97,102 @@ const marketingStatisData = [
const
nearThreadDataList
=
[
const
nearThreadDataList
=
[
{
{
statMonth
:
'23.
11
'
,
statMonth
:
'23.
02
'
,
val
:
10
val
:
899
},
},
{
{
statMonth
:
'23.
12
'
,
statMonth
:
'23.
03
'
,
val
:
9
val
:
757
},
},
{
{
statMonth
:
'23.
13
'
,
statMonth
:
'23.
04
'
,
val
:
50
val
:
997
},
},
{
{
statMonth
:
'23.
14
'
,
statMonth
:
'23.
05
'
,
val
:
30
val
:
876
},
},
{
{
statMonth
:
'23.
15
'
,
statMonth
:
'23.
06
'
,
val
:
10
val
:
878
},
},
{
{
statMonth
:
'23.
15
'
,
statMonth
:
'23.
07
'
,
val
:
1
0
val
:
1
219
},
},
{
{
statMonth
:
'23.
15
'
,
statMonth
:
'23.
08
'
,
val
:
10
val
:
861
},
},
{
{
statMonth
:
'23.
15
'
,
statMonth
:
'23.
09
'
,
val
:
10
val
:
911
},
},
{
{
statMonth
:
'23.15'
,
statMonth
:
'23.10'
,
val
:
10
val
:
983
},
{
statMonth
:
'23.11'
,
val
:
864
},
{
statMonth
:
'23.12'
,
val
:
903
},
{
statMonth
:
'23.01'
,
val
:
1001
}
}
]
]
const
activityListData
=
[
const
activityListData
=
[
{
{
isused
:
"精品升级"
,
isused
:
"精品升级"
,
num
:
36
0
,
num
:
240
0
,
rate
:
3
6
rate
:
3
5.3
},
},
{
{
isused
:
"权益升级"
,
isused
:
"权益升级"
,
num
:
28
0
,
num
:
185
0
,
rate
:
2
8
rate
:
2
7.22
},
},
{
{
isused
:
"售后团购"
,
isused
:
"售后团购"
,
num
:
240
,
num
:
1599
,
rate
:
2
4
rate
:
2
3.52
},
},
{
{
isused
:
"节假日关怀"
,
isused
:
"节假日关怀"
,
num
:
12
0
,
num
:
95
0
,
rate
:
1
2
rate
:
1
3.96
}
}
]
]
const
bigModuleChartDataList
=
[
const
bigModuleChartDataList
=
[
{
{
statMonth
:
'
23.11
'
,
statMonth
:
'
8月
'
,
val
:
10
val
:
248
},
},
{
{
statMonth
:
'
23.12
'
,
statMonth
:
'
9月
'
,
val
:
9
val
:
375
},
},
{
{
statMonth
:
'
23.13
'
,
statMonth
:
'
10月
'
,
val
:
50
val
:
623
},
},
{
{
statMonth
:
'
23.14
'
,
statMonth
:
'
11月
'
,
val
:
30
val
:
746
},
},
{
{
statMonth
:
'23.15'
,
statMonth
:
'12月'
,
val
:
10
val
:
921
},
{
statMonth
:
'01月'
,
val
:
1107
},
},
]
]
...
...
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