From 373244688c435c149f34b29fed625926369567ea Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 12 九月 2025 14:28:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev_script' into dev --- src/views/collaborativeApproval/rpaManagement/index.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/collaborativeApproval/rpaManagement/index.vue b/src/views/collaborativeApproval/rpaManagement/index.vue index 81cde62..e08104b 100644 --- a/src/views/collaborativeApproval/rpaManagement/index.vue +++ b/src/views/collaborativeApproval/rpaManagement/index.vue @@ -247,7 +247,7 @@ const openForm = (type, row) => { dialogType.value = type; dialogVisible.value = true; - + if (type === "add") { dialogTitle.value = "娣诲姞RPA"; } else { @@ -259,10 +259,10 @@ // 鎻愪氦琛ㄥ崟 const submitForm = async () => { if (!formRef.value) return; - + try { await formRef.value.validate(); - + if (dialogType.value === "add") { // 娣诲姞鏂癛PA addRpa({...form.value}).then(res => { @@ -342,9 +342,13 @@ }) .then(() => { delRpa(ids).then((res) => { - proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - getList(); - }) + if(res.code == 200){ + ElMessage.success("鍒犻櫎鎴愬姛"); + getList(); + } + }).catch(err => { + ElMessage.error(err.msg); + }) }) .catch(() => { proxy.$modal.msg("宸插彇娑�"); -- Gitblit v1.9.3