diff --git a/io.sc.platform.core.frontend/src/platform/views/home/DoneTask.vue b/io.sc.platform.core.frontend/src/platform/views/home/DoneTask.vue index 2546b840..415d4142 100644 --- a/io.sc.platform.core.frontend/src/platform/views/home/DoneTask.vue +++ b/io.sc.platform.core.frontend/src/platform/views/home/DoneTask.vue @@ -51,7 +51,10 @@ const handleTask = async (item: any) => { //重新加载组件 nextTick(() => { const component = defineAsyncComponent(ComponentManager.getRemoteComponent(item.taskHandFrontendModelName, item.taskHandFrontendComponentName)); - const properties = Tools.mergeObject({ taskId: item.id }, Tools.json2Object(item.taskHandFrontendComponentProperties)); + const properties = Tools.mergeObject( + { taskId: item.id, businessKey: item.businessKey, action: 'view' }, + Tools.json2Object(item.taskHandFrontendComponentProperties), + ); componentRef.value = h(component, properties); }); }; diff --git a/io.sc.platform.core.frontend/src/platform/views/home/FinishedTask.vue b/io.sc.platform.core.frontend/src/platform/views/home/FinishedTask.vue index b0faaf2c..ca079ede 100644 --- a/io.sc.platform.core.frontend/src/platform/views/home/FinishedTask.vue +++ b/io.sc.platform.core.frontend/src/platform/views/home/FinishedTask.vue @@ -51,7 +51,10 @@ const handleTask = async (item: any) => { //重新加载组件 nextTick(() => { const component = defineAsyncComponent(ComponentManager.getRemoteComponent(item.taskHandFrontendModelName, item.taskHandFrontendComponentName)); - const properties = Tools.mergeObject({ taskId: item.id }, Tools.json2Object(item.taskHandFrontendComponentProperties)); + const properties = Tools.mergeObject( + { taskId: item.id, businessKey: item.businessKey, action: 'view' }, + Tools.json2Object(item.taskHandFrontendComponentProperties), + ); componentRef.value = h(component, properties); }); }; diff --git a/io.sc.platform.core.frontend/src/platform/views/home/Task.vue b/io.sc.platform.core.frontend/src/platform/views/home/Task.vue index 40a93004..6c266a02 100644 --- a/io.sc.platform.core.frontend/src/platform/views/home/Task.vue +++ b/io.sc.platform.core.frontend/src/platform/views/home/Task.vue @@ -52,7 +52,10 @@ const handleTask = async (item: any) => { //重新加载组件 nextTick(() => { const component = defineAsyncComponent(ComponentManager.getRemoteComponent(item.taskHandFrontendModelName, item.taskHandFrontendComponentName)); - const properties = Tools.mergeObject({ taskId: item.id }, Tools.json2Object(item.taskHandFrontendComponentProperties)); + const properties = Tools.mergeObject( + { taskId: item.id, businessKey: item.businessKey, action: 'process' }, + Tools.json2Object(item.taskHandFrontendComponentProperties), + ); componentRef.value = h(component, properties); }); };