Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
624e1196
Commit
624e1196
authored
Aug 11, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警信息列表页
parent
95deac6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
91 deletions
+64
-91
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+64
-91
No files found.
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
624e1196
...
@@ -215,7 +215,6 @@ export default {
...
@@ -215,7 +215,6 @@ export default {
this
.
deviceAlarmList
=
response
.
rows
;
this
.
deviceAlarmList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
console
.
log
(
"this.deviceAlarmList"
,
this
.
deviceAlarmList
)
});
});
},
},
getInspectorList
(){
getInspectorList
(){
...
@@ -233,72 +232,47 @@ export default {
...
@@ -233,72 +232,47 @@ export default {
this
.
open
=
false
;
this
.
open
=
false
;
this
.
reset
();
this
.
reset
();
},
},
data
()
{
// 表单重置
return
{
reset
()
{
// 遮罩层
this
.
form
=
{
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 报警信息表格数据
deviceAlarmList
:
[],
// 报警类型字典
typeOptions
:
[],
// 设备级联
options
:
[],
props
:
{
multiple
:
true
,
value
:
"id"
,
label
:
"name"
,
level
:
"level"
,
children
:
"childList"
,
},
devices
:
null
,
// 巡检员列表
inspector
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceId
:
null
,
orderId
:
null
,
orderId
:
null
,
alarmType
:
null
,
orderType
:
null
,
alarmValue
:
null
,
orderName
:
null
,
startTime
:
null
,
orderStatus
:
"0"
,
endTime
:
null
,
createTime
:
null
,
dealStatus
:
null
appointInspector
:
null
,
},
allotTime
:
null
,
// 表单参数
actualInspector
:
null
,
form
:
{},
actualTime
:
null
,
// 表单校验
remarks
:
null
rules
:
{
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
],
appointInspector
:
[
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
],
}
};
};
this
.
resetForm
(
"form"
);
},
},
created
()
{
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
this
.
getDicts
(
"t_alarm_type"
).
then
(
response
=>
{
},
this
.
typeOptions
=
response
.
data
;
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
alarmId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 下发按钮操作 */
handleIssue
(
row
)
{
this
.
reset
();
this
.
getInspectorList
();
const
alarmId
=
row
.
alarmId
||
this
.
ids
getDeviceAlarm
(
alarmId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"填写工单信息"
;
});
});
},
},
...
@@ -325,8 +299,7 @@ export default {
...
@@ -325,8 +299,7 @@ export default {
alarmId
:
row
.
alarmId
alarmId
:
row
.
alarmId
}
}
})
//带参跳转
})
//带参跳转
},
},
}
}
};
};
</
script
>
</
script
>
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