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
bca04d1a
Commit
bca04d1a
authored
Aug 20, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警信息、设备巡检工单编号跳转
parent
9ed181ec
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
11 deletions
+36
-11
index.vue
gassafety-web/src/views/dataMonitoring/alarmdetail/index.vue
+14
-1
index.vue
...web/src/views/deviceInspection/inspectiondetail/index.vue
+13
-2
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+7
-7
index.vue
gassafety-web/src/views/workOrder/detail/index.vue
+2
-1
No files found.
gassafety-web/src/views/dataMonitoring/alarmdetail/index.vue
View file @
bca04d1a
...
@@ -46,7 +46,10 @@
...
@@ -46,7 +46,10 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
style=
"width: 100%;"
>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
style=
"width: 100%;"
>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<font>
{{
form
.
orderId
}}
</font>
<!--
<font>
{{
form
.
orderId
}}
</font>
-->
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"showDetail(form.orderId)"
>
{{
form
.
orderId
}}
</el-button>
</
template
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"处理状态:"
prop=
"dealStatus"
>
<el-form-item
label=
"处理状态:"
prop=
"dealStatus"
>
<font
v-if=
"form.orderId == null || form.orderId == ''"
>
未生成工单
</font>
<font
v-if=
"form.orderId == null || form.orderId == ''"
>
未生成工单
</font>
...
@@ -518,6 +521,16 @@ export default {
...
@@ -518,6 +521,16 @@ export default {
]
]
});
});
},
},
/** 详细信息跳转 */
showDetail
(
orderId
)
{
this
.
$router
.
push
({
path
:
'/workOrder/detail'
,
query
:{
orderId
:
orderId
}
})
//带参跳转
},
getDetail
(){
getDetail
(){
getDeviceAlarm
(
this
.
alarmId
).
then
(
response
=>
{
getDeviceAlarm
(
this
.
alarmId
).
then
(
response
=>
{
const
{
deviceName
,
deviceCode
,
alarmType
,
alarmValue
,
startTime
,
endTime
,
deviceStatus
}
=
response
.
data
;
const
{
deviceName
,
deviceCode
,
alarmType
,
alarmValue
,
startTime
,
endTime
,
deviceStatus
}
=
response
.
data
;
...
...
gassafety-web/src/views/deviceInspection/inspectiondetail/index.vue
View file @
bca04d1a
...
@@ -104,7 +104,10 @@
...
@@ -104,7 +104,10 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"height: 30px;width: 100%;"
>
<el-form
ref=
"form"
v-model=
"form"
:rules=
"rules"
label-width=
"100px"
style=
"height: 30px;width: 100%;"
>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<el-form-item
label=
"工单编号:"
prop=
"orderId"
>
<font>
{{form.orderId}}
</font>
<!-- <font>{{form.orderId}}</font> -->
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"showDetail(form.orderId)"
>
{{
form
.
orderId
}}
</el-button>
</
template
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-col>
</el-col>
...
@@ -253,7 +256,15 @@ export default {
...
@@ -253,7 +256,15 @@ export default {
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
/** 详细信息跳转 */
showDetail
(
orderId
)
{
this
.
$router
.
push
({
path
:
'/workOrder/detail'
,
query
:{
orderId
:
orderId
}
})
//带参跳转
},
/** 归档按钮操作 */
/** 归档按钮操作 */
handleFinish
(
res
)
{
handleFinish
(
res
)
{
// this.reset();
// this.reset();
...
...
gassafety-web/src/views/workOrder/basicsInfo/index.vue
View file @
bca04d1a
...
@@ -61,9 +61,9 @@
...
@@ -61,9 +61,9 @@
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单编号"
align=
"center"
prop=
"orderId"
/>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"orderType"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<
span
type=
"primary"
v-if=
"scope.row.orderType == 1"
>
巡检信息
</spa
n>
<
el-button
type=
"primary"
v-if=
"scope.row.orderType == 1"
>
巡检信息
</el-butto
n>
<
span
type=
"primary"
v-if=
"scope.row.orderType == 2"
>
隐患信息
</spa
n>
<
el-button
type=
"warning"
v-if=
"scope.row.orderType == 2"
>
隐患信息
</el-butto
n>
<
span
type=
"primary"
v-if=
"scope.row.orderType == 3"
>
报警信息
</spa
n>
<
el-button
type=
"danger"
v-if=
"scope.row.orderType == 3"
>
报警信息
</el-butto
n>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"指定执行人员"
align=
"center"
prop=
"appointInspectorName"
>
<el-table-column
label=
"指定执行人员"
align=
"center"
prop=
"appointInspectorName"
>
...
@@ -71,10 +71,10 @@
...
@@ -71,10 +71,10 @@
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
/>
<el-table-column
label=
"工单名称"
align=
"center"
prop=
"orderName"
/>
<el-table-column
label=
"工单状态"
align=
"center"
prop=
"orderStatus"
>
<el-table-column
label=
"工单状态"
align=
"center"
prop=
"orderStatus"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
el-button
type=
"info"
v-if=
"scope.row.orderStatus == 0"
>
未接收
</el-butto
n>
<
span
type=
"info"
v-if=
"scope.row.orderStatus == 0"
>
未接收
</spa
n>
<
el-button
type=
"warning"
v-if=
"scope.row.orderStatus == 1"
>
已接收
</el-butto
n>
<
span
type=
"warning"
v-if=
"scope.row.orderStatus == 1"
>
已接收
</spa
n>
<
el-button
type=
"primary"
v-if=
"scope.row.orderStatus == 2"
>
已反馈
</el-butto
n>
<
span
type=
"primary"
v-if=
"scope.row.orderStatus == 2"
>
已反馈
</spa
n>
<
el-button
type=
"success"
v-if=
"scope.row.orderStatus == 3"
>
已归档
</el-butto
n>
<
span
type=
"success"
v-if=
"scope.row.orderStatus == 3"
>
已归档
</spa
n>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"allotTime"
width=
"180"
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"allotTime"
width=
"180"
>
...
...
gassafety-web/src/views/workOrder/detail/index.vue
View file @
bca04d1a
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<font
v-if=
"form.deviceType == 4"
>
压力表
</font>
<font
v-if=
"form.deviceType == 4"
>
压力表
</font>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备名称:"
prop=
"deviceName"
style=
"margin-bottom: 0px;"
>
<el-form-item
label=
"设备名称:"
prop=
"deviceName"
style=
"margin-bottom: 0px;"
>
<
font
v-if=
"form.orderType != 1"
>
{{
form
.
deviceName
}}
</font
>
<
!--
<font
v-if=
"form.orderType != 1"
>
{{
form
.
deviceName
}}
</font>
--
>
<el-tree
<el-tree
:data=
"deviceOptions"
:data=
"deviceOptions"
:props=
"defaultProps"
:props=
"defaultProps"
...
@@ -597,6 +597,7 @@ export default {
...
@@ -597,6 +597,7 @@ export default {
}
}
.el-tree
{
.el-tree
{
margin-top
:
5px
;
margin-top
:
5px
;
margin-left
:
70px
;
}
}
.avatar-uploader
{
.avatar-uploader
{
width
:
25%
;
width
:
25%
;
...
...
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