Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b03711e0
authored
Feb 18, 2025
by
lizhixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:移除创建流程接口参数nodeIds
parent
b3326db7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
+14
-2
No files found.
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
View file @
b03711e0
...
@@ -155,6 +155,19 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
...
@@ -155,6 +155,19 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
}
}
}
}
// 监听 formVariables 的变化
watch
(
detailForm
.
value
,
(
newValue
,
oldValue
)
=>
{
console
.
log
(
'formVariables 发生了变化'
)
console
.
log
(
'新值:'
,
newValue
)
console
.
log
(
'旧值:'
,
oldValue
)
},
{
deep
:
true
// 深度监听,当对象内部属性变化时也会触发回调
}
)
/** 获取审批详情 */
/** 获取审批详情 */
const
getApprovalDetail
=
async
(
row
:
any
)
=>
{
const
getApprovalDetail
=
async
(
row
:
any
)
=>
{
try
{
try
{
...
@@ -249,8 +262,7 @@ const submitForm = async () => {
...
@@ -249,8 +262,7 @@ const submitForm = async () => {
await
ProcessInstanceApi
.
createProcessInstance
({
await
ProcessInstanceApi
.
createProcessInstance
({
processDefinitionId
:
props
.
selectProcessDefinition
.
id
,
processDefinitionId
:
props
.
selectProcessDefinition
.
id
,
variables
:
detailForm
.
value
.
value
,
variables
:
detailForm
.
value
.
value
,
startUserSelectAssignees
:
startUserSelectAssignees
.
value
,
startUserSelectAssignees
:
startUserSelectAssignees
.
value
nodeIds
:
activityNodes
.
value
?.
map
((
item
:
any
)
=>
item
.
id
)
})
})
// 提示
// 提示
message
.
success
(
'发起流程成功'
)
message
.
success
(
'发起流程成功'
)
...
...
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