fix(projects): 修复抽屉问题

This commit is contained in:
AN
2025-07-23 14:20:46 +08:00
parent d562f8c155
commit a9c58b2590

View File

@ -212,27 +212,25 @@ const modules = import.meta.glob('@/components/workflow/**/*.vue');
const businessId = ref<CommonType.IdType>();
async function handleView(row: Api.Workflow.TaskOrHisTask) {
dynamicComponent.value = null;
viewVisible.value = false;
businessId.value = row.businessId;
const formPath = row.formPath;
if (!formPath) {
return;
}
if (!formPath) return;
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
setTimeout(() => {
showViewDrawer();
}, 300);
}
const taskId = ref<CommonType.IdType>('');
const assigneeIds = ref<CommonType.IdType[]>([]);
const assigneeNames = ref<string[]>([]);
function handleIntervene(row: Api.Workflow.Task) {
dynamicComponent.value = null;
interveneVisible.value = false;
taskId.value = row.id;
assigneeIds.value = row.assigneeIds?.split(',') || [];
assigneeNames.value = row.assigneeNames?.split(',') || [];
setTimeout(() => {
showInterveneDrawer();
}, 300);
showInterveneDrawer();
}
</script>