914e3d5127
- 添加云端数据权限列到代理管理页面 - 重构代理后台用户管理、卡密管理、财务管理页面使用DataTable组件 - 添加统计卡片到代理后台各页面 - 修复agent-apps相关类型错误 - 添加代理后台页面i18n国际化支持 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
36 lines
784 B
Vue
36 lines
784 B
Vue
<script setup lang="ts">
|
|
import type { Table } from '@tanstack/vue-table'
|
|
|
|
import { computed } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { Input } from '@/components/ui/input'
|
|
import type { User } from '@/pages/agent/users/data/schema'
|
|
|
|
const props = defineProps<{
|
|
table: Table<User>
|
|
searchFilter?: string
|
|
}>()
|
|
|
|
const emit = defineEmits<{
|
|
'update:searchFilter': [value: string]
|
|
}>()
|
|
|
|
const { t } = useI18n()
|
|
|
|
const searchModel = computed({
|
|
get: () => props.searchFilter,
|
|
set: (value: string) => emit('update:searchFilter', value),
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex items-center gap-2">
|
|
<UiInput
|
|
v-model="searchModel"
|
|
:placeholder="t('agent.users.searchPlaceholder')"
|
|
class="h-8 w-[200px] lg:w-[250px]"
|
|
/>
|
|
</div>
|
|
</template>
|