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
46e11d6a
Commit
46e11d6a
authored
Aug 25, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检计划列表页面修改
parent
7b9a7512
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+13
-9
No files found.
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
46e11d6a
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<!--
添加或修改巡检计划对话框
-->
<!--
添加或修改巡检计划对话框
-->
<
el
-
dialog
:
title
=
"title1"
:
visible
.
sync
=
"open1"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
dialog
:
title
=
"title1"
:
visible
.
sync
=
"open1"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
form
ref
=
"form1"
:
model
=
"form1"
:
rules
=
"rules"
label
-
width
=
"120px"
>
<
el
-
form
ref
=
"form1"
:
model
=
"form1"
:
rules
=
"rules
1
"
label
-
width
=
"120px"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"planName"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
prop
=
"planName"
>
<
el
-
input
v
-
model
=
"form1.planName"
placeholder
=
"请输入巡检计划名称"
/>
<
el
-
input
v
-
model
=
"form1.planName"
placeholder
=
"请输入巡检计划名称"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
<
/el-date-picker
>
<
/el-date-picker
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"地址"
prop
=
"address"
>
<
el
-
form
-
item
label
=
"地址"
prop
=
"address"
>
<
el
-
input
v
-
model
=
"form1.address"
placeholder
=
"请输入地址"
/>
<
el
-
input
v
-
model
=
"form1.address"
type
=
"textarea"
placeholder
=
"请输入地址"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"计划描述"
prop
=
"remarks"
>
<
el
-
form
-
item
label
=
"计划描述"
prop
=
"remarks"
>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form1.remarks"
placeholder
=
"请输入计划描述"
/>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form1.remarks"
placeholder
=
"请输入计划描述"
/>
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
<
el
-
dialog
:
title
=
"title2"
:
visible
.
sync
=
"open2"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
dialog
:
title
=
"title2"
:
visible
.
sync
=
"open2"
width
=
"800px"
append
-
to
-
body
@
close
=
"cancel"
>
<
el
-
form
ref
=
"form2"
:
model
=
"form2"
:
rules
=
"rules"
label
-
width
=
"120px"
>
<
el
-
form
ref
=
"form2"
:
model
=
"form2"
:
rules
=
"rules
2
"
label
-
width
=
"120px"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
>
<
el
-
form
-
item
label
=
"巡检计划名称"
>
<
font
>
{{
form2
.
planName
}}
<
/font
>
<
font
>
{{
form2
.
planName
}}
<
/font
>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
<
font
>
{{
parseTime
(
form2
.
startTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
至
<
font
>
{{
parseTime
(
form2
.
startTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
至
{{
parseTime
(
form2
.
endTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/font
>
{{
parseTime
(
form2
.
endTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/font
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"地址"
prop
=
"address"
>
<
el
-
form
-
item
label
=
"地址"
>
<
font
>
{{
form2
.
address
}}
<
/font
>
<
font
>
{{
form2
.
address
}}
<
/font
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"工单名称"
prop
=
"orderName"
>
<
el
-
form
-
item
label
=
"工单名称"
prop
=
"orderName"
>
...
@@ -256,17 +256,15 @@
...
@@ -256,17 +256,15 @@
remarks
:
null
remarks
:
null
}
,
}
,
// 巡检计划表单参数
// 巡检计划表单参数
form1
:
{
}
,
form1
:
{
}
,
// 工单表单参数
// 工单表单参数
form2
:
{
}
,
form2
:
{
}
,
// 表单校验
// 表单校验
rules
:
{
rules
1
:
{
planName
:
[
planName
:
[
{
required
:
true
,
message
:
"请输入计划名称"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入计划名称"
,
trigger
:
"blur"
}
],
],
orderName
:
[
{
required
:
true
,
message
:
"请输入工单名称"
,
trigger
:
"blur"
}
],
devices
:
[
devices
:
[
{
required
:
true
,
message
:
"请选择巡检设备"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请选择巡检设备"
,
trigger
:
"blur"
}
],
],
...
@@ -279,6 +277,11 @@
...
@@ -279,6 +277,11 @@
address
:
[
address
:
[
{
required
:
true
,
message
:
"请输入地址"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入地址"
,
trigger
:
"blur"
}
],
],
}
,
rules2
:
{
orderName
:
[
{
required
:
true
,
message
:
"请输入工单名称"
,
trigger
:
"blur"
}
],
appointInspector
:
[
appointInspector
:
[
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请选择巡检人员"
,
trigger
:
"blur"
}
],
],
...
@@ -409,6 +412,7 @@
...
@@ -409,6 +412,7 @@
/** 新增修改巡检计划提交按钮 */
/** 新增修改巡检计划提交按钮 */
submitForm1
()
{
submitForm1
()
{
this
.
$refs
[
"form1"
].
validate
(
valid
=>
{
this
.
$refs
[
"form1"
].
validate
(
valid
=>
{
console
.
log
(
"form1"
,
this
.
$refs
[
"form1"
]);
if
(
valid
)
{
if
(
valid
)
{
// 二维数组转字符串(处理设备级联选项的值)
// 二维数组转字符串(处理设备级联选项的值)
var
arr
=
this
.
form1
.
devices
;
var
arr
=
this
.
form1
.
devices
;
...
...
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