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
941c740f
Commit
941c740f
authored
Aug 10, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据检测设备巡检详情
parent
16b89931
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
210 additions
and
294 deletions
+210
-294
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
+96
-213
No files found.
gassafety-web/src/views/dataMonitoring/deviceAlarm/alarmdetail.vue
View file @
941c740f
...
...
@@ -12,6 +12,51 @@
</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: 66.6%;float: left;height: 100%;"
>
<el-table
...
...
@@ -69,7 +114,7 @@
</el-table-column>
</el-table>
</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>
</div>
...
...
@@ -91,13 +136,13 @@
<
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
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
echarts
from
'echarts'
;
// Vue.prototype.$echarts = echarts
;
import
{
addBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
export
default
{
name
:
"BasicsInfo"
,
...
...
@@ -111,70 +156,56 @@ export default {
address
:
'上海市普陀区金沙江路 1518 弄'
},],
inspector
:
[],
isDisplay
:
false
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
disabled
:
false
,
imageUrl
:
''
,
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
rules
:{},
// 报警信息表格数据
deviceAlarmList
:
[],
// 报警类型字典
typeOptions
:
[],
// 设备级联
options
:
[],
props
:
{
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单基础信息表格数据
basicsInfoList
:
[],
// feedbackList: [],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 工单状态字典
typeOptions
:
[],
pickerOptions
:[],
// 工单类型字典
ordertypeOptions
:
[],
// 设备树选项
deviceOptions
:
[
{
label
:
"设备列表"
,
childList
:
[]
}
],
defaultProps
:
{
children
:
"childList"
,
label
:
"label"
},
// 查询参数
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
value
:
"id"
,
label
:
"name"
,
level
:
"level"
,
children
:
"childList"
,
},
devices
:
null
,
// 巡检员列表
inspector
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
deviceId
:
null
,
orderId
:
null
,
alarmType
:
null
,
alarmValue
:
null
,
startTime
:
null
,
endTime
:
null
,
dealStatus
:
null
},
// 表单参数
form
:
{
},
};
},
...
...
@@ -189,12 +220,12 @@ export default {
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
ordertypeOptions
=
response
.
data
;
});
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
},
mounted
(){
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
this
.
gaoMap
=
gaoMap
;
this
.
get
BasicsInfo
();
this
.
get
DeviceAlarm
();
this
.
initData
();
this
.
drawPieChart
();
this
.
main3
();
...
...
@@ -751,15 +782,15 @@ export default {
},
/** 查询工单基础信息列表 */
getList
()
{
this
.
loading
=
true
;
listBasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfo
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
getBasicsInfo
(){
getBasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
this
.
loading
=
true
;
listDeviceAlarm
(
this
.
queryParams
).
then
(
response
=>
{
this
.
deviceAlarm
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
getDeviceAlarm
(){
getDeviceAlarm
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
if
(
this
.
form
.
deviceInfoList
.
length
>
0
){
...
...
@@ -837,7 +868,7 @@ export default {
/** 归档按钮操作 */
handleFinish
(
res
)
{
// this.reset();
get
BasicsInfo
(
res
).
then
(
response
=>
{
get
DeviceAlarm
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
...
...
@@ -847,7 +878,7 @@ export default {
handleUpdate
(
res
)
{
// this.reset();
this
.
getInspectorList
();
get
BasicsInfo
(
this
.
orderId
).
then
(
response
=>
{
get
InspectorList
(
this
.
orderId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息修改"
;
...
...
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
941c740f
...
...
@@ -214,6 +214,7 @@ export default {
this
.
deviceAlarmList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
console
.
log
(
"this.deviceAlarmList"
,
this
.
deviceAlarmList
)
});
},
getInspectorList
(){
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
941c740f
...
...
@@ -283,7 +283,7 @@
// 表单校验
rules
:
{
planName
:
[
{
required
:
true
,
message
:
"计划名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"
计划名称不能为空"
,
trigger
:
"blur"
}
],
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
...
...
@@ -321,6 +321,7 @@
this
.
inspectionPlanList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
console
.
log
(
"this.inspectionPlanList"
,
this
.
inspectionPlanList
)
}
);
}
,
/** 详细信息跳转 */
...
...
@@ -328,7 +329,7 @@
this
.
$router
.
push
({
path
:
'/inspectionPlan/inspectiondetail'
,
query
:{
orderId
:
row
.
order
Id
planId
:
row
.
plan
Id
}
}
)
//带参跳转
}
,
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/inspectiondetail.vue
View file @
941c740f
...
...
@@ -34,8 +34,8 @@
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<font>
{{
form
.
orderId
}}
</font>
</el-form-item>
-->
<el-form-item
label=
"巡检名称:"
prop=
"
order
Name"
>
<font>
{{
form
.
order
Name
}}
</font>
<el-form-item
label=
"巡检名称:"
prop=
"
plan
Name"
>
<font>
{{
form
.
plan
Name
}}
</font>
</el-form-item>
<!--
<el-form-item
label=
"工单状态:"
prop=
"orderStatus"
>
<font
v-if=
"form.orderStatus == 0"
>
未接收
</font>
...
...
@@ -43,15 +43,19 @@
<font
v-if=
"form.orderStatus == 2"
>
已反馈
</font>
<font
v-if=
"form.orderStatus == 3"
>
已归档
</font>
</el-form-item>
-->
<el-form-item
label=
"选择人员:"
prop=
"appointInspectorName"
>
<font>
{{
form
.
appointInspectorName
}}
</font>
<!--
<el-form-item
label=
"选择人员:"
prop=
"planId"
>
<font>
{{
form
.
planId
}}
</font>
</el-form-item>
-->
<el-form-item
label=
"检测地点:"
prop=
"address"
>
<font>
{{
form
.
address
}}
</font>
</el-form-item>
<el-form-item
label=
"检测地点:"
prop=
"appointInspectorName"
>
<font>
{{
form
.
appointInspectorName
}}
</font>
<el-form-item
label=
"计划执行时间:"
prop=
"startTime"
>
<font>
{{
form
.
startTime
}}
至
{{
form
.
endTime
}}
</font>
</el-form-item>
<el-form-item
label=
"计划描述:"
prop=
"
appointInspectorName
"
>
<div
style=
"height: 90px;border: 1px solid rgb(187, 183, 183);margin-top: 10px;overflow-y: auto;padding: 5px;border-radius: 5px;"
>
<font>
{{
form
.
appointInspectorName
}}
<el-form-item
label=
"计划描述:"
prop=
"
remarks
"
>
<div
style=
"height: 90px;
width: 250px;
border: 1px solid rgb(187, 183, 183);margin-top: 10px;overflow-y: auto;padding: 5px;border-radius: 5px;"
>
<font>
{{
form
.
remarks
}}
</font>
</div>
</el-form-item>
...
...
@@ -84,9 +88,7 @@
<el-form-item
label=
"工单进度:"
v-if=
"form.orderType == 1"
>
<font>
{{
form
.
finishNum
}}
/
{{
form
.
deviceNum
}}
</font>
</el-form-item>
-->
<el-form-item
label=
"计划执行时间:"
prop=
"allotTime"
>
<font>
{{
form
.
allotTime
}}
-
{{
form
.
allotTime
}}
</font>
</el-form-item>
<!--
<el-form-item
label=
"接收时间:"
prop=
"actualTime"
>
<font>
{{
form
.
actualTime
}}
</font>
</el-form-item>
-->
...
...
@@ -96,179 +98,45 @@
</div>
</div>
<!-- 接单信息 -->
<div
v-if=
"form.actualTime != '' && form.actualTime != null"
>
<div>
<el-divider></el-divider>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<ul><li>
接单信息
</li></ul>
</div>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"margin-left: 50px;height: 30px;width: 100%;"
>
<el-form-item
label=
"下发人员:"
prop=
"a
ctual
InspectorName"
style=
"float: left;width: 15%;"
>
<font>
{{
form
.
a
ctual
InspectorName
}}
</font>
<el-form-item
label=
"下发人员:"
prop=
"a
ppoint
InspectorName"
style=
"float: left;width: 15%;"
>
<font>
{{
form
.
a
ppoint
InspectorName
}}
</font>
</el-form-item>
<el-form-item
label=
"下发时间:"
prop=
"a
ctual
Time"
style=
"float: left;width: 20%;"
>
<font>
{{
form
.
a
ctual
Time
}}
</font>
<el-form-item
label=
"下发时间:"
prop=
"a
llot
Time"
style=
"float: left;width: 20%;"
>
<font>
{{
form
.
a
llot
Time
}}
</font>
</el-form-item>
<el-form-item
label=
"工单编号:"
prop=
"
actualTime
"
style=
"float: left;"
>
<font>
{{
form
.
actualTime
}}
</font>
<el-form-item
label=
"工单编号:"
prop=
"
orderId
"
style=
"float: left;"
>
<font>
{{
form
.
orderId
}}
</font>
</el-form-item>
</el-form>
</div>
<el-divider></el-divider>
<!-- 反馈信息 -->
<!--
<div
style=
"width: 100%;font-weight: 600;"
v-if=
"form.feedbackList != null"
>
<div
style=
"color: #31EAEA;width: 100%;height: 40px;"
>
<ul><li>
反馈信息
</li></ul>
</div>
<div
class=
"block"
style=
"width: 95%;margin-left: 2%;"
>
<el-timeline
ref=
"timeline"
>
<el-timeline-item
v-for=
"(activity, index) in form.feedbackList"
v-show=
'index>1?false:true'
:key=
"index"
:timestamp=
"activity.feedbackTime"
>
<el-card>
<div
style=
"width: 600px;float: left;"
>
<div
style=
" width: 600px;"
>
<div
style=
"float: left;margin-left: 50px; width: 250px;"
>
<p>
设备类型:
<span
v-if=
"activity.deviceType == 0"
>
管道
</span>
<span
v-if=
"activity.deviceType == 1"
>
调压箱
</span>
<span
v-if=
"activity.deviceType == 2"
>
阀门井
</span>
<span
v-if=
"activity.deviceType == 3"
>
流量计
</span>
<span
v-if=
"activity.deviceType == 4"
>
压力表
</span>
</p>
<p>
是否有隐患:
<span
v-if=
"activity.isHiddenDanger == 1"
>
是
</span>
<span
v-if=
"activity.isHiddenDanger == 2"
>
否
</span>
</p>
<p
v-if=
"activity.isHiddenDanger == 1"
>
处理状态:
<span
v-if=
"activity.dealStatus == 1"
>
不需要处理
</span>
<span
v-if=
"activity.dealStatus == 2"
>
已处理完成
</span>
<span
v-if=
"activity.dealStatus == 3"
>
未处理完成
</span>
</p>
<div
style=
"width: 600px;"
>
<p>
反馈信息:
<span>
{{
activity
.
contents
}}
</span>
</p>
</div>
</div>
<div
style=
"float: left;margin-left: 50px; width: 250px;"
>
<p>
设备名称:
{{
activity
.
deviceName
}}
</p>
<p>
反馈时间:
{{
activity
.
feedbackTime
}}
</p>
</div>
</div>
</div>
<div
class=
"feedbackTime-div"
>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl1"
:preview-src-list=
"[activity.pictureUrl1]"
v-if=
"activity.pictureUrl1 != null && activity.pictureUrl1 != ''"
style=
"width: 90px;"
></el-image>
</div>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl2"
:preview-src-list=
"[activity.pictureUrl2]"
v-if=
"activity.pictureUrl2 != null && activity.pictureUrl2 != ''"
style=
"width: 90px;"
></el-image>
</div>
<div
class=
"feedbackTime"
>
<el-image
:src=
"activity.pictureUrl3"
:preview-src-list=
"[activity.pictureUrl3]"
v-if=
"activity.pictureUrl3 != null && activity.pictureUrl3 != ''"
style=
"width: 90px;"
></el-image>
</div>
</div>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
<div
style=
"width: 95%;position: relative;"
@
click=
"changeDisplay(scope)"
>
<i
class=
"el-icon-arrow-down"
v-if=
"isDisplay==false"
style=
"margin-left: 100px;color: #909399;font-size: 14px;"
>
<span
style=
"text-decoration:underline"
>
显示全部
</span>
</i>
<i
class=
"el-icon-arrow-up"
v-else
style=
"color: #909399;font-size: 14px;margin-left: 100px;"
>
<span
style=
"text-decoration:underline"
>
收起
</span>
</i>
</div>
<el-divider></el-divider>
</div>
-->
<!-- 归档 -->
<!--
<div
class=
""
style=
"width: 95%; height: 60px;margin-left: 50px;text-align: center;"
>
<el-button
type=
"primary"
size=
"normal"
icon=
"el-icon-edit"
@
click=
"handleUpdate(form.orderId)"
v-hasPermi=
"['workOrder:basicsInfo:edit']"
>
修改
</el-button>
<el-button
type=
"primary"
size=
"normal"
icon=
"el-icon-edit"
@
click=
"handleFinish(form.orderId)"
v-hasPermi=
"['workOrder:basicsInfo:editStatus']"
>
归档
</el-button>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<div
v-if=
"this.title == '工单信息修改'"
>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<el-input
v-model=
"form.orderName"
placeholder=
"请输入工单名称"
/>
</el-form-item>
<el-form-item
label=
"指定执行人员"
prop=
"appointInspector"
>
<el-select
v-model=
"form.appointInspectorName"
placeholder=
"请选择执行人员"
clearable
size=
"small"
@
change=
"setUserId"
>
<el-option
v-for=
"item in inspector"
:key=
"item.userId"
:label=
"item.nickName"
:value=
"item.userId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"工单描述"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
type=
"textarea"
placeholder=
"请输入工单描述"
/>
</el-form-item>
</div>
<div
v-if=
"this.title == '工单信息归档'"
>
<el-form-item
label=
"工单名称"
prop=
"orderName"
>
<font>
{{
form
.
orderName
}}
</font>
</el-form-item>
<el-form-item
label=
"工单类型"
prop=
"orderType"
>
<span
type=
"primary"
v-if=
"form.orderType == 1"
>
巡检信息
</span>
<span
type=
"primary"
v-if=
"form.orderType == 2"
>
隐患信息
</span>
<span
type=
"primary"
v-if=
"form.orderType == 3"
>
报警信息
</span>
</el-form-item>
<el-form-item
label=
"工单编号"
prop=
"orderId"
>
<font>
{{
form
.
orderId
}}
</font>
</el-form-item>
<el-form-item
label=
"归档信息"
prop=
"archiving"
>
<el-input
v-model=
"form.archiving"
type=
"textarea"
placeholder=
"请输入归档信息"
/>
</el-form-item>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
-->
</div>
</div>
</
template
>
<
script
>
import
{
listBasicsInfo
,
getBasicsInfo
,
delBasicsInfo
,
addBasicsInfo
,
updateBasicsInfo
,
exportBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
import
{
deviceTree
}
from
"@/api/device/deviceInfo"
;
import
{
listInspectionPlan
,
getInspectionPlan
,
addInspectionPlan
,
updateInspectionPlan
}
from
"@/api/deviceInspection/inspectionPlan"
;
import
gaodeMap
from
"utils/gaodeMap.js"
;
import
{
map
,
DEVICE_TYPE
}
from
"utils/gaodeMap.js"
;
import
{
addBasicsInfo
}
from
"@/api/workOrder/basicsInfo"
;
import
{
inspectorList
}
from
"@/api/system/user"
;
import
{
deviceNodeTree
}
from
"@/api/device/deviceInfo"
;
export
default
{
name
:
"
BasicsInfo
"
,
name
:
"
InspectionPlan
"
,
components
:
{
},
data
()
{
return
{
inspector
:
[],
isDisplay
:
false
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
disabled
:
false
,
imageUrl
:
''
,
// 遮罩层
loading
:
true
,
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
...
...
@@ -281,57 +149,67 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 工单基础信息表格数据
basicsInfoList
:
[],
// feedbackList: [],
// 巡检计划表格数据
inspectionPlanList
:
[],
// 计划状态字典
typeOptions
:
[],
// 设备级联
options
:
[],
plansName
:
''
,
props
:
{
multiple
:
true
,
value
:
"id"
,
label
:
"name"
,
level
:
"level"
,
children
:
"childList"
,
},
devices
:
null
,
// 巡检员列表
inspector
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 工单状态字典
typeOptions
:
[],
pickerOptions
:[],
// 工单类型字典
ordertypeOptions
:
[],
// 设备树选项
deviceOptions
:
[
{
label
:
"设备列表"
,
childList
:
[]
}
],
defaultProps
:
{
children
:
"childList"
,
label
:
"label"
},
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
orderType
:
null
,
orderName
:
null
,
orderStatus
:
null
,
appointInspector
:
null
,
allotTime
:
null
,
actualInspector
:
null
,
actualTime
:
null
,
planName
:
null
,
orderId
:
null
,
startTime
:
null
,
endTime
:
null
,
planStatus
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
activity
:
{},
form
:
{
},
// 表单校验
rules
:
{
},
active
:
0
,
orderId
:
""
,
showAndHide
:
false
// planName: [
// { required: true, message: " 计划名称不能为空", trigger: "blur" }
// ],
// orderName: [
// { required: true, message: "工单名称不能为空", trigger: "blur" }
// ],
// devices: [
// { required: true, message: "请选择巡检设备", trigger: "blur" }
// ],
// startTime: [
// { required: true, message: "请选择开始时间", trigger: "blur" }
// ],
// endTime: [
// { required: true, message: "请选择结束时间", trigger: "blur" }
// ],
// appointInspector: [
// { required: true, message: "请选择巡检人员", trigger: "blur" }
// ],
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
// this.user_id = this.$route.query.id; //详细信息页接收参数
this
.
orderId
=
this
.
$route
.
query
.
order
Id
;
this
.
planId
=
this
.
$route
.
query
.
plan
Id
;
this
.
getList
();
this
.
getDicts
(
"t_order_status"
).
then
(
response
=>
{
this
.
typeOptions
=
response
.
data
;
...
...
@@ -339,12 +217,12 @@ export default {
this
.
getDicts
(
"t_order_type"
).
then
(
response
=>
{
this
.
ordertypeOptions
=
response
.
data
;
});
this
.
get
BasicsInfo
();
this
.
get
InspectionPlan
();
},
mounted
(){
let
gaoMap
=
new
gaodeMap
(
"石家庄"
);
this
.
gaoMap
=
gaoMap
;
this
.
get
BasicsInfo
();
this
.
get
InspectionPlan
();
},
methods
:
{
getInspectorList
(){
...
...
@@ -392,28 +270,28 @@ export default {
/** 查询工单基础信息列表 */
getList
()
{
this
.
loading
=
true
;
list
BasicsInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
basicsInfo
List
=
response
.
rows
;
list
InspectionPlan
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inspectionPlan
List
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
get
BasicsInfo
(){
get
BasicsInfo
(
this
.
order
Id
).
then
(
response
=>
{
get
InspectionPlan
(){
get
InspectionPlan
(
this
.
plan
Id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
active
=
parseInt
(
response
.
data
.
orderStatus
)
+
1
;
if
(
this
.
form
.
deviceInfo
List
.
length
>
0
){
this
.
gaoMap
.
resetMapCenter
([
this
.
form
.
deviceInfoList
[
0
].
longitude
,
this
.
form
.
deviceInfo
List
[
0
].
latitude
]);
if
(
this
.
form
.
inspectionPlan
List
.
length
>
0
){
this
.
gaoMap
.
resetMapCenter
([
this
.
form
.
inspectionPlanList
[
0
].
longitude
,
this
.
form
.
inspectionPlan
List
[
0
].
latitude
]);
}
for
(
var
i
=
0
;
i
<
this
.
form
.
deviceInfo
List
.
length
;
i
++
){
let
obj
=
this
.
form
.
deviceInfo
List
[
i
];
for
(
var
i
=
0
;
i
<
this
.
form
.
inspectionPlan
List
.
length
;
i
++
){
let
obj
=
this
.
form
.
inspectionPlan
List
[
i
];
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
WORKORDER
,
obj
)
}
if
(
this
.
form
.
orderType
==
'1'
)
{
// 获取设备列表树
let
data
=
{
key1
:
this
.
form
.
deviceInfo
List
,
key1
:
this
.
form
.
inspectionPlan
List
,
key2
:
this
.
form
.
pipeList
};
deviceTree
(
data
).
then
(
response
=>
{
...
...
@@ -439,6 +317,7 @@ export default {
// 表单重置
reset
()
{
this
.
form
=
{
planId
:
null
,
orderId
:
null
,
orderType
:
null
,
orderName
:
null
,
...
...
@@ -477,22 +356,26 @@ export default {
/** 归档按钮操作 */
handleFinish
(
res
)
{
// this.reset();
get
BasicsInfo
(
res
).
then
(
response
=>
{
get
InspectionPlan
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息归档"
;
});
},
/** 修改按钮操作 */
handleUpdate
(
res
)
{
// this.reset();
this
.
getInspectorList
();
getBasicsInfo
(
res
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"工单信息修改"
;
});
},
handleUpdate
(
row
)
{
this
.
reset
();
deviceNodeTree
().
then
(
response
=>
{
this
.
options
=
response
.
data
;
});
const
planId
=
row
.
planId
||
this
.
ids
getInspectionPlan
(
planId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
.
devices
=
eval
(
this
.
form
.
deviceIds
);
this
.
open
=
true
;
this
.
title
=
"修改巡检计划"
;
});
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
...
...
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