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
7122fa86
Unverified
Commit
7122fa86
authored
Oct 22, 2020
by
lanyulei
Committed by
GitHub
Oct 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44 from lanyulei/dev
Dev
parents
ddf3759c
d6ad63cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
19 deletions
+26
-19
GenerateForm.vue
src/components/VueFormMaking/components/GenerateForm.vue
+18
-16
create.vue
src/views/process/list/create.vue
+3
-1
handle.vue
src/views/process/list/handle.vue
+5
-2
No files found.
src/components/VueFormMaking/components/GenerateForm.vue
View file @
7122fa86
...
...
@@ -197,22 +197,24 @@ export default {
}
}
if
(
this
.
rules
[
genList
[
i
].
model
])
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
this
.
rules
[
genList
[
i
].
model
],
...
genList
[
i
].
rules
.
map
(
item
=>
{
if
(
item
.
pattern
)
{
return
{
...
item
,
pattern
:
eval
(
item
.
pattern
)
}
}
else
{
return
{
...
item
}
}
})]
}
else
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
genList
[
i
].
rules
.
map
(
item
=>
{
if
(
item
.
pattern
)
{
return
{
...
item
,
pattern
:
eval
(
item
.
pattern
)
}
}
else
{
return
{
...
item
}
}
})]
if
(
!
this
.
preview
)
{
if
(
this
.
rules
[
genList
[
i
].
model
])
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
this
.
rules
[
genList
[
i
].
model
],
...
genList
[
i
].
rules
.
map
(
item
=>
{
if
(
item
.
pattern
)
{
return
{
...
item
,
pattern
:
eval
(
item
.
pattern
)
}
}
else
{
return
{
...
item
}
}
})]
}
else
{
this
.
rules
[
genList
[
i
].
model
]
=
[...
genList
[
i
].
rules
.
map
(
item
=>
{
if
(
item
.
pattern
)
{
return
{
...
item
,
pattern
:
eval
(
item
.
pattern
)
}
}
else
{
return
{
...
item
}
}
})]
}
}
}
}
...
...
src/views/process/list/create.vue
View file @
7122fa86
...
...
@@ -32,6 +32,9 @@
currentNode.hideTpls.indexOf(tplItem.id)===-1"
:key=
"tplIndex"
:ref=
"'generateForm-'+tplItem.id"
:preview=
"currentNode.hideTpls===undefined ||
currentNode.hideTpls===null ||
currentNode.hideTpls.indexOf(tplItem.id)===-1?false:true"
:remote=
"remoteFunc"
:data=
"tplItem.form_structure"
:disabled=
"currentNode.readonlyTpls===undefined ||
...
...
@@ -154,7 +157,6 @@ export default {
'form_data'
:
[]
}
// 绑定流程任务
console
.
log
(
this
.
processStructureValue
.
process
)
this
.
ruleForm
.
tasks
=
this
.
processStructureValue
.
process
.
task
===
undefined
?
[]
:
this
.
processStructureValue
.
process
.
task
// 追加节点任务
if
(
this
.
processStructureValue
.
nodes
[
this
.
active
].
task
!==
undefined
&&
this
.
processStructureValue
.
nodes
[
this
.
active
].
task
.
length
>
0
)
{
...
...
src/views/process/list/handle.vue
View file @
7122fa86
...
...
@@ -67,9 +67,12 @@
currentNode.hideTpls.indexOf(tplItem.form_structure.id)===-1"
:key=
"tplIndex"
:ref=
"'generateForm-'+tplItem.id"
:preview=
"currentNode.writeTpls===undefined ||
:preview=
"(currentNode.hideTpls!==undefined &&
currentNode.hideTpls!==null &&
currentNode.hideTpls.indexOf(tplItem.form_structure.id)!==-1) ||
(currentNode.writeTpls===undefined ||
currentNode.writeTpls===null ||
currentNode.writeTpls.indexOf(tplItem.form_structure.id)===-1?true:false"
currentNode.writeTpls.indexOf(tplItem.form_structure.id)===-1
)
?true:false"
:remote=
"remoteFunc"
:value=
"tplItem.form_data"
:data=
"tplItem.form_structure"
...
...
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