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
a3d0687b
Commit
a3d0687b
authored
Aug 05, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检设备非空校验问题
parent
c0ee0f4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+9
-9
No files found.
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
View file @
a3d0687b
...
...
@@ -151,7 +151,7 @@
<
/el-form-item
>
<
el
-
form
-
item
label
=
"巡检设备"
prop
=
"devices"
>
<
el
-
cascader
v
-
model
=
"devices"
v
-
model
=
"
form.
devices"
:
options
=
"options"
:
props
=
"props"
:
show
-
all
-
levels
=
"false"
...
...
@@ -287,14 +287,14 @@
orderName
:
[
{
required
:
true
,
message
:
"工单名称不能为空"
,
trigger
:
"blur"
}
],
//
devices: [
//
{
required
:
true
,
message
:
'请选择巡检设备'
,
trigger
:
'change'
,
type
:
'array'
}
//
],
devices
:
[
{
required
:
true
,
message
:
"请选择巡检设备"
,
trigger
:
"blur"
}
],
startTime
:
[
{
required
:
true
,
message
:
'请选择开始时间'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
"请选择开始时间"
,
trigger
:
"blur"
}
],
endTime
:
[
{
required
:
true
,
message
:
'请选择结束事件'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
"请选择结束事件"
,
trigger
:
"blur"
}
],
}
}
;
...
...
@@ -308,7 +308,7 @@
methods
:
{
handleChange
(
value
)
{
// this.devices = value;
console
.
log
(
this
.
devices
);
console
.
log
(
this
.
form
.
devices
);
}
,
/** 查询巡检计划列表 */
getList
()
{
...
...
@@ -405,7 +405,7 @@
const
planId
=
row
.
planId
||
this
.
ids
getInspectionPlan
(
planId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
devices
=
eval
(
this
.
form
.
deviceIds
);
this
.
form
.
devices
=
eval
(
this
.
form
.
deviceIds
);
this
.
open
=
true
;
this
.
title
=
"修改巡检计划"
;
}
);
...
...
@@ -416,7 +416,7 @@
if
(
valid
)
{
if
(
this
.
title
!=
"下发工单"
)
{
// 二维数组转字符串(处理设备级联选项的值)
var
arr
=
this
.
devices
;
var
arr
=
this
.
form
.
devices
;
var
arrLen
=
arr
.
length
;
var
str
=
"["
;
for
(
var
i
=
0
;
i
<
arrLen
;
i
++
)
{
...
...
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