From 82b59872796dc1769eacfdd9fb0915c07b5e44f2 Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Mon, 11 Dec 2023 15:46:14 +0800 Subject: [PATCH] update role list after add --- frontend/src/views/Batch/components/UpdateBatch.vue | 2 +- frontend/src/views/Role/Role.vue | 2 +- frontend/src/views/Role/components/AddRole.vue | 6 +++++- frontend/src/views/User/components/AddUser.vue | 2 +- frontend/src/views/User/components/UpdateUser.vue | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/Batch/components/UpdateBatch.vue b/frontend/src/views/Batch/components/UpdateBatch.vue index 4f017ef..f41a144 100644 --- a/frontend/src/views/Batch/components/UpdateBatch.vue +++ b/frontend/src/views/Batch/components/UpdateBatch.vue @@ -49,7 +49,6 @@ function onUpdateBatch() { }).then((resp: any) => { if (resp.code == RespCodeOK) { emits('batchUpdated') - emits('close') ElMessage.success("update batch info success") } else { ElMessage.error("failed to update batch info:" + resp.msg) @@ -57,6 +56,7 @@ function onUpdateBatch() { }).catch((error) => { ElMessage.error("failed to update batch info:" + error) }) + emits('close') } else { ElMessage.error("数据填写错误") } diff --git a/frontend/src/views/Role/Role.vue b/frontend/src/views/Role/Role.vue index abddd54..6783daa 100644 --- a/frontend/src/views/Role/Role.vue +++ b/frontend/src/views/Role/Role.vue @@ -38,7 +38,7 @@ - + diff --git a/frontend/src/views/Role/components/AddRole.vue b/frontend/src/views/Role/components/AddRole.vue index efd1da3..7af0ee9 100644 --- a/frontend/src/views/Role/components/AddRole.vue +++ b/frontend/src/views/Role/components/AddRole.vue @@ -17,12 +17,14 @@