初始版本提交
This commit is contained in:
37
src/views/workflow/task/components/flow/LookTask.vue
Normal file
37
src/views/workflow/task/components/flow/LookTask.vue
Normal file
@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<FlowPanel
|
||||
v-if="visible"
|
||||
:tab-position="position ? position : 'top'"
|
||||
:xml="data.xml"
|
||||
:taskRecords="data.taskRecords"
|
||||
:predecessorTasks="[]"
|
||||
:processId="props.processId"
|
||||
position="top"
|
||||
>
|
||||
<FormInformation
|
||||
:opinionsComponents="data.opinionsComponents"
|
||||
:opinions="data.opinions"
|
||||
:formInfos="data.formInfos"
|
||||
:disabled="true"
|
||||
/>
|
||||
</FlowPanel>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import FormInformation from './FormInformation.vue';
|
||||
import FlowPanel from './FlowPanel.vue';
|
||||
import { getApprovalProcess } from '/@/api/workflow/task';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import userTaskItem from './../../hooks/userTaskItem';
|
||||
let props = defineProps(['position', 'processId', 'taskId']);
|
||||
let visible = ref(false);
|
||||
const { data, initProcessData } = userTaskItem();
|
||||
onMounted(async () => {
|
||||
try {
|
||||
let res = await getApprovalProcess(props.taskId, props.processId);
|
||||
initProcessData(res);
|
||||
visible.value = true;
|
||||
} catch (error) {}
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped></style>
|
||||
Reference in New Issue
Block a user