update 调整查询流程图渲染空指针错误,优化流程图样式

This commit is contained in:
gssong
2025-05-27 22:20:30 +08:00
parent ca0fe5ebae
commit 1878f49e8d
11 changed files with 32 additions and 30 deletions
+1 -6
View File
@@ -270,7 +270,7 @@ const handleStartWorkFlow = async (data: LeaveForm) => {
};
//审批记录
const handleApprovalRecord = () => {
approvalRecordRef.value.init(form.value.id, routeParams.value.instanceId);
approvalRecordRef.value.init(form.value.id);
};
//提交回调
const submitCallback = async () => {
@@ -291,11 +291,6 @@ const submitButtonShow = computed(() => {
);
});
//校验审批按钮是否显示
const approvalButtonShow = computed(() => {
return routeParams.value.type === 'approval' && form.value.status && form.value.status === 'waiting';
});
onMounted(() => {
nextTick(async () => {
routeParams.value = proxy.$route.query;