diff --git a/frontend/src/views/system/member/index.vue b/frontend/src/views/system/member/index.vue index 38dbbdb6..9565a789 100644 --- a/frontend/src/views/system/member/index.vue +++ b/frontend/src/views/system/member/index.vue @@ -19,6 +19,7 @@ const { t } = useI18n() const multipleSelectionAll = ref([]) const keywordsMember = ref('') const userStore = useUserStore() +const searchLoading = ref(false) const workspaceForm = reactive({ name: '', @@ -134,18 +135,19 @@ const handleToggleRowSelection = (check: boolean = true) => { } const search = () => { - workspaceUserList( - { keyword: keywordsMember.value }, - pageInfo.currentPage, - pageInfo.pageSize - ).then((res) => { - toggleRowLoading.value = true - fieldList.value = res.items - pageInfo.total = res.total - nextTick(() => { - handleToggleRowSelection() + searchLoading.value = true + workspaceUserList({ keyword: keywordsMember.value }, pageInfo.currentPage, pageInfo.pageSize) + .then((res) => { + toggleRowLoading.value = true + fieldList.value = res.items + pageInfo.total = res.total + nextTick(() => { + handleToggleRowSelection() + }) + }) + .finally(() => { + searchLoading.value = false }) - }) } const closeField = () => { @@ -204,7 +206,7 @@ const handleCurrentChange = (val: number) => {
- +
{ left: 0; top: 0; width: calc(100% + 4px); + height: calc(100vh - 390px); } .btn {