Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
葛齐林
energyai_vue
Commits
26edaee6
Commit
26edaee6
authored
Apr 13, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史数据列表
parent
02941768
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
history.vue
src/pages/kb/outdoor/history.vue
+29
-27
No files found.
src/pages/kb/outdoor/history.vue
View file @
26edaee6
...
...
@@ -23,10 +23,10 @@ el-dialog(
el-button(
size="mini",
type="primary",
@click="handleDate(i
ndex
)",
@click="handleDate(i
tem.id
)",
v-for="(item, index) in typeList",
:key="index",
:class="[i
ndex
== currentActive ? 'isActive' : '']"
:class="[i
tem.id
== currentActive ? 'isActive' : '']"
)
{{
item
.
name
}}
span(v-if="type == 1")
el-table(
...
...
@@ -113,6 +113,7 @@ export default {
return
{
type
:
null
,
pageIndex
:
1
,
pageSize
:
10
,
totalPage
:
0
,
visible
:
false
,
...
...
@@ -121,12 +122,12 @@ export default {
dateValue
:
''
},
typeList
:
[
{
name
:
'当日'
},
{
name
:
'本周'
},
{
name
:
'当月'
},
{
name
:
'今年'
}
{
name
:
'当日'
,
id
:
1
},
{
name
:
'本周'
,
id
:
2
},
{
name
:
'当月'
,
id
:
3
},
{
name
:
'今年'
,
id
:
4
}
],
currentActive
:
'0'
,
currentActive
:
1
,
dataList
:
[],
chartList
:
[
{
id
:
'11'
,
title
:
'温度'
,
color
:
'#21ACFC'
},
...
...
@@ -152,32 +153,33 @@ export default {
},
methods
:
{
init
(
id
,
type
)
{
this
.
type
=
type
this
.
dataForm
.
id
=
id
init
(
data
,
type
)
{
console
.
log
(
11111
)
this
.
type
=
type
// 1=>>> 历史数据 / 2=>>> 统计图表
this
.
visible
=
true
if
(
id
)
{
// this.$http({
// url: this.$http.adornUrlProduct(`/brandMain/getId/${this.dataForm.id}`),
// method: 'get',
// params: this.$http.adornParams()
// }).then((data) => {
// if (data && data.code === 0) {
// this.dataForm = data.bean
// }
// })
}
else
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dataForm'
].
resetFields
()
})
}
// this.getDataList() //获取历史数据列表
},
// 当日 ,本周
handleDate
(
i
)
{
this
.
currentActive
=
i
},
getDataList
()
{},
getDataList
(
page
,
rows
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/kanban/getListByTypeAndId `
),
method
:
'get'
,
params
:
{
resourceId
:
''
,
resourceType
:
'9a570e608d0840499551eca89d76449d'
,
//室外气象站
type
:
this
.
currentActive
,
page
:
page
||
this
.
pageSize
,
rows
:
rows
||
this
.
pageSize
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'室外气象站历史数据'
,
data
)
}
})
},
showParams
(
data
,
type
)
{
console
.
log
(
111
)
this
.
historyVisible
=
true
...
...
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