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
f7357d54
Commit
f7357d54
authored
Aug 10, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2ed66b2a
b0a5815a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
219 additions
and
322 deletions
+219
-322
alarmdetail.vue
...-web/src/views/dataMonitoring/deviceAlarm/alarmdetail.vue
+110
-79
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+1
-0
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+3
-2
inspectiondetail.vue
...iews/deviceInspection/inspectionPlan/inspectiondetail.vue
+105
-241
No files found.
gassafety-web/src/views/dataMonitoring/deviceAlarm/alarmdetail.vue
View file @
f7357d54
...
@@ -12,6 +12,51 @@
...
@@ -12,6 +12,51 @@
</div>
</div>
</div>
</div>
<div
style=
"width: 100%;height: 200px;"
>
<!--
<div
style=
"color: #31EAEA;width: 30%;height: 30px;"
>
<ul><li>
详细信息
</li></ul>
</div>
-->
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"设备类型:"
prop=
"deviceType"
>
<font
v-if=
"form.deviceType == 0"
>
管道
</font>
<font
v-if=
"form.deviceType == 1"
>
调压阀
</font>
<font
v-if=
"form.deviceType == 2"
>
阀门井
</font>
<font
v-if=
"form.deviceType == 3"
>
流量计
</font>
<font
v-if=
"form.deviceType == 4"
>
压力表
</font>
</el-form-item>
<el-form-item
label=
"设备编号:"
prop=
"deviceCode"
>
<font>
{{
form
.
deviceCode
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"报警类型:"
prop=
"alarmType"
>
<font>
{{
form
.
alarmType
}}
</font>
</el-form-item>
<el-form-item
label=
"报警值:"
prop=
"alarmValue"
>
<font>
{{
form
.
alarmValue
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"报警开始时间:"
prop=
"startTime"
>
<font>
{{
form
.
startTime
}}
</font>
</el-form-item>
<el-form-item
label=
"报警结束时间:"
prop=
"updateTime"
>
<font>
{{
form
.
endTime
}}
</font>
</el-form-item>
</el-form>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"float: left;margin-left: 50px;"
>
<el-form-item
label=
"处理状态:"
prop=
"dealStatus"
>
<font
v-if=
"form.dealStatus == 1"
>
不需要处理
</font>
<font
v-if=
"form.dealStatus == 2"
>
已处理完成
</font>
<font
v-if=
"form.dealStatus == 3"
>
未处理完成
</font>
</el-form-item>
</el-form>
</div>
<el-divider></el-divider>
<div
style=
"width: 100%;height: 350px;padding: 10px;height: 300px;"
>
<div
style=
"width: 100%;height: 350px;padding: 10px;height: 300px;"
>
<div
style=
"width: 66.6%;float: left;height: 100%;"
>
<div
style=
"width: 66.6%;float: left;height: 100%;"
>
<el-table
<el-table
...
@@ -69,7 +114,7 @@
...
@@ -69,7 +114,7 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<div
id=
"marbox"
style=
"width: 33%;height: 3
50px; border: 1px solid rgb(218, 213, 213);float: right;margin-top: -45px
;"
>
<div
id=
"marbox"
style=
"width: 33%;height: 3
04px; border: 1px solid rgb(218, 213, 213);float: right
;"
>
<div
style=
"width: 100%;height: 100%"
id=
"container"
></div>
<div
style=
"width: 100%;height: 100%"
id=
"container"
></div>
</div>
</div>
</div>
</div>
...
@@ -91,13 +136,13 @@
...
@@ -91,13 +136,13 @@
<
script
>
<
script
>
import
{
listBasicsInfo
,
getBasicsInfo
,
delBasicsInfo
,
addBasicsInfo
,
updateBasicsInfo
,
exportBasicsInfo
}
from
"@/api/workOrder/basicsInfo
"
;
import
{
listDeviceAlarm
,
getDeviceAlarm
}
from
"@/api/dataMonitoring/deviceAlarm
"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
echarts
from
'echarts'
;
import
echarts
from
'echarts'
;
// Vue.prototype.$echarts = echarts
;
import
{
addBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
export
default
{
export
default
{
name
:
"BasicsInfo"
,
name
:
"BasicsInfo"
,
...
@@ -111,70 +156,56 @@ export default {
...
@@ -111,70 +156,56 @@ export default {
address
:
'上海市普陀区金沙江路 1518 弄'
address
:
'上海市普陀区金沙江路 1518 弄'
},],
},],
inspector
:
[],
inspector
:
[],
isDisplay
:
false
,
// 遮罩层
dialogImageUrl
:
''
,
loading
:
true
,
dialogVisible
:
false
,
// 导出遮罩层
disabled
:
false
,
exportLoading
:
false
,
imageUrl
:
''
,
// 选中数组
// 遮罩层
ids
:
[],
loading
:
true
,
// 非单个禁用
// 导出遮罩层
single
:
true
,
exportLoading
:
false
,
// 非多个禁用
// 选中数组
multiple
:
true
,
ids
:
[],
// 显示搜索条件
// 非单个禁用
showSearch
:
true
,
single
:
true
,
// 总条数
// 非多个禁用
total
:
0
,
rules
:{},
// 报警信息表格数据
deviceAlarmList
:
[],
// 报警类型字典
typeOptions
:
[],
// 设备级联
options
:
[],
props
:
{
multiple
:
true
,
multiple
:
true
,
// 显示搜索条件
value
:
"id"
,
showSearch
:
true
,
label
:
"name"
,
// 总条数
level
:
"level"
,
total
:
0
,
children
:
"childList"
,
// 工单基础信息表格数据
},
basicsInfoList
:
[],
devices
:
null
,
// feedbackList: [],
// 巡检员列表
// 弹出层标题
inspector
:
[],
title
:
""
,
// 弹出层标题
// 是否显示弹出层
title
:
""
,
open
:
false
,
// 是否显示弹出层
// 工单状态字典
open
:
false
,
typeOptions
:
[],
// 查询参数
pickerOptions
:[],
queryParams
:
{
// 工单类型字典
pageNum
:
1
,
ordertypeOptions
:
[],
pageSize
:
10
,
// 设备树选项
deviceId
:
null
,
deviceOptions
:
[
orderId
:
null
,
{
alarmType
:
null
,
label
:
"设备列表"
,
alarmValue
:
null
,
childList
:
[]
startTime
:
null
,
}
endTime
:
null
,
],
dealStatus
:
null
defaultProps
:
{
},
children
:
"childList"
,
// 表单参数
label
:
"label"
form
:
{
},
},
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
activity
:
{},
// 表单校验
rules
:
{
},
active
:
0
,
orderId
:
""
,
showAndHide
:
false
};
};
},
},
...
@@ -189,12 +220,12 @@ export default {
...
@@ -189,12 +220,12 @@ export default {
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
ordertypeOptions
=
response
.
data
;
this
.
ordertypeOptions
=
response
.
data
;
});
});
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
},
},
mounted
(){
mounted
(){
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
this
.
gaoMap
=
gaoMap
;
this
.
gaoMap
=
gaoMap
;
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
this
.
initData
();
this
.
initData
();
this
.
drawPieChart
();
this
.
drawPieChart
();
this
.
main3
();
this
.
main3
();
...
@@ -751,15 +782,15 @@ export default {
...
@@ -751,15 +782,15 @@ export default {
},
},
/** 查询工单基础信息列表 */
/** 查询工单基础信息列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
listBasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
listDeviceAlarm
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfo
List
=
response
.
rows
;
this
.
deviceAlarm
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
getBasicsInfo
(){
getDeviceAlarm
(){
getBasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
getDeviceAlarm
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
if
(
this
.
form
.
deviceInfoList
.
length
>
0
){
if
(
this
.
form
.
deviceInfoList
.
length
>
0
){
...
@@ -837,7 +868,7 @@ export default {
...
@@ -837,7 +868,7 @@ export default {
/** 归档按钮操作 */
/** 归档按钮操作 */
handleFinish
(
res
)
{
handleFinish
(
res
)
{
// this.reset();
// this.reset();
get
BasicsInfo
(
res
).
then
(
response
=>
{
get
DeviceAlarm
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
this
.
title
=
"工单信息归档"
;
...
@@ -847,7 +878,7 @@ export default {
...
@@ -847,7 +878,7 @@ export default {
handleUpdate
(
res
)
{
handleUpdate
(
res
)
{
// this.reset();
// this.reset();
this
.
getInspectorList
();
this
.
getInspectorList
();
get
BasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
get
InspectorList
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"工单信息修改"
;
this
.
title
=
"工单信息修改"
;
...
...
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
f7357d54
...
@@ -243,6 +243,7 @@ export default {
...
@@ -243,6 +243,7 @@ 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
(){
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
f7357d54
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
// 表单校验
// 表单校验
rules
:
{
rules
:
{
planName
:
[
planName
:
[
{
required
:
true
,
message
:
"计划名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"
计划名称不能为空"
,
trigger
:
"blur"
}
],
],
orderName
:
[
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
...
@@ -321,6 +321,7 @@
...
@@ -321,6 +321,7 @@
this
.
inspectionPlanList
=
response
.
rows
;
this
.
inspectionPlanList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
console
.
log
(
"this.inspectionPlanList"
,
this
.
inspectionPlanList
)
}
);
}
);
}
,
}
,
/** 详细信息跳转 */
/** 详细信息跳转 */
...
@@ -328,7 +329,7 @@
...
@@ -328,7 +329,7 @@
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/inspectionPlan/inspectiondetail'
,
path
:
'/inspectionPlan/inspectiondetail'
,
query
:{
query
:{
orderId
:
row
.
order
Id
planId
:
row
.
plan
Id
}
}
}
)
//带参跳转
}
)
//带参跳转
}
,
}
,
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/inspectiondetail.vue
View file @
f7357d54
This diff is collapsed.
Click to expand it.
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