review:【antd/ele】【bpm】流程模型的迁移

This commit is contained in:
YunaiV
2025-12-21 22:41:03 +08:00
parent bc654c9d45
commit 835da00f2c
39 changed files with 85 additions and 62 deletions

View File

@@ -32,7 +32,7 @@ const [Modal, modalApi] = useVbenModal({
try {
await formRef.value?.validate();
emit('confirm', { ...form.value });
modalApi.close();
await modalApi.close();
} catch {
// validate failed
}

View File

@@ -193,7 +193,6 @@ const childFormFieldOptions = ref<any[]>([]);
const saveConfig = async () => {
activeTabName.value = 'child';
if (!formRef.value) return false;
const valid = await formRef.value.validate().catch(() => false);
if (!valid) return false;

View File

@@ -137,7 +137,7 @@ const {
} = useNodeForm(BpmNodeTypeEnum.COPY_TASK_NODE);
const configForm = tempConfigForm as Ref<CopyTaskFormType>;
// 抄送人策略, 去掉发起人自选 和 发起人自己
// 抄送人策略,去掉发起人自选 和 发起人自己
const copyUserStrategies = computed(() => {
return CANDIDATE_STRATEGY.filter(
(item) => item.value !== CandidateStrategy.START_USER,

View File

@@ -348,7 +348,7 @@ function getShowText(): string {
return showText;
}
/** 显示触发器节点配置, 由父组件传过来 */
/** 显示触发器节点配置,由父组件传过来 */
function showTriggerNodeConfig(node: SimpleFlowNode) {
nodeName.value = node.name;
originalSetting = node.triggerSetting

View File

@@ -532,7 +532,7 @@ function useTimeoutHandler() {
if (timeUnit.value === TimeUnitType.HOUR) {
configForm.value.timeDuration = 6;
}
// 天, 默认 1天
// 天, 默认 1
if (timeUnit.value === TimeUnitType.DAY) {
configForm.value.timeDuration = 1;
}

View File

@@ -19,7 +19,7 @@ const props = defineProps<{
flowNode: SimpleFlowNode;
}>();
/** 定义事件,更新父组件 */
/** 定义事件,更新父组件 */
const emits = defineEmits<{
'update:flowNode': [node: SimpleFlowNode | undefined];
}>();

View File

@@ -22,7 +22,7 @@ const props = defineProps({
required: true,
},
});
// 定义事件,更新父组件
// 定义事件,更新父组件
const emits = defineEmits<{
'update:flowNode': [node: SimpleFlowNode | undefined];
}>();

View File

@@ -20,7 +20,7 @@ const props = defineProps({
required: true,
},
});
// 定义事件,更新父组件
// 定义事件,更新父组件
const emits = defineEmits<{
'update:flowNode': [node: SimpleFlowNode | undefined];
}>();

View File

@@ -289,7 +289,7 @@ function recursiveFindParentNode(
:condition-node="item"
:ref="item.id"
/>
<!-- 递归显示子节点 -->
<!-- 递归显示子节点 -->
<ProcessNodeTree
v-if="item && item.childNode"
:parent-node="item"

View File

@@ -291,7 +291,7 @@ function recursiveFindParentNode(
:condition-node="item"
:ref="item.id"
/>
<!-- 递归显示子节点 -->
<!-- 递归显示子节点 -->
<ProcessNodeTree
v-if="item && item.childNode"
:parent-node="item"

View File

@@ -53,10 +53,10 @@ const showInputs = ref<boolean[]>([]);
watch(
showInputs,
(newValues) => {
// 当输入框显示时, 自动聚焦
// 当输入框显示时 自动聚焦
newValues.forEach((value, index) => {
if (value) {
// 当显示状态从 false 变为 true 时, 自动聚焦
// 当显示状态从 false 变为 true 时 自动聚焦
nextTick(() => {
inputRefs.value[index]?.focus();
});
@@ -212,7 +212,7 @@ function recursiveFindParentNode(
/>
</div>
</div>
<!-- 递归显示子节点 -->
<!-- 递归显示子节点 -->
<ProcessNodeTree
v-if="item && item.childNode"
:parent-node="item"

View File

@@ -27,7 +27,7 @@ const props = defineProps({
},
});
// 定义事件,更新父组件
// 定义事件,更新父组件
defineEmits<{
'update:modelValue': [node: SimpleFlowNode | undefined];
}>();

View File

@@ -17,6 +17,7 @@ import { router } from '#/router';
import { useGridColumns, useGridFormSchema } from './data';
// TODO @jason这里是不是要迁移下
/** 刷新表格 */
function handleRefresh() {
gridApi.query();

View File

@@ -16,6 +16,7 @@ const emit = defineEmits<{
select: [expression: BpmProcessExpressionApi.ProcessExpression];
}>();
// TODO @jason这里是不是要迁移下
// 查询参数
const queryParams = ref({
status: CommonStatusEnum.ENABLE,

View File

@@ -18,6 +18,7 @@ const emit = defineEmits<{
select: [listener: BpmProcessListenerApi.ProcessListener];
}>();
// TODO @jason这里是不是要迁移下
// 查询参数
const queryParams = ref({
type: '',