Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
super-hive-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
front-end
super-hive-web
Commits
7b9f4e6f
Commit
7b9f4e6f
authored
Aug 11, 2020
by
wends
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 历史查询
parent
68658eaa
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
349 additions
and
168 deletions
+349
-168
query-history.js
src/api/data-visible/query-history.js
+3
-3
ELine.vue
src/components/Charts/ELine.vue
+14
-3
index.vue
src/views/data-visible/query-history/index.vue
+332
-162
No files found.
src/api/data-visible/query-history.js
View file @
7b9f4e6f
...
@@ -2,10 +2,10 @@ import request from '@/utils/request'
...
@@ -2,10 +2,10 @@ import request from '@/utils/request'
// const baseURL = process.env.VUE_APP_BASE_API
// const baseURL = process.env.VUE_APP_BASE_API
const
baseURL
=
''
const
baseURL
=
''
// 获取
数据集列表-分页
// 获取
图表历史
export
function
get
TableData
(
data
)
{
export
function
get
ModelHistory
(
data
)
{
return
request
({
return
request
({
url
:
`
${
baseURL
}
/
cc/linque/getDatasetList
`
,
url
:
`
${
baseURL
}
/
iot/dashboard/modelHistory
`
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
...
...
src/components/Charts/ELine.vue
View file @
7b9f4e6f
...
@@ -39,6 +39,12 @@ export default {
...
@@ -39,6 +39,12 @@ export default {
description
:
{
description
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
},
config
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
}
},
},
data
()
{
data
()
{
...
@@ -81,8 +87,7 @@ export default {
...
@@ -81,8 +87,7 @@ export default {
},
},
initChart
()
{
initChart
()
{
this
.
chart
=
echarts
.
init
(
document
.
getElementById
(
this
.
id
))
this
.
chart
=
echarts
.
init
(
document
.
getElementById
(
this
.
id
))
let
config
=
{
this
.
chart
.
setOption
({
title
:
{
title
:
{
text
:
`
${
this
.
title
}
监控图表`
,
text
:
`
${
this
.
title
}
监控图表`
,
subtext
:
`单位为:
${
this
.
description
}
`
subtext
:
`单位为:
${
this
.
description
}
`
...
@@ -100,7 +105,13 @@ export default {
...
@@ -100,7 +105,13 @@ export default {
type
:
'
line
'
,
type
:
'
line
'
,
data
:
[]
data
:
[]
}]
}]
})
}
config
=
{
...
config
,
...
this
.
config
}
this
.
chart
.
setOption
(
config
)
}
}
}
}
}
}
...
...
src/views/data-visible/query-history/index.vue
View file @
7b9f4e6f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment