Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_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
葛齐林
zhxf_vue
Commits
476038b8
Commit
476038b8
authored
May 13, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警
parent
8dbd9fa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
index.vue
src/pages/alarms/untreated/index.vue
+21
-21
query-list.vue
src/pages/alarms/untreated/query-list.vue
+1
-1
No files found.
src/pages/alarms/untreated/index.vue
View file @
476038b8
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
div.left_main_body
div.left_main_body
div.left_col_header 报警处理情况
div.left_col_header 报警处理情况
el-row.row_style()
el-row.row_style()
el-col(:span="
8
")
el-col(:span="
12
")
div(style="color:#F56C6C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
oneCount
}}
div(style="color:#F56C6C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
oneCount
}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 未处理
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 未处理
el-col(:span="8")
//-
el-col(:span="8")
div(style="color:#E6A23C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
twoCount
}}
//-
div(style="color:#E6A23C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
twoCount
}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 处理中
//-
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 处理中
el-col(:span="
8
")
el-col(:span="
12
")
div(style="color:#409EFF;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
threeCount
}}
div(style="color:#409EFF;font-size:18px;font-weight:400;font-family:Microsoft YaHei;")
{{
status
.
threeCount
}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 已处理
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 已处理
div.left_main_body
div.left_main_body
...
@@ -48,11 +48,11 @@ export default {
...
@@ -48,11 +48,11 @@ export default {
activeName
:
'0'
,
activeName
:
'0'
,
level
:
{},
level
:
{},
status
:
{},
status
:
{},
chartData
:
null
,
chartData
:
null
}
}
},
},
components
:
{
components
:
{
QueryList
,
QueryList
},
},
created
()
{
created
()
{
this
.
eventList
=
[]
this
.
eventList
=
[]
...
@@ -69,12 +69,12 @@ export default {
...
@@ -69,12 +69,12 @@ export default {
let
option
=
{
let
option
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'item'
,
trigger
:
'item'
,
formatter
:
'{b}: {c} ({d}%)'
,
formatter
:
'{b}: {c} ({d}%)'
},
},
legend
:
{
legend
:
{
orient
:
'horizontal'
,
orient
:
'horizontal'
,
bottom
:
10
,
bottom
:
10
,
data
:
[
'特别重大'
,
'重大'
,
'一般'
]
,
data
:
[
'特别重大'
,
'重大'
,
'一般'
]
},
},
series
:
[
series
:
[
{
{
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
//自定义文字
//自定义文字
//return element.name + ':' + element.value + '(' + element.percent + '%)'
//return element.name + ':' + element.value + '(' + element.percent + '%)'
return
element
.
percent
+
'%'
return
element
.
percent
+
'%'
}
,
}
},
},
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
...
@@ -95,15 +95,15 @@ export default {
...
@@ -95,15 +95,15 @@ export default {
//自定义颜色
//自定义颜色
let
colorList
=
[
'#F56C6C'
,
'#E6A23C'
,
'#409EFF'
]
let
colorList
=
[
'#F56C6C'
,
'#E6A23C'
,
'#409EFF'
]
return
colorList
[
params
.
dataIndex
]
return
colorList
[
params
.
dataIndex
]
}
,
}
}
,
}
},
},
labelLine
:
{
labelLine
:
{
show
:
true
,
show
:
true
},
},
data
:
this
.
chartData
,
data
:
this
.
chartData
}
,
}
]
,
]
}
}
myCharts
.
setOption
(
option
)
myCharts
.
setOption
(
option
)
},
},
...
@@ -114,8 +114,8 @@ export default {
...
@@ -114,8 +114,8 @@ export default {
url
:
this
.
$http
.
adornUrlAlarm
(
`/alarmsInfo/queryGroupUntreated`
),
url
:
this
.
$http
.
adornUrlAlarm
(
`/alarmsInfo/queryGroupUntreated`
),
method
:
'get'
,
method
:
'get'
,
params
:
this
.
$http
.
adornParams
({
params
:
this
.
$http
.
adornParams
({
stationId
:
localStorage
.
getItem
(
'stationId'
)
,
stationId
:
localStorage
.
getItem
(
'stationId'
)
})
,
})
}).
then
((
data
)
=>
{
}).
then
((
data
)
=>
{
this
.
leftLoading
=
false
this
.
leftLoading
=
false
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
this
.
chartData
=
[
this
.
chartData
=
[
{
value
:
this
.
level
.
oneCount
,
name
:
'特别重大'
},
{
value
:
this
.
level
.
oneCount
,
name
:
'特别重大'
},
{
value
:
this
.
level
.
twoCount
,
name
:
'重大'
},
{
value
:
this
.
level
.
twoCount
,
name
:
'重大'
},
{
value
:
this
.
level
.
threeCount
,
name
:
'一般'
}
,
{
value
:
this
.
level
.
threeCount
,
name
:
'一般'
}
]
]
this
.
groupInit
()
this
.
groupInit
()
}
}
...
@@ -135,8 +135,8 @@ export default {
...
@@ -135,8 +135,8 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
queryList
.
init
(
this
.
activeName
)
this
.
$refs
.
queryList
.
init
(
this
.
activeName
)
})
})
}
,
}
}
,
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/pages/alarms/untreated/query-list.vue
View file @
476038b8
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
el-select(v-model="dataForm.eventType" style="width:150px" placeholder="请选择" clearable)
el-select(v-model="dataForm.eventType" style="width:150px" placeholder="请选择" clearable)
el-option(v-for="(item,index) in alarmOption" :label="item.eventName" :value="item.id" :key="index")
el-option(v-for="(item,index) in alarmOption" :label="item.eventName" :value="item.id" :key="index")
el-form-item(label="报警状态:")
el-form-item(label="报警状态:")
el-select(v-model="dataForm.status" style="width:1
5
0px" placeholder="请选择" clearable)
el-select(v-model="dataForm.status" style="width:1
0
0px" placeholder="请选择" clearable)
el-option(label="未处理" value=1)
el-option(label="未处理" value=1)
el-option(label="处理中" value=2)
el-option(label="处理中" value=2)
el-option(label="已处理" value=3)
el-option(label="已处理" value=3)
...
...
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