yxk-20260421-通用发起流程组件修改

This commit is contained in:
ye1023
2026-04-21 19:20:25 +08:00
parent 55f91ba764
commit 36e90184f0
2 changed files with 0 additions and 21 deletions
@@ -64,7 +64,6 @@
interface ModalPayload {
title?: string;
payload?: Record<string, any>;
initialValues?: Record<string, any>;
}
const emit = defineEmits(['confirm']);
@@ -92,20 +91,6 @@
title.value = data.title || 'Start Process';
contextData.value = data.payload || {};
visible.value = true;
const initialValues = data.initialValues || {};
if (initialValues.triggerType === 1) {
formData.triggerMode = 'recurring';
}
if (initialValues.intervalType !== undefined && initialValues.intervalType !== null && initialValues.intervalType !== '') {
formData.intervalType = initialValues.intervalType;
}
if (initialValues.startCount !== undefined && initialValues.startCount !== null && initialValues.startCount !== '') {
formData.startCount = Number(initialValues.startCount);
}
if (initialValues.intervalStartTime) {
formData.intervalStartTime = initialValues.intervalStartTime;
}
}
function handleCancel() {
@@ -227,12 +227,6 @@
flowScheduleModalRef.value?.open({
title: 'Start Flow',
payload: { record },
initialValues: {
triggerType: record.isNeedInterval, //1立即督办,2重复督办
intervalType: record.intervalType,
startCount: record.startCount,
intervalStartTime: record.intervalStartTime ? dateUtil(record.intervalStartTime).format('YYYY-MM-DD HH:mm:ss') : undefined,
},
});
}