mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复动态组件弹窗动画问题
This commit is contained in:
@ -321,11 +321,15 @@ const businessId = ref<CommonType.IdType>();
|
|||||||
|
|
||||||
/** 流程预览,动态加载组件 */
|
/** 流程预览,动态加载组件 */
|
||||||
async function handlePreview(row: Api.Workflow.Instance) {
|
async function handlePreview(row: Api.Workflow.Instance) {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
previewVisible.value = false;
|
||||||
businessId.value = row.businessId;
|
businessId.value = row.businessId;
|
||||||
const formPath = row.formPath;
|
const formPath = row.formPath;
|
||||||
if (!formPath) return;
|
if (!formPath) return;
|
||||||
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
||||||
|
setTimeout(() => {
|
||||||
showPreviewDrawer();
|
showPreviewDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -225,10 +225,14 @@ const taskId = ref<CommonType.IdType>('');
|
|||||||
const assigneeIds = ref<CommonType.IdType[]>([]);
|
const assigneeIds = ref<CommonType.IdType[]>([]);
|
||||||
const assigneeNames = ref<string[]>([]);
|
const assigneeNames = ref<string[]>([]);
|
||||||
function handleIntervene(row: Api.Workflow.Task) {
|
function handleIntervene(row: Api.Workflow.Task) {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
interveneVisible.value = false;
|
||||||
taskId.value = row.id;
|
taskId.value = row.id;
|
||||||
assigneeIds.value = row.assigneeIds?.split(',') || [];
|
assigneeIds.value = row.assigneeIds?.split(',') || [];
|
||||||
assigneeNames.value = row.assigneeNames?.split(',') || [];
|
assigneeNames.value = row.assigneeNames?.split(',') || [];
|
||||||
|
setTimeout(() => {
|
||||||
showInterveneDrawer();
|
showInterveneDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -219,12 +219,16 @@ const businessId = ref<CommonType.IdType>();
|
|||||||
const operateType = ref<CommonType.WorkflowTableOperateType>();
|
const operateType = ref<CommonType.WorkflowTableOperateType>();
|
||||||
|
|
||||||
async function handleOpen(row: Api.Workflow.Instance, type: 'edit' | 'detail') {
|
async function handleOpen(row: Api.Workflow.Instance, type: 'edit' | 'detail') {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
viewVisible.value = false;
|
||||||
operateType.value = type;
|
operateType.value = type;
|
||||||
businessId.value = row.businessId;
|
businessId.value = row.businessId;
|
||||||
const formPath = row.formPath;
|
const formPath = row.formPath;
|
||||||
if (!formPath) return;
|
if (!formPath) return;
|
||||||
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
||||||
|
setTimeout(() => {
|
||||||
showViewDrawer();
|
showViewDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleDelete(row: Api.Workflow.Instance) {
|
async function handleDelete(row: Api.Workflow.Instance) {
|
||||||
|
@ -168,12 +168,16 @@ const businessId = ref<CommonType.IdType>();
|
|||||||
const taskId = ref<CommonType.IdType>();
|
const taskId = ref<CommonType.IdType>();
|
||||||
|
|
||||||
async function handleView(row: Api.Workflow.Task) {
|
async function handleView(row: Api.Workflow.Task) {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
viewVisible.value = false;
|
||||||
businessId.value = row.businessId;
|
businessId.value = row.businessId;
|
||||||
taskId.value = row.id;
|
taskId.value = row.id;
|
||||||
const formPath = row.formPath;
|
const formPath = row.formPath;
|
||||||
if (!formPath) return;
|
if (!formPath) return;
|
||||||
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
||||||
|
setTimeout(() => {
|
||||||
showViewDrawer();
|
showViewDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -181,12 +181,16 @@ const businessId = ref<CommonType.IdType>();
|
|||||||
const taskId = ref<CommonType.IdType>();
|
const taskId = ref<CommonType.IdType>();
|
||||||
|
|
||||||
async function handleView(row: Api.Workflow.HisTask) {
|
async function handleView(row: Api.Workflow.HisTask) {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
viewVisible.value = false;
|
||||||
businessId.value = row.businessId;
|
businessId.value = row.businessId;
|
||||||
taskId.value = row.id;
|
taskId.value = row.id;
|
||||||
const formPath = row.formPath;
|
const formPath = row.formPath;
|
||||||
if (!formPath) return;
|
if (!formPath) return;
|
||||||
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
||||||
|
setTimeout(() => {
|
||||||
showViewDrawer();
|
showViewDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -162,12 +162,16 @@ const businessId = ref<CommonType.IdType>();
|
|||||||
const taskId = ref<CommonType.IdType>();
|
const taskId = ref<CommonType.IdType>();
|
||||||
|
|
||||||
async function handleApproval(row: Api.Workflow.Task) {
|
async function handleApproval(row: Api.Workflow.Task) {
|
||||||
|
dynamicComponent.value = null;
|
||||||
|
viewVisible.value = false;
|
||||||
businessId.value = row.businessId;
|
businessId.value = row.businessId;
|
||||||
taskId.value = row.id;
|
taskId.value = row.id;
|
||||||
const formPath = row.formPath;
|
const formPath = row.formPath;
|
||||||
if (!formPath) return;
|
if (!formPath) return;
|
||||||
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
|
||||||
|
setTimeout(() => {
|
||||||
showViewDrawer();
|
showViewDrawer();
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user