diff --git a/apps/web-antd/src/components/simple-process-design/components/nodes-config/child-process-node-config.vue b/apps/web-antd/src/components/simple-process-design/components/nodes-config/child-process-node-config.vue new file mode 100644 index 000000000..4b48dd3d8 --- /dev/null +++ b/apps/web-antd/src/components/simple-process-design/components/nodes-config/child-process-node-config.vue @@ -0,0 +1,825 @@ + + + + + + + + + {{ nodeName }} + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + {{ field.title }} + + + + + + + + + {{ field.title }} + + + + + + + + + + + + + 添加一行 + + + + + + + + + {{ field.title }} + + + + + + + + + {{ field.title }} + + + + + + + + + + + + + 添加一行 + + + + + + {{ item.label }} + + + + + + + {{ field.title }} + + + + + + + {{ item.label }} + + + + + + 超时设置 + + + + + + + + {{ item.label }} + + + + + + + 当超过 + + + + + + + + + + {{ item.label }} + + + + + 后进入下一节点 + + + + + + + + + + + 后进入下一节点 + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/components/simple-process-design/components/nodes-config/user-task-node-config.vue b/apps/web-antd/src/components/simple-process-design/components/nodes-config/user-task-node-config.vue index 03e2aea7d..66e6ed5ad 100644 --- a/apps/web-antd/src/components/simple-process-design/components/nodes-config/user-task-node-config.vue +++ b/apps/web-antd/src/components/simple-process-design/components/nodes-config/user-task-node-config.vue @@ -601,7 +601,7 @@ onMounted(() => { }); - + +import type { SimpleFlowNode } from '../../consts'; + +import { inject, ref } from 'vue'; + +import { IconifyIcon } from '@vben/icons'; + +import { Input } from 'ant-design-vue'; + +import { BpmNodeTypeEnum } from '#/utils'; + +import { NODE_DEFAULT_TEXT } from '../../consts'; +import { useNodeName2, useTaskStatusClass, useWatchNode } from '../../helpers'; +import ChildProcessNodeConfig from '../nodes-config/child-process-node-config.vue'; +import NodeHandler from './node-handler.vue'; + +defineOptions({ name: 'ChildProcessNode' }); + +const props = defineProps<{ + flowNode: SimpleFlowNode; +}>(); + +/** 定义事件,更新父组件。 */ +const emits = defineEmits<{ + 'update:flowNode': [node: SimpleFlowNode | undefined]; +}>(); + +// 是否只读 +const readonly = inject('readonly'); + +/** 监控节点的变化 */ +const currentNode = useWatchNode(props); + +/** 节点名称编辑 */ +const { showInput, changeNodeName, clickTitle, inputRef } = useNodeName2( + currentNode, + BpmNodeTypeEnum.CHILD_PROCESS_NODE, +); + +// 节点配置 Ref +const nodeConfigRef = ref(); + +/** 打开节点配置 */ +const openNodeConfig = () => { + if (readonly) { + return; + } + nodeConfigRef.value.showChildProcessNodeConfig(currentNode.value); +}; + +/** 删除节点。更新当前节点为孩子节点 */ +const deleteNode = () => { + emits('update:flowNode', currentNode.value.childNode); +}; + + + + + + + + + + + + + + {{ currentNode.name }} + + + + + {{ currentNode.showText }} + + + {{ NODE_DEFAULT_TEXT.get(BpmNodeTypeEnum.CHILD_PROCESS_NODE) }} + + + + + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/components/simple-process-design/components/nodes/user-task-node.vue b/apps/web-antd/src/components/simple-process-design/components/nodes/user-task-node.vue index 9f7ee6bf1..ce841bcc1 100644 --- a/apps/web-antd/src/components/simple-process-design/components/nodes/user-task-node.vue +++ b/apps/web-antd/src/components/simple-process-design/components/nodes/user-task-node.vue @@ -16,25 +16,6 @@ import { NODE_DEFAULT_TEXT } from '../../consts'; import { useNodeName2, useTaskStatusClass, useWatchNode } from '../../helpers'; import UserTaskNodeConfig from '../nodes-config/user-task-node-config.vue'; import TaskListModal from './modules/task-list-modal.vue'; -// // 使用useVbenVxeGrid -// const [Grid, gridApi] = useVbenVxeGrid({ -// gridOptions: { -// columns: columns.value, -// keepSource: true, -// border: true, -// height: 'auto', -// data: selectTasks.value, -// rowConfig: { -// keyField: 'id', -// }, -// pagerConfig: { -// enabled: false, -// }, -// toolbarConfig: { -// enabled: false, -// }, -// } as VxeTableGridOptions, -// }); import NodeHandler from './node-handler.vue'; defineOptions({ name: 'UserTaskNode' }); @@ -155,7 +136,7 @@ function findReturnTaskNodes( - + - + />