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
13e995b9
Commit
13e995b9
authored
Apr 15, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
0d3619b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
11 deletions
+29
-11
index.vue
src/pages/analysis/fault/index.vue
+29
-11
No files found.
src/pages/analysis/fault/index.vue
View file @
13e995b9
<
template
lang=
'pug'
>
<
template
lang=
"pug"
>
card-warp(title="故障报警分析", height="45px", showBackground)
div(slot="content")
el-form(:inline="true", size="mini")
...
...
@@ -6,10 +6,10 @@ card-warp(title="故障报警分析", height="45px", showBackground)
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
}}
.echartsWarp(width="100%", flex)
//- div
...
...
@@ -41,22 +41,40 @@ export default {
data
()
{
return
{
typeList
:
[
{
name
:
'当日'
},
{
name
:
'本周'
},
{
name
:
'当月'
},
{
name
:
'今年'
}
{
name
:
'当日'
,
id
:
1
},
{
name
:
'本周'
,
id
:
2
},
{
name
:
'当月'
,
id
:
3
},
{
name
:
'今年'
,
id
:
4
}
],
currentActive
:
'0'
currentActive
:
1
}
},
mounted
()
{
this
.
getDataList
()
},
methods
:
{
getDataList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/analysis/getFaultAlarmList'
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
({
type
:
this
.
currentActive
})
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据1'
,
data
.
typeList
)
console
.
log
(
'数据2'
,
data
.
idList
)
// this.data = data.list
}
})
},
tabClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
},
// 当日 ,本周
// 当日 ,本周
handleDate
(
i
)
{
this
.
currentActive
=
i
this
.
getDataList
()
}
}
}
...
...
@@ -82,7 +100,7 @@ export default {
color
:
#000000
;
line-height
:
40px
;
&
:
:
before
{
content
:
""
;
content
:
''
;
display
:
inline-block
;
width
:
10px
;
height
:
10px
;
...
...
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