feat:框架代码 关于流程信息变更的代码更新

This commit is contained in:
lvjunzhao
2025-04-16 15:22:44 +08:00
parent f55450cc99
commit f3a6f35e40
11 changed files with 102 additions and 67 deletions

View File

@ -1,5 +1,5 @@
<template>
<FlowPanel
<FlowPanel
v-if="visible"
:tab-position="position ? position : 'top'"
:xml="data.xml"
@ -7,7 +7,12 @@
:predecessorTasks="[]"
:processId="props.processId"
position="top"
>
:currentTaskInfo="data.currentTaskInfo"
:currentTaskAssigneeNames="data.currentTaskAssigneeNames"
:currentTaskAssignees="data.currentTaskAssignees"
:schemaId="props.schemaId"
:formDataId="data.formInfos[0].formData.id"
:formInfos="data.formInfos">
<FormInformation
:opinionsComponents="data.opinionsComponents"
:opinions="data.opinions"
@ -24,7 +29,7 @@
import { getApprovalProcess } from '/@/api/workflow/task';
import { onMounted, ref } from 'vue';
import userTaskItem from './../../hooks/userTaskItem';
let props = defineProps(['position', 'processId', 'taskId']);
let props = defineProps(['position', 'processId', 'taskId', 'schemaId']);
let visible = ref(false);
const { data, initProcessData } = userTaskItem();
onMounted(async () => {
@ -32,6 +37,7 @@
let res = await getApprovalProcess(props.taskId, props.processId);
initProcessData(res);
visible.value = true;
console.error('555555', data)
} catch (error) {}
});
</script>