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
f6bb8fc8
Commit
f6bb8fc8
authored
Aug 09, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报警信息生成工单和巡检计划生成工单细节调整
parent
c3a6cd4b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+7
-4
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+10
-7
No files found.
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
View file @
f6bb8fc8
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
@
click=
"handleIssue(scope.row)"
@
click=
"handleIssue(scope.row)"
v-hasPermi=
"['workOrder:basicsInfo:add']"
v-hasPermi=
"['workOrder:basicsInfo:add']"
v-if=
"scope.row.orderId == '' || scope.row.orderId == null"
v-if=
"scope.row.orderId == '' || scope.row.orderId == null"
>
下发
工单
</el-button>
>
生成
工单
</el-button>
<el-button
<el-button
size=
"normal"
size=
"normal"
type=
"text"
type=
"text"
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<el-input
v-model=
"form.orderName"
placeholder=
"请输入工单名称"
/>
<el-input
v-model=
"form.orderName"
placeholder=
"请输入工单名称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"指定执行人员"
prop=
"appointInspector"
>
<el-form-item
label=
"指定执行人员"
prop=
"appointInspector"
>
<el-select
v-model=
"form.appointInspector
Name
"
placeholder=
"请选择执行人员"
clearable
size=
"small"
@
change=
"setUserId"
>
<el-select
v-model=
"form.appointInspector"
placeholder=
"请选择执行人员"
clearable
size=
"small"
@
change=
"setUserId"
>
<el-option
<el-option
v-for=
"item in inspector"
v-for=
"item in inspector"
:key=
"item.userId"
:key=
"item.userId"
...
@@ -194,6 +194,9 @@ export default {
...
@@ -194,6 +194,9 @@ export default {
orderName
:
[
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
],
],
appointInspector
:
[
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
],
}
}
};
};
},
},
...
@@ -268,7 +271,7 @@ export default {
...
@@ -268,7 +271,7 @@ export default {
getDeviceAlarm
(
alarmId
).
then
(
response
=>
{
getDeviceAlarm
(
alarmId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
下发工单
"
;
this
.
title
=
"
填写工单信息
"
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -278,7 +281,7 @@ export default {
...
@@ -278,7 +281,7 @@ export default {
this
.
form
.
resourceId
=
this
.
form
.
alarmId
;
this
.
form
.
resourceId
=
this
.
form
.
alarmId
;
this
.
form
.
orderType
=
"3"
;
this
.
form
.
orderType
=
"3"
;
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"
下发
工单成功"
);
this
.
msgSuccess
(
"
生成
工单成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
...
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
f6bb8fc8
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
@
click
=
"handleIssue(scope.row)"
@
click
=
"handleIssue(scope.row)"
v
-
hasPermi
=
"['workOrder:basicsInfo:add']"
v
-
hasPermi
=
"['workOrder:basicsInfo:add']"
v
-
if
=
"scope.row.planStatus == 0"
v
-
if
=
"scope.row.planStatus == 0"
>
下发
工单
>
生成
工单
<
/el-button
>
<
/el-button
>
<
el
-
button
<
el
-
button
size
=
"normal"
size
=
"normal"
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<!--
添加或修改巡检计划对话框
-->
<!--
添加或修改巡检计划对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"120px"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"120px"
>
<
div
v
-
if
=
"this.title != '
下发工单
'"
>
<
div
v
-
if
=
"this.title != '
填写工单信息
'"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"planName"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"planName"
>
<
el
-
input
v
-
model
=
"form.planName"
placeholder
=
"请输入巡检计划名称"
/>
<
el
-
input
v
-
model
=
"form.planName"
placeholder
=
"请输入巡检计划名称"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.remarks"
placeholder
=
"请输入计划描述"
/>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.remarks"
placeholder
=
"请输入计划描述"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/div
>
<
/div
>
<
div
v
-
if
=
"this.title == '
下发工单
'"
>
<
div
v
-
if
=
"this.title == '
填写工单信息
'"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"plansName"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"plansName"
>
<
font
>
{{
plansName
}}
<
/font
>
<
font
>
{{
plansName
}}
<
/font
>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -297,6 +297,9 @@
...
@@ -297,6 +297,9 @@
endTime
:
[
endTime
:
[
{
required
:
true
,
message
:
"请选择结束时间"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请选择结束时间"
,
trigger
:
"blur"
}
],
],
appointInspector
:
[
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
],
}
}
}
;
}
;
}
,
}
,
...
@@ -395,7 +398,7 @@
...
@@ -395,7 +398,7 @@
this
.
plansName
=
this
.
form
.
planName
;
this
.
plansName
=
this
.
form
.
planName
;
this
.
form
.
remarks
=
""
;
this
.
form
.
remarks
=
""
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
下发工单
"
;
this
.
title
=
"
填写工单信息
"
;
}
);
}
);
}
,
}
,
/** 修改按钮操作 */
/** 修改按钮操作 */
...
@@ -416,7 +419,7 @@
...
@@ -416,7 +419,7 @@
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
title
!=
"
下发工单
"
)
{
if
(
this
.
title
!=
"
填写工单信息
"
)
{
// 二维数组转字符串(处理设备级联选项的值)
// 二维数组转字符串(处理设备级联选项的值)
var
arr
=
this
.
form
.
devices
;
var
arr
=
this
.
form
.
devices
;
var
arrLen
=
arr
.
length
;
var
arrLen
=
arr
.
length
;
...
@@ -450,11 +453,11 @@
...
@@ -450,11 +453,11 @@
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
);
}
);
}
else
if
(
this
.
title
==
"
下发工单
"
)
{
}
else
if
(
this
.
title
==
"
填写工单信息
"
)
{
this
.
form
.
resourceId
=
this
.
form
.
planId
;
this
.
form
.
resourceId
=
this
.
form
.
planId
;
this
.
form
.
orderType
=
"1"
;
this
.
form
.
orderType
=
"1"
;
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
addBasicsInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"
下发
工单成功"
);
this
.
msgSuccess
(
"
生成
工单成功"
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
}
);
}
);
...
...
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