From 6b94af76c1fbea755ffe4e27d02e52803dc11db6 Mon Sep 17 00:00:00 2001 From: xue jiahao Date: Sun, 15 Dec 2024 22:21:00 +0800 Subject: [PATCH] [UI] some fix --- .../ShareDomain/ShareDomainDialog.vue | 69 +++++++++++++++---- .../ShareDomain/SharingUserList.vue | 2 +- frontend/src/pages/TenantDomain.vue | 23 ++++--- 3 files changed, 72 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/ShareDomain/ShareDomainDialog.vue b/frontend/src/components/ShareDomain/ShareDomainDialog.vue index 0ea591b..9b69ec0 100644 --- a/frontend/src/components/ShareDomain/ShareDomainDialog.vue +++ b/frontend/src/components/ShareDomain/ShareDomainDialog.vue @@ -22,7 +22,8 @@ :display-value="canSharedUserFilter?`${canSharedUserFilter.fullName} (${canSharedUserFilter.email})`:''"> diff --git a/frontend/src/pages/TenantDomain.vue b/frontend/src/pages/TenantDomain.vue index 04a89d9..da0b6d8 100644 --- a/frontend/src/pages/TenantDomain.vue +++ b/frontend/src/pages/TenantDomain.vue @@ -112,23 +112,28 @@ + ドメイン利用権限を確認中 - - - 削除してもよろしいですか? - - + + ドメインは使用中です。削除してもよろしいですか? + + + + 削除してもよろしいですか? + + - + + @@ -171,7 +176,7 @@ const columns = [ const pagination = ref({ sortBy: 'id', descending: true, rowsPerPage: 20 }); const loading = ref(false); const addEditLoading = ref(false); -const deleteLoadingState = ref(-1); // -1: loading, 0: allow, > 0: user count +const deleteLoadingState = ref(-1); // -2: deleteLoading, -1: loading, 0: allow, > 0: user count const filter = ref(''); const rows = ref([]); @@ -269,15 +274,17 @@ async function removeRow(row: IDomainOwnerDisplay) { } const deleteDomain = () => { + deleteLoadingState.value = -2; api.delete(`api/domain/${editId.value}`).then(({ data }) => { if (!data.data) { // TODO dialog } + confirm.value = false; + deleteLoadingState.value = -1; getDomain(); // authStore.setCurrentDomain(); }) editId.value = 0; // set in removeRow() - deleteLoadingState.value = -1; }; function editRow(row) {