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
01dad1c5
Unverified
Commit
01dad1c5
authored
Oct 14, 2020
by
lanyulei
Committed by
GitHub
Oct 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #40 from lanyulei/dev
fix: 审批退回无法编辑。
parents
d4c4af3a
82b4e9e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
17 deletions
+37
-17
src/components/VueFormMaking/components/GenerateForm.vue
+11
-5
src/components/VueFormMaking/components/GenerateFormItem.vue
+17
-12
src/views/process/list/handle.vue
+9
-0
No files found.
src/components/VueFormMaking/components/GenerateForm.vue
View file @
01dad1c5
...
...
@@ -66,10 +66,10 @@
width=
"50"
>
<template
slot=
"header"
>
<i
style=
"font-size: 25px; color: #409EFF;cursor:pointer;"
class=
"el-icon-circle-plus"
@
click=
"addCol(item)"
/>
<i
style=
"font-size: 25px; color: #409EFF;cursor:pointer;"
class=
"el-icon-circle-plus"
@
click=
"add
Subform
Col(item)"
/>
</
template
>
<
template
slot-scope=
"scope"
>
<i
style=
"font-size: 25px; color: red"
class=
"el-icon-remove"
@
click=
"delCol(item, scope.$index)"
/>
<i
style=
"font-size: 25px; color: red"
class=
"el-icon-remove"
@
click=
"del
Subform
Col(item, scope.$index)"
/>
</
template
>
</el-table-column>
...
...
@@ -160,17 +160,23 @@ export default {
mounted
()
{
},
methods
:
{
addCol
(
item
)
{
add
Subform
Col
(
item
)
{
var
subformFields
=
{}
for
(
var
c
of
item
.
columns
)
{
for
(
var
l
of
c
.
list
)
{
subformFields
[
l
.
model
]
=
""
if
(
l
.
options
!==
null
&&
l
.
options
!==
undefined
)
{
subformFields
[
l
.
model
]
=
l
.
options
.
defaultValue
!==
undefined
&&
l
.
options
.
defaultValue
!==
null
?
l
.
options
.
defaultValue
:
""
}
else
{
subformFields
[
l
.
model
]
=
""
}
}
}
this
.
models
[
item
.
model
].
push
(
subformFields
)
this
.
models
.
status
=
1
},
delCol
(
item
,
index
)
{
del
Subform
Col
(
item
,
index
)
{
this
.
models
[
item
.
model
].
splice
(
index
,
1
)
this
.
models
.
status
=
-
1
},
generateModle
(
genList
)
{
for
(
let
i
=
0
;
i
<
genList
.
length
;
i
++
)
{
...
...
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
01dad1c5
...
...
@@ -338,29 +338,31 @@ export default {
data
()
{
return
{
widgetLabelWidth
:
''
,
dataModel
:
this
.
subformIndex
===
undefined
?
this
.
models
[
this
.
widget
.
model
]:
this
.
models
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
],
dataModel
:
this
.
subformIndex
===
undefined
?
this
.
models
[
this
.
widget
.
model
]:
this
.
models
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
],
tableData
:
[]
}
},
watch
:
{
dataModel
:
{
deep
:
true
,
handler
(
val
)
{
if
(
val
!==
undefined
)
{
handler
(
newValue
)
{
if
(
newValue
!==
undefined
&&
newValue
!==
null
)
{
if
(
this
.
subformIndex
!==
undefined
)
{
this
.
models
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
]
=
val
this
.
models
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
]
=
newValue
this
.
$emit
(
'update:models'
,
{
...
this
.
models
,
[
this
.
subformModel
]:
this
.
models
[
this
.
subformModel
]
})
this
.
$emit
(
'input-change'
,
val
,
this
.
widget
.
model
,
this
.
subformIndex
)
//
this.$emit('input-change', val, this.widget.model, this.subformIndex)
}
else
{
this
.
models
[
this
.
widget
.
model
]
=
val
this
.
models
[
this
.
widget
.
model
]
=
newValue
this
.
$emit
(
'update:models'
,
{
...
this
.
models
,
[
this
.
widget
.
model
]:
val
[
this
.
widget
.
model
]:
newValue
})
this
.
$emit
(
'input-change'
,
val
,
this
.
widget
.
model
)
//
this.$emit('input-change', val, this.widget.model)
}
}
}
...
...
@@ -368,11 +370,14 @@ export default {
models
:
{
deep
:
true
,
handler
(
val
)
{
if
(
this
.
subformIndex
===
undefined
)
{
this
.
dataModel
=
val
[
this
.
widget
.
model
]
}
else
{
this
.
dataModel
=
val
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
]
if
(
val
.
status
===
undefined
&&
val
.
status
===
null
)
{
if
(
this
.
subformIndex
===
undefined
)
{
this
.
dataModel
=
val
[
this
.
widget
.
model
]
}
else
{
this
.
dataModel
=
val
[
this
.
subformModel
][
this
.
subformIndex
][
this
.
widget
.
model
]
}
}
delete
this
.
models
.
status
}
}
},
...
...
src/views/process/list/handle.vue
View file @
01dad1c5
...
...
@@ -240,11 +240,20 @@ export default {
this
.
nodeStepList
.
push
(
this
.
processStructureValue
.
nodes
[
i
])
}
}
// 如果回退到初始节点则可编辑。
if
(
this
.
activeIndex
===
0
&&
this
.
currentNode
.
clazz
===
'start'
)
{
this
.
currentNode
.
writeTpls
=
[]
for
(
var
tplTmp
of
this
.
processStructureValue
.
tpls
)
{
this
.
currentNode
.
writeTpls
.
push
(
tplTmp
.
form_structure
.
id
)
}
}
this
.
getAlertMessage
()
})
},
submitAction
(
item
)
{
var
promiseList
=
[]
this
.
tpls
=
[]
for
(
var
tpl
of
this
.
processStructureValue
.
tpls
)
{
this
.
tpls
.
push
({
tplDataId
:
tpl
.
id
,
...
...
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