diff --git a/pages/generation/admin/users.vue b/pages/generation/admin/users.vue index 2ae2a91..6b375db 100644 --- a/pages/generation/admin/users.vue +++ b/pages/generation/admin/users.vue @@ -55,6 +55,7 @@ const selectedColumns = ref([...columns.filter(row => { })]) const page = ref(1) const pageCount = ref(15) +const state_filter = ref<'verified' | 'unverified'>('verified') const is_verified = ref(true) const viewingUser = ref(null) const isSlideOpen = computed({ @@ -63,6 +64,7 @@ const isSlideOpen = computed({ }) watch([is_verified, pageCount], () => page.value = 1) +watch(state_filter, () => is_verified.value = state_filter.value === 'verified') const { data: usersData, @@ -281,10 +283,10 @@ const setUserStatus = (uid: number, is_verified: boolean) => {
useFetchWrapped>>( @@ -25,47 +26,79 @@ const { watch: [pagination], }, ) + +const columns = [ + { + key: 'avatar', + label: '图片', + }, + { + key: 'name', + label: '名称', + }, + { + key: 'model_id', + label: 'ID', + }, + { + key: 'description', + label: '备注', + }, + { + key: 'actions', + }, +]