Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ferry_web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
ferry_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 deletions
+16
-1
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