yxk-20260421-通用发起流程组件修改
This commit is contained in:
@@ -64,7 +64,6 @@
|
|||||||
interface ModalPayload {
|
interface ModalPayload {
|
||||||
title?: string;
|
title?: string;
|
||||||
payload?: Record<string, any>;
|
payload?: Record<string, any>;
|
||||||
initialValues?: Record<string, any>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const emit = defineEmits(['confirm']);
|
const emit = defineEmits(['confirm']);
|
||||||
@@ -92,20 +91,6 @@
|
|||||||
title.value = data.title || 'Start Process';
|
title.value = data.title || 'Start Process';
|
||||||
contextData.value = data.payload || {};
|
contextData.value = data.payload || {};
|
||||||
visible.value = true;
|
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() {
|
function handleCancel() {
|
||||||
|
|||||||
@@ -227,12 +227,6 @@
|
|||||||
flowScheduleModalRef.value?.open({
|
flowScheduleModalRef.value?.open({
|
||||||
title: 'Start Flow',
|
title: 'Start Flow',
|
||||||
payload: { record },
|
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,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user