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 4c7b4222
authored
Jan 26, 2024
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-scene
into v1.0.0
2 parents
4487e5a6
5d4c6d8c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
64 deletions
src/views/home/pages/viewEntireLifecycleOfCar.vue
src/views/lifeSceneDataPage/components/BarLineChart.vue
src/views/lifeSceneDataPage/components/BigModuleTrend.vue
src/views/lifeSceneDataPage/components/NearThread.vue
src/views/home/pages/viewEntireLifecycleOfCar.vue
View file @
4c7b422
This diff is collapsed.
Click to expand it.
src/views/lifeSceneDataPage/components/BarLineChart.vue
View file @
4c7b422
...
@@ -7,71 +7,73 @@
...
@@ -7,71 +7,73 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
<
template
>
<
template
>
<div>
<div>
<div
:id=
"domId"
style=
"width: 100%;"
:style=
"
{ height }">
</div>
<div
:id=
"domId"
style=
"width: 100%"
:style=
"
{ height }">
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
import
getBarLineOptions
from
'./BarLineOptions'
import
getBarLineOptions
from
'./BarLineOptions'
export
default
{
export
default
{
name
:
'BarLineChart'
,
name
:
'BarLineChart'
,
props
:
{
props
:
{
height
:
{
height
:
{
type
:
String
type
:
String
},
domId
:
{
type
:
String
,
default
:
'bar-line'
},
dataList
:
{
type
:
Array
,
default
:
()
=>
[]
},
tooltipFormatterObj
:
{
type
:
Array
,
default
:
()
=>
{
return
[
]
}
}
},
},
data
()
{
domId
:
{
return
{
type
:
String
,
barLineOptions
:
[],
default
:
'bar-line'
moveAttr
:
{
// speed: 900,
seriesIndex
:
0
,
dataIndex
:
0
},
timer
:
null
}
},
},
mounted
()
{
dataList
:
{
this
.
barLineDom
=
document
.
getElementById
(
this
.
domId
)
type
:
Array
,
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
barLineDom
)
default
:
()
=>
[]
this
.
chartBindEvent
()
this
.
drawBarLine
()
},
},
methods
:
{
tooltipFormatterObj
:
{
drawBarLine
()
{
type
:
Array
,
this
.
barLineOptions
=
getBarLineOptions
({
tooltipFormatter
:
this
.
tooltipFormatter
,
seriesData
:
this
.
dataList
})
default
:
()
=>
{
this
.
barLineOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statMonth
)
return
[
this
.
barLineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
outputvalue
)
]
this
.
barLineOptions
.
series
[
1
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
perCusTrans
)
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
},
chartBindEvent
()
{
// resize
window
.
addEventListener
(
'resize'
,
()
=>
{
this
[
this
.
domId
].
resize
()
})
}
}
}
}
},
data
()
{
return
{
barLineOptions
:
[],
moveAttr
:
{
// speed: 900,
seriesIndex
:
0
,
dataIndex
:
0
},
timer
:
null
}
},
mounted
()
{
this
.
barLineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
barLineDom
)
this
.
chartBindEvent
()
setTimeout
(()
=>
{
},
1000
)
},
methods
:
{
drawBarLine
()
{
this
.
barLineOptions
=
getBarLineOptions
({
tooltipFormatter
:
this
.
tooltipFormatter
,
seriesData
:
this
.
dataList
})
this
.
barLineOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statMonth
)
this
.
barLineOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
outputvalue
)
this
.
barLineOptions
.
series
[
1
].
data
=
this
.
dataList
.
map
(
item
=>
item
.
perCusTrans
)
this
[
this
.
domId
].
setOption
(
this
.
barLineOptions
)
},
chartBindEvent
()
{
// resize
window
.
addEventListener
(
'resize'
,
()
=>
{
this
[
this
.
domId
].
resize
()
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
\ No newline at end of file
\ No newline at end of file
}
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
src/views/lifeSceneDataPage/components/BigModuleTrend.vue
View file @
4c7b422
<
template
>
<
template
>
<div
class=
"big-module-box"
>
<div
class=
"big-module-box"
>
<BoxTitle
:title=
"'使用大模型创建活动的趋势'"
:fontSize=
"16"
></BoxTitle>
<BoxTitle
:title=
"'使用大模型创建活动的趋势'"
:fontSize=
"16"
></BoxTitle>
<BarChart
ref=
"bigModuleChartRef"
:height=
"'15.83'"
domId=
"bigModuleChart"
:dataList
.
sync=
"bigModuleChartDataList"
></BarChart>
<BarChart
ref=
"bigModuleChartRef"
:height=
"'15.83
vh
'"
domId=
"bigModuleChart"
:dataList
.
sync=
"bigModuleChartDataList"
></BarChart>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/lifeSceneDataPage/components/NearThread.vue
View file @
4c7b422
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"near-thread-box"
>
<div
class=
"near-thread-box"
>
<BoxTitle
:title=
"'近12个月的线索推送情况'"
:fontSize=
"18"
></BoxTitle>
<BoxTitle
:title=
"'近12个月的线索推送情况'"
:fontSize=
"18"
></BoxTitle>
<img
class=
"bottom-line"
src=
"@/assets/images/bottomLine.png"
alt=
""
/>
<img
class=
"bottom-line"
src=
"@/assets/images/bottomLine.png"
alt=
""
/>
<BarChart
ref=
"nearThreadChartRef"
:height=
"'22.83'"
domId=
"nearThreadChart"
:dataList
.
sync=
"nearThreadDataList"
></BarChart>
<BarChart
ref=
"nearThreadChartRef"
:height=
"'22.83
vh
'"
domId=
"nearThreadChart"
:dataList
.
sync=
"nearThreadDataList"
></BarChart>
</div>
</div>
</
template
>
</
template
>
...
...
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