Skip to content

Commit b03711e

Browse files
committed
fix:移除创建流程接口参数nodeIds
1 parent b3326db commit b03711e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
155155
}
156156
}
157157
158+
// 监听 formVariables 的变化
159+
watch(
160+
detailForm.value,
161+
(newValue, oldValue) => {
162+
console.log('formVariables 发生了变化')
163+
console.log('新值:', newValue)
164+
console.log('旧值:', oldValue)
165+
},
166+
{
167+
deep: true // 深度监听,当对象内部属性变化时也会触发回调
168+
}
169+
)
170+
158171
/** 获取审批详情 */
159172
const getApprovalDetail = async (row: any) => {
160173
try {
@@ -249,8 +262,7 @@ const submitForm = async () => {
249262
await ProcessInstanceApi.createProcessInstance({
250263
processDefinitionId: props.selectProcessDefinition.id,
251264
variables: detailForm.value.value,
252-
startUserSelectAssignees: startUserSelectAssignees.value,
253-
nodeIds: activityNodes.value?.map((item: any) => item.id)
265+
startUserSelectAssignees: startUserSelectAssignees.value
254266
})
255267
// 提示
256268
message.success('发起流程成功')

0 commit comments

Comments
 (0)