From f9b459a3fefd5fab0ee8e19268adb9d9eadab2a7 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期二, 17 十二月 2024 18:16:58 +0800 Subject: [PATCH] 预测项setting的值修改最大输入长度为1000 --- src/components/SimpleProcessDesignerV2/src/SimpleProcessViewer.vue | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/SimpleProcessViewer.vue b/src/components/SimpleProcessDesignerV2/src/SimpleProcessViewer.vue new file mode 100644 index 0000000..abf73b4 --- /dev/null +++ b/src/components/SimpleProcessDesignerV2/src/SimpleProcessViewer.vue @@ -0,0 +1,48 @@ +<template> + <SimpleProcessModel :flow-node="simpleModel" :readonly="true" /> +</template> + +<script setup lang="ts"> +import { useWatchNode } from './node' +import { SimpleFlowNode } from './consts' + +defineOptions({ + name: 'SimpleProcessViewer' +}) + +const props = defineProps({ + flowNode: { + type: Object as () => SimpleFlowNode, + required: true + }, + // 流程任务 + tasks: { + type: Array, + default: () => [] as any[] + }, + // 流程实例 + processInstance: { + type: Object, + default: () => undefined + } +}) +const approveTasks = ref<any[]>(props.tasks) +const currentProcessInstance = ref(props.processInstance) +const simpleModel = useWatchNode(props) +watch( + () => props.tasks, + (newValue) => { + approveTasks.value = newValue + } +) +watch( + () => props.processInstance, + (newValue) => { + currentProcessInstance.value = newValue + } +) + +provide('tasks', approveTasks) +provide('processInstance', currentProcessInstance) +</script> +p -- Gitblit v1.9.3