From 6c6f69ae2427df55dbeb7e6de826ce921a5276af Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Thu, 4 Dec 2025 15:31:40 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=20=E4=BC=98=E5=8C=96=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../batch-upload/components/upload-panel.vue | 3 -- .../exec-command-host-log-table.vue | 3 -- .../exec-command-log-clear-modal.vue | 2 - .../components/exec-command-log-table.vue | 5 --- .../components/exec-command-panel-history.vue | 1 - .../components/exec-command-panel.vue | 3 -- .../components/exec-job-host-log-table.vue | 3 -- .../components/exec-job-log-clear-modal.vue | 2 - .../components/exec-job-log-table.vue | 4 -- .../components/exec-job-detail-drawer.vue | 38 ++++++------------- .../components/exec-job-form-drawer.vue | 4 -- .../exec-job/components/exec-job-table.vue | 4 -- .../components/exec-user-update-modal.vue | 2 - .../components/exec-template-exec-drawer.vue | 3 -- .../components/exec-template-form-drawer.vue | 3 -- .../components/exec-template-table.vue | 3 -- .../components/upload-task-clear-modal.vue | 2 - .../components/upload-task-table.vue | 4 -- 18 files changed, 12 insertions(+), 77 deletions(-) diff --git a/orion-visor-ui/src/views/exec/batch-upload/components/upload-panel.vue b/orion-visor-ui/src/views/exec/batch-upload/components/upload-panel.vue index 353575b0..4541a2b9 100644 --- a/orion-visor-ui/src/views/exec/batch-upload/components/upload-panel.vue +++ b/orion-visor-ui/src/views/exec/batch-upload/components/upload-panel.vue @@ -106,7 +106,6 @@ } else { taskStatus.value = UploadTaskStepStatus.UPLOADING; } - } catch (e) { } finally { setLoading(false); } @@ -159,7 +158,6 @@ taskStatus.value = UploadTaskStepStatus.WAITING; Message.success('已取消'); taskId.value = undefined; - } catch (e) { } finally { setLoading(false); } @@ -207,7 +205,6 @@ // 开始上传 await cancelUploadTask(taskId.value, true); taskStatus.value = UploadTaskStepStatus.FAILED; - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-host-log-table.vue b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-host-log-table.vue index 9d66b9b1..f55cf70a 100644 --- a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-host-log-table.vue +++ b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-host-log-table.vue @@ -163,7 +163,6 @@ record.startTime = data.startTime; record.finishTime = data.finishTime; record.refreshed = true; - } catch (e) { } finally { setLoading(false); } @@ -185,7 +184,6 @@ }); Message.success('已中断'); record.status = ExecHostStatus.INTERRUPTED; - } catch (e) { } finally { setLoading(false); } @@ -199,7 +197,6 @@ await deleteExecCommandHostLog(id); Message.success('删除成功'); emits('refreshHost', logId); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-clear-modal.vue b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-clear-modal.vue index fbcf7248..997c9184 100644 --- a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-clear-modal.vue +++ b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-clear-modal.vue @@ -129,7 +129,6 @@ // 无数据 Message.warning('当前条件未查询到数据'); } - } catch (e) { } finally { setLoading(false); } @@ -151,7 +150,6 @@ // 清空 setVisible(false); handlerClear(); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-table.vue b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-table.vue index ef2f7f65..3c564380 100644 --- a/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-table.vue +++ b/orion-visor-ui/src/views/exec/exec-command-log/components/exec-command-log-table.vue @@ -279,7 +279,6 @@ selectedKeys.value = []; // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -294,7 +293,6 @@ Message.success('删除成功'); // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -310,7 +308,6 @@ }); Message.success('已重新执行'); fetchTableData(); - } catch (e) { } finally { setLoading(false); } @@ -326,7 +323,6 @@ }); Message.success('已中断'); record.status = ExecStatus.COMPLETED; - } catch (e) { } finally { setLoading(false); } @@ -411,7 +407,6 @@ pagination.pageSize = request.limit; selectedKeys.value = []; tableRef.value.expandAll(false); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel-history.vue b/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel-history.vue index 7a6762e0..5fa5d0ed 100644 --- a/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel-history.vue +++ b/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel-history.vue @@ -99,7 +99,6 @@ try { const { data } = await getExecCommandLogHistory(historyCount); historyLogs.value = data; - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel.vue b/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel.vue index 179df173..17324502 100644 --- a/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel.vue +++ b/orion-visor-ui/src/views/exec/exec-command/components/exec-command-panel.vue @@ -194,7 +194,6 @@ } else { parameterFormModel.value = {}; } - } catch (e) { } finally { setLoading(false); } @@ -252,8 +251,6 @@ historyRef.value.add(request); Message.success('已开始执行'); emits('submit', data); - } catch (e) { - return false; } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-host-log-table.vue b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-host-log-table.vue index 2eaf5311..223e826a 100644 --- a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-host-log-table.vue +++ b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-host-log-table.vue @@ -163,7 +163,6 @@ record.startTime = data.startTime; record.finishTime = data.finishTime; record.refreshed = true; - } catch (e) { } finally { setLoading(false); } @@ -185,7 +184,6 @@ }); Message.success('已中断'); record.status = ExecHostStatus.INTERRUPTED; - } catch (e) { } finally { setLoading(false); } @@ -199,7 +197,6 @@ await deleteExecJobHostLog(id); Message.success('删除成功'); emits('refreshHost', logId); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-clear-modal.vue b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-clear-modal.vue index a63233cf..ca93f574 100644 --- a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-clear-modal.vue +++ b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-clear-modal.vue @@ -124,7 +124,6 @@ // 无数据 Message.warning('当前条件未查询到数据'); } - } catch (e) { } finally { setLoading(false); } @@ -146,7 +145,6 @@ // 清空 setVisible(false); handlerClear(); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-table.vue b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-table.vue index ffeb1d08..8247e465 100644 --- a/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-table.vue +++ b/orion-visor-ui/src/views/exec/exec-job-log/components/exec-job-log-table.vue @@ -288,7 +288,6 @@ }); Message.success('已中断'); record.status = ExecStatus.COMPLETED; - } catch (e) { } finally { setLoading(false); } @@ -363,7 +362,6 @@ Message.success('删除成功'); // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -379,7 +377,6 @@ selectedKeys.value = []; // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -404,7 +401,6 @@ pagination.pageSize = request.limit; selectedKeys.value = []; tableRef.value.expandAll(false); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-detail-drawer.vue b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-detail-drawer.vue index e93b4b75..d5b26f91 100644 --- a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-detail-drawer.vue +++ b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-detail-drawer.vue @@ -99,7 +99,6 @@ diff --git a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-form-drawer.vue b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-form-drawer.vue index bd3162af..6244ab2c 100644 --- a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-form-drawer.vue +++ b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-form-drawer.vue @@ -251,7 +251,6 @@ setLoading(true); const { data } = await getExecJob(id); renderForm({ ...defaultForm(), ...data }); - } catch (e) { } finally { setLoading(false); } @@ -316,7 +315,6 @@ } else { parameter.value = []; } - } catch (e) { } finally { setLoading(false); } @@ -359,8 +357,6 @@ } // 清空 handlerClear(); - } catch (e) { - return false; } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-table.vue b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-table.vue index 9403ff13..a0d1a80d 100644 --- a/orion-visor-ui/src/views/exec/exec-job/components/exec-job-table.vue +++ b/orion-visor-ui/src/views/exec/exec-job/components/exec-job-table.vue @@ -264,7 +264,6 @@ Message.success('删除成功'); // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -280,7 +279,6 @@ selectedKeys.value = []; // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -314,7 +312,6 @@ try { await triggerExecJob(id); Message.success('已触发'); - } catch (e) { } finally { setLoading(false); } @@ -330,7 +327,6 @@ pagination.current = request.page; pagination.pageSize = request.limit; selectedKeys.value = []; - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-job/components/exec-user-update-modal.vue b/orion-visor-ui/src/views/exec/exec-job/components/exec-user-update-modal.vue index bc5893d3..b5214e90 100644 --- a/orion-visor-ui/src/views/exec/exec-job/components/exec-user-update-modal.vue +++ b/orion-visor-ui/src/views/exec/exec-job/components/exec-user-update-modal.vue @@ -79,8 +79,6 @@ Message.success('修改成功'); // 清空 handlerClear(); - } catch (e) { - return false; } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-exec-drawer.vue b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-exec-drawer.vue index f5e149f7..08f180bb 100644 --- a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-exec-drawer.vue +++ b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-exec-drawer.vue @@ -161,7 +161,6 @@ // 查询模板信息 const { data } = await getExecTemplateWithAuthorized(id); renderForm(data); - } catch (e) { } finally { setLoading(false); } @@ -226,8 +225,6 @@ Message.success('已开始执行'); // 清空 handlerClear(); - } catch (e) { - return false; } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-form-drawer.vue b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-form-drawer.vue index 66e08c54..140f91c7 100644 --- a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-form-drawer.vue +++ b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-form-drawer.vue @@ -214,7 +214,6 @@ // 查询模板信息 const { data } = await getExecTemplateWithAuthorized(id); renderForm({ ...defaultForm(), ...data }); - } catch (e) { } finally { setLoading(false); } @@ -282,8 +281,6 @@ } // 清空 handlerClear(); - } catch (e) { - return false; } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-table.vue b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-table.vue index 1b1b5ecc..8575118d 100644 --- a/orion-visor-ui/src/views/exec/exec-template/components/exec-template-table.vue +++ b/orion-visor-ui/src/views/exec/exec-template/components/exec-template-table.vue @@ -173,7 +173,6 @@ Message.success('删除成功'); // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -189,7 +188,6 @@ selectedKeys.value = []; // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -213,7 +211,6 @@ pagination.current = request.page; pagination.pageSize = request.limit; selectedKeys.value = []; - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/upload-task/components/upload-task-clear-modal.vue b/orion-visor-ui/src/views/exec/upload-task/components/upload-task-clear-modal.vue index b28aec9e..b4922769 100644 --- a/orion-visor-ui/src/views/exec/upload-task/components/upload-task-clear-modal.vue +++ b/orion-visor-ui/src/views/exec/upload-task/components/upload-task-clear-modal.vue @@ -128,7 +128,6 @@ // 无数据 Message.warning('当前条件未查询到数据'); } - } catch (e) { } finally { setLoading(false); } @@ -150,7 +149,6 @@ // 清空 setVisible(false); handlerClear(); - } catch (e) { } finally { setLoading(false); } diff --git a/orion-visor-ui/src/views/exec/upload-task/components/upload-task-table.vue b/orion-visor-ui/src/views/exec/upload-task/components/upload-task-table.vue index e869c555..ded4a13e 100644 --- a/orion-visor-ui/src/views/exec/upload-task/components/upload-task-table.vue +++ b/orion-visor-ui/src/views/exec/upload-task/components/upload-task-table.vue @@ -237,7 +237,6 @@ await cancelUploadTask(record.id, false); // 设置状态 record.status = UploadTaskStatus.CANCELED; - } catch (e) { } finally { setLoading(false); } @@ -253,7 +252,6 @@ selectedKeys.value = []; // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -268,7 +266,6 @@ Message.success('删除成功'); // 重新加载 reload(); - } catch (e) { } finally { setLoading(false); } @@ -311,7 +308,6 @@ pagination.current = request.page; pagination.pageSize = request.limit; selectedKeys.value = []; - } catch (e) { } finally { setLoading(false); }