Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
0c9b9a68
Commit
0c9b9a68
authored
Sep 13, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了动环监视的列表查询
parent
7f38b093
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
39 deletions
+39
-39
MoveMonitorAlarmPage.vue
src/views/AIStation/MoveMonitorPage/MoveMonitorAlarmPage.vue
+17
-17
MoveMonitorHistoryPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
+11
-11
MoveMonitorNewDataPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
+11
-11
No files found.
src/views/AIStation/MoveMonitorPage/MoveMonitorAlarmPage.vue
View file @
0c9b9a68
...
...
@@ -89,12 +89,12 @@ function getDataByParams(){
Page
.
rows
=
res
.
pageSize
})
}
function
getName
(
name
)
{
if
(
AlarmData
&&
AlarmData
.
value
.
length
>
0
&&
name
!==
undefined
&&
options
&&
options
.
value
.
length
>
0
)
{
const
option
=
options
.
value
.
find
(
item
=>
item
.
stationId
===
name
);
return
option
.
stationName
}
}
//
function getName(name) {
//
if (AlarmData && AlarmData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
//
const option = options.value.find(item => item.stationId === name);
//
return option.stationName
//
}
//
}
function
getDataNew
(
item
)
{
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
...
...
@@ -178,28 +178,28 @@ getSupplys()
:row-class-name=
"tableBodyClass"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"station
Id
"
align=
"center"
label=
"换热站"
sortable
>
<el-table-column
prop=
"station
Name
"
align=
"center"
label=
"换热站"
sortable
>
<template
#
default=
"scope"
>
<span>
{{
getName
(
scope
.
row
.
stationId
)
||
'-'
}}
</span>
<span>
{{
scope
.
row
.
stationName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"srcName"
align=
"center"
label=
"设施名称"
sortable
/>
<el-table-column
prop=
"eventTime"
align=
"center"
label=
"报警时间"
sortable
/>
<el-table-column
prop=
"
alarm
Type"
align=
"center"
label=
"报警类型"
>
<el-table-column
prop=
"
event
Type"
align=
"center"
label=
"报警类型"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.
alarmType=== '0'
"
>
最高温度
</span>
<span
v-else-if=
"scope.row.
alarmType=== '1'
"
>
最低温度
</span>
<span
v-else-if=
"scope.row.
alarmType=== '2'
"
>
平均温度
</span>
<span
v-else-if=
"scope.row.
alarmType=== '3'
"
>
温差
</span>
<span
v-else-if=
"scope.row.
alarmType=== '4'
"
>
温度突升
</span>
<span
v-else-if=
"scope.row.
alarmType=== '5'
"
>
温度突降
</span>
<span
v-if=
"scope.row.
eventType=== 0
"
>
最高温度
</span>
<span
v-else-if=
"scope.row.
eventType=== 1
"
>
最低温度
</span>
<span
v-else-if=
"scope.row.
eventType=== 2
"
>
平均温度
</span>
<span
v-else-if=
"scope.row.
eventType=== 3
"
>
温差
</span>
<span
v-else-if=
"scope.row.
eventType=== 4
"
>
温度突升
</span>
<span
v-else-if=
"scope.row.
eventType=== 5
"
>
温度突降
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"handleStatus"
align=
"center"
label=
"处理状态"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.handleStatus===
'0'
"
style=
"color: red"
>
未处理
</span>
<span
v-else-if=
"scope.row.handleStatus===
'1'
"
>
已处理
</span>
<span
v-if=
"scope.row.handleStatus===
0
"
style=
"color: red"
>
未处理
</span>
<span
v-else-if=
"scope.row.handleStatus===
1
"
>
已处理
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
View file @
0c9b9a68
...
...
@@ -85,12 +85,12 @@ function getDataByParams(){
historyPage
.
rows
=
res
.
pageSize
})
}
function
getName
(
name
)
{
if
(
HistoryData
&&
HistoryData
.
value
.
length
>
0
&&
name
!==
undefined
&&
options
&&
options
.
value
.
length
>
0
)
{
const
option
=
options
.
value
.
find
(
item
=>
item
.
stationId
===
name
);
return
option
.
stationName
}
}
//
function getName(name) {
//
if (HistoryData && HistoryData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
//
const option = options.value.find(item => item.stationId === name);
//
return option.stationName
//
}
//
}
function
getDataNew
(
item
)
{
getMoveListHistoryData
(
item
).
then
(
res
=>
{
...
...
@@ -174,9 +174,9 @@ getSupplys()
:row-class-name=
"tableBodyClass"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"station
Id
"
align=
"center"
label=
"所属换热站"
sortable
>
<el-table-column
prop=
"station
Name
"
align=
"center"
label=
"所属换热站"
sortable
>
<template
#
default=
"scope"
>
<span>
{{
getName
(
scope
.
row
.
stationId
)
||
'-'
}}
</span>
<span>
{{
scope
.
row
.
stationName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"relateDeviceId"
align=
"center"
label=
"设备"
sortable
/>
...
...
@@ -192,9 +192,9 @@ getSupplys()
<el-table-column
prop=
"result"
align=
"center"
label=
"采集数据"
/>
<el-table-column
prop=
"taskState"
align=
"center"
label=
"状态"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.taskState===
'1'
"
>
执行中
</span>
<span
v-else-if=
"scope.row.taskState===
'2'
"
>
成功
</span>
<span
v-else-if=
"scope.row.taskState===
'99'
"
>
失败
</span>
<span
v-if=
"scope.row.taskState===
1
"
>
执行中
</span>
<span
v-else-if=
"scope.row.taskState===
2
"
>
成功
</span>
<span
v-else-if=
"scope.row.taskState===
99
"
>
失败
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
View file @
0c9b9a68
...
...
@@ -80,12 +80,12 @@ function getData(){
Page
.
rows
=
res
.
pageSize
})
}
function
getName
(
name
)
{
if
(
data
&&
data
.
value
.
length
>
0
&&
name
!==
undefined
&&
options
&&
options
.
value
.
length
>
0
)
{
const
option
=
options
.
value
.
find
(
item
=>
item
.
stationId
===
name
);
return
option
.
stationName
}
}
//
function getName(name) {
//
if (data && data.value.length > 0 && name !== undefined && options && options.value.length > 0) {
//
const option = options.value.find(item => item.stationId === name);
//
return option.stationName
//
}
//
}
function
getDataNew
(
item
)
{
getMoveListNewData
(
item
).
then
(
res
=>
{
...
...
@@ -169,9 +169,9 @@ getSupplys()
:row-class-name=
"tableBodyClass"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
/>
<el-table-column
prop=
"station
Id
"
align=
"center"
label=
"所属换热站"
sortable
>
<el-table-column
prop=
"station
Name
"
align=
"center"
label=
"所属换热站"
sortable
>
<template
#
default=
"scope"
>
<span>
{{
getName
(
scope
.
row
.
stationId
)
||
'-'
}}
</span>
<span>
{{
scope
.
row
.
stationName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"relateDeviceId"
align=
"center"
label=
"设备"
sortable
/>
...
...
@@ -187,9 +187,9 @@ getSupplys()
<el-table-column
prop=
"result"
align=
"center"
label=
"采集数据"
/>
<el-table-column
prop=
"taskState"
align=
"center"
label=
"状态"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.taskState===
'1'
"
>
执行中
</span>
<span
v-else-if=
"scope.row.taskState===
'2'
"
>
成功
</span>
<span
v-else-if=
"scope.row.taskState===
'99'
"
>
失败
</span>
<span
v-if=
"scope.row.taskState===
1
"
>
执行中
</span>
<span
v-else-if=
"scope.row.taskState===
2
"
>
成功
</span>
<span
v-else-if=
"scope.row.taskState===
99
"
>
失败
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
...
...
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