Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
6d6cefc7
Commit
6d6cefc7
authored
Jun 03, 2021
by
lanyulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复子表单无法校验的bug.
parent
de36047c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
GenerateForm.vue
src/components/VueFormMaking/components/GenerateForm.vue
+16
-1
No files found.
src/components/VueFormMaking/components/GenerateForm.vue
View file @
6d6cefc7
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<el-table-column
<el-table-column
v-for=
"v in c.list"
v-for=
"v in c.list"
:key=
"v.key"
:key=
"v.key"
:prop=
"v.mod
a
l"
:prop=
"v.mod
e
l"
:label=
"v.name"
:label=
"v.name"
min-width=
"250"
min-width=
"250"
>
>
...
@@ -206,6 +206,19 @@ export default {
...
@@ -206,6 +206,19 @@ export default {
return
{
...
item
}
return
{
...
item
}
}
}
})]
})]
}
else
if
(
genList
[
i
].
type
===
'subform'
)
{
console
.
log
(
genList
[
i
].
columns
)
for
(
var
c
of
genList
[
i
].
columns
)
{
// for (var l of c.list) {
// this.rules[l.model] = [...l.rules.map(item => {
// if (item.pattern) {
// return { ...item, pattern: eval(item.pattern) }
// } else {
// return { ...item }
// }
// })]
// }
}
}
else
{
}
else
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
genList
[
i
].
rules
.
map
(
item
=>
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
genList
[
i
].
rules
.
map
(
item
=>
{
if
(
item
.
pattern
)
{
if
(
item
.
pattern
)
{
...
@@ -215,6 +228,8 @@ export default {
...
@@ -215,6 +228,8 @@ export default {
}
}
})]
})]
}
}
// console.log(this.models)
}
}
}
}
}
}
...
...
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