2025-06-29 16:13:50 +08:00
|
|
|
|
import { useState, useEffect } from 'react';
|
|
|
|
|
import { useRouter } from 'next/router';
|
|
|
|
|
import Head from 'next/head';
|
2025-06-30 19:42:43 +08:00
|
|
|
|
import DashboardLayout from '../../components/Layout/DashboardLayout';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
import { toast } from 'react-hot-toast';
|
|
|
|
|
import {
|
|
|
|
|
UserIcon,
|
2025-06-30 19:42:43 +08:00
|
|
|
|
MagnifyingGlassIcon,
|
|
|
|
|
PlusIcon,
|
|
|
|
|
EyeIcon,
|
|
|
|
|
PencilIcon,
|
|
|
|
|
TrashIcon,
|
2025-06-29 16:13:50 +08:00
|
|
|
|
StarIcon,
|
2025-06-30 19:42:43 +08:00
|
|
|
|
LanguageIcon,
|
|
|
|
|
ClockIcon,
|
|
|
|
|
CheckCircleIcon,
|
|
|
|
|
XCircleIcon,
|
|
|
|
|
ExclamationTriangleIcon,
|
|
|
|
|
ArrowDownTrayIcon,
|
|
|
|
|
UserPlusIcon,
|
|
|
|
|
PhoneIcon,
|
|
|
|
|
EnvelopeIcon,
|
|
|
|
|
MapPinIcon,
|
|
|
|
|
CalendarIcon,
|
|
|
|
|
CurrencyDollarIcon,
|
|
|
|
|
AcademicCapIcon
|
2025-06-29 16:13:50 +08:00
|
|
|
|
} from '@heroicons/react/24/outline';
|
2025-06-30 19:42:43 +08:00
|
|
|
|
import { getDemoData } from '../../lib/demo-data';
|
|
|
|
|
import { formatTime } from '../../lib/utils';
|
|
|
|
|
|
|
|
|
|
interface Interpreter {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
email: string;
|
|
|
|
|
phone: string;
|
|
|
|
|
avatar?: string;
|
|
|
|
|
languages: string[];
|
|
|
|
|
specialties: string[];
|
|
|
|
|
experience_years: number;
|
|
|
|
|
rating: number;
|
|
|
|
|
total_calls: number;
|
|
|
|
|
total_hours: number;
|
|
|
|
|
hourly_rate: number;
|
|
|
|
|
status: 'active' | 'inactive' | 'busy' | 'offline';
|
|
|
|
|
location: string;
|
|
|
|
|
certifications: string[];
|
|
|
|
|
bio: string;
|
|
|
|
|
joined_at: string;
|
|
|
|
|
last_active: string;
|
|
|
|
|
availability: 'available' | 'busy' | 'offline';
|
|
|
|
|
}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
|
|
|
|
interface InterpreterFilters {
|
|
|
|
|
search: string;
|
2025-06-30 19:42:43 +08:00
|
|
|
|
status: string;
|
|
|
|
|
language: string;
|
|
|
|
|
rating: string;
|
|
|
|
|
availability: string;
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
export default function Interpreters() {
|
|
|
|
|
const router = useRouter();
|
2025-06-29 16:13:50 +08:00
|
|
|
|
const [interpreters, setInterpreters] = useState<Interpreter[]>([]);
|
|
|
|
|
const [loading, setLoading] = useState(true);
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const [selectedInterpreters, setSelectedInterpreters] = useState<string[]>([]);
|
2025-06-29 16:13:50 +08:00
|
|
|
|
const [currentPage, setCurrentPage] = useState(1);
|
|
|
|
|
const [totalPages, setTotalPages] = useState(1);
|
|
|
|
|
const [totalCount, setTotalCount] = useState(0);
|
|
|
|
|
const [filters, setFilters] = useState<InterpreterFilters>({
|
|
|
|
|
search: '',
|
2025-06-30 19:42:43 +08:00
|
|
|
|
status: '',
|
|
|
|
|
language: '',
|
|
|
|
|
rating: '',
|
|
|
|
|
availability: ''
|
2025-06-29 16:13:50 +08:00
|
|
|
|
});
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const pageSize = 10;
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
fetchInterpreters();
|
|
|
|
|
}, [currentPage, filters]);
|
|
|
|
|
|
|
|
|
|
const fetchInterpreters = async () => {
|
2025-06-29 16:13:50 +08:00
|
|
|
|
try {
|
|
|
|
|
setLoading(true);
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
// 模拟加载延迟
|
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 800));
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
// 使用演示数据
|
|
|
|
|
const mockInterpreters: Interpreter[] = [
|
|
|
|
|
{
|
|
|
|
|
id: '1',
|
|
|
|
|
name: '王翻译',
|
|
|
|
|
email: 'wang@example.com',
|
|
|
|
|
phone: '+86 138-0000-0001',
|
|
|
|
|
avatar: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
|
|
|
languages: ['中文', '英文', '日文'],
|
|
|
|
|
specialties: ['商务翻译', '法律翻译', '技术翻译'],
|
|
|
|
|
experience_years: 8,
|
|
|
|
|
rating: 4.9,
|
|
|
|
|
total_calls: 1250,
|
|
|
|
|
total_hours: 3200,
|
2025-06-29 16:13:50 +08:00
|
|
|
|
hourly_rate: 150,
|
2025-06-30 19:42:43 +08:00
|
|
|
|
status: 'active',
|
|
|
|
|
location: '北京',
|
|
|
|
|
certifications: ['CATTI二级', '商务英语高级', 'JLPT N1'],
|
|
|
|
|
bio: '资深翻译员,专注于商务和法律翻译,拥有丰富的国际会议翻译经验。',
|
|
|
|
|
joined_at: '2020-03-15T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-20T15:30:00Z',
|
|
|
|
|
availability: 'available'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '2',
|
|
|
|
|
name: '李专家',
|
|
|
|
|
email: 'li@example.com',
|
|
|
|
|
phone: '+86 138-0000-0002',
|
|
|
|
|
avatar: 'https://images.unsplash.com/photo-1494790108755-2616b612b786?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
|
|
|
languages: ['中文', '韩文', '英文'],
|
|
|
|
|
specialties: ['医学翻译', '学术翻译'],
|
|
|
|
|
experience_years: 12,
|
|
|
|
|
rating: 4.8,
|
|
|
|
|
total_calls: 980,
|
|
|
|
|
total_hours: 2800,
|
|
|
|
|
hourly_rate: 180,
|
|
|
|
|
status: 'active',
|
|
|
|
|
location: '上海',
|
|
|
|
|
certifications: ['医学翻译资格证', 'TOPIK 6级'],
|
|
|
|
|
bio: '医学翻译专家,在医疗器械和药物研发领域有深厚的专业背景。',
|
|
|
|
|
joined_at: '2019-08-20T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-20T14:15:00Z',
|
|
|
|
|
availability: 'busy'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '3',
|
|
|
|
|
name: '张语言',
|
|
|
|
|
email: 'zhang@example.com',
|
|
|
|
|
phone: '+86 138-0000-0003',
|
|
|
|
|
avatar: 'https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
|
|
|
languages: ['中文', '德文', '法文'],
|
|
|
|
|
specialties: ['文学翻译', '艺术翻译'],
|
|
|
|
|
experience_years: 6,
|
|
|
|
|
rating: 4.7,
|
|
|
|
|
total_calls: 650,
|
|
|
|
|
total_hours: 1800,
|
|
|
|
|
hourly_rate: 120,
|
|
|
|
|
status: 'active',
|
|
|
|
|
location: '广州',
|
|
|
|
|
certifications: ['德语C2证书', '法语DALF C1'],
|
|
|
|
|
bio: '擅长文学和艺术类翻译,对欧洲文化有深入了解。',
|
|
|
|
|
joined_at: '2021-05-10T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-19T16:45:00Z',
|
|
|
|
|
availability: 'available'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '4',
|
|
|
|
|
name: '陈口译',
|
|
|
|
|
email: 'chen@example.com',
|
|
|
|
|
phone: '+86 138-0000-0004',
|
|
|
|
|
languages: ['中文', '西班牙文', '葡萄牙文'],
|
|
|
|
|
specialties: ['旅游翻译', '贸易翻译'],
|
|
|
|
|
experience_years: 4,
|
|
|
|
|
rating: 4.5,
|
|
|
|
|
total_calls: 420,
|
|
|
|
|
total_hours: 1200,
|
|
|
|
|
hourly_rate: 100,
|
|
|
|
|
status: 'inactive',
|
|
|
|
|
location: '深圳',
|
|
|
|
|
certifications: ['DELE B2', '葡语中级证书'],
|
|
|
|
|
bio: '专注于拉美地区的商务和旅游翻译服务。',
|
|
|
|
|
joined_at: '2022-01-15T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-18T09:30:00Z',
|
|
|
|
|
availability: 'offline'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '5',
|
|
|
|
|
name: '刘同传',
|
|
|
|
|
email: 'liu@example.com',
|
|
|
|
|
phone: '+86 138-0000-0005',
|
|
|
|
|
avatar: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
|
|
|
languages: ['中文', '英文', '俄文'],
|
|
|
|
|
specialties: ['同声传译', '会议翻译'],
|
|
|
|
|
experience_years: 15,
|
|
|
|
|
rating: 5.0,
|
|
|
|
|
total_calls: 1800,
|
|
|
|
|
total_hours: 4500,
|
|
|
|
|
hourly_rate: 250,
|
|
|
|
|
status: 'active',
|
|
|
|
|
location: '北京',
|
|
|
|
|
certifications: ['同声传译资格证', '俄语专业八级'],
|
|
|
|
|
bio: '顶级同声传译员,曾为多个国际会议提供翻译服务。',
|
|
|
|
|
joined_at: '2018-12-01T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-20T16:00:00Z',
|
|
|
|
|
availability: 'available'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '6',
|
|
|
|
|
name: '赵技术',
|
|
|
|
|
email: 'zhao@example.com',
|
|
|
|
|
phone: '+86 138-0000-0006',
|
|
|
|
|
languages: ['中文', '英文'],
|
|
|
|
|
specialties: ['IT翻译', '软件本地化'],
|
|
|
|
|
experience_years: 5,
|
|
|
|
|
rating: 4.6,
|
|
|
|
|
total_calls: 320,
|
|
|
|
|
total_hours: 900,
|
|
|
|
|
hourly_rate: 130,
|
|
|
|
|
status: 'active',
|
|
|
|
|
location: '杭州',
|
|
|
|
|
certifications: ['计算机技术翻译证书'],
|
|
|
|
|
bio: '专业IT翻译,熟悉各种编程语言和技术文档翻译。',
|
|
|
|
|
joined_at: '2021-09-01T10:00:00Z',
|
|
|
|
|
last_active: '2024-01-20T11:20:00Z',
|
|
|
|
|
availability: 'busy'
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
];
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
// 应用过滤器
|
|
|
|
|
let filteredInterpreters = mockInterpreters;
|
|
|
|
|
|
|
|
|
|
if (filters.search) {
|
|
|
|
|
filteredInterpreters = filteredInterpreters.filter(interpreter =>
|
|
|
|
|
interpreter.name.toLowerCase().includes(filters.search.toLowerCase()) ||
|
|
|
|
|
interpreter.email.toLowerCase().includes(filters.search.toLowerCase()) ||
|
|
|
|
|
interpreter.languages.some(lang => lang.toLowerCase().includes(filters.search.toLowerCase())) ||
|
|
|
|
|
interpreter.specialties.some(spec => spec.toLowerCase().includes(filters.search.toLowerCase()))
|
|
|
|
|
);
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
if (filters.status) {
|
|
|
|
|
filteredInterpreters = filteredInterpreters.filter(interpreter => interpreter.status === filters.status);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (filters.language) {
|
|
|
|
|
filteredInterpreters = filteredInterpreters.filter(interpreter =>
|
|
|
|
|
interpreter.languages.some(lang => lang.toLowerCase().includes(filters.language.toLowerCase()))
|
|
|
|
|
);
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
|
|
|
|
|
if (filters.rating) {
|
|
|
|
|
const minRating = parseFloat(filters.rating);
|
|
|
|
|
filteredInterpreters = filteredInterpreters.filter(interpreter => interpreter.rating >= minRating);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (filters.availability) {
|
|
|
|
|
filteredInterpreters = filteredInterpreters.filter(interpreter => interpreter.availability === filters.availability);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 分页
|
|
|
|
|
const startIndex = (currentPage - 1) * pageSize;
|
|
|
|
|
const endIndex = startIndex + pageSize;
|
|
|
|
|
const paginatedInterpreters = filteredInterpreters.slice(startIndex, endIndex);
|
|
|
|
|
|
|
|
|
|
setInterpreters(paginatedInterpreters);
|
|
|
|
|
setTotalCount(filteredInterpreters.length);
|
|
|
|
|
setTotalPages(Math.ceil(filteredInterpreters.length / pageSize));
|
|
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error('Failed to fetch interpreters:', error);
|
|
|
|
|
toast.error('加载翻译员失败');
|
2025-06-29 16:13:50 +08:00
|
|
|
|
} finally {
|
|
|
|
|
setLoading(false);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const handleSearch = (value: string) => {
|
|
|
|
|
setFilters(prev => ({ ...prev, search: value }));
|
|
|
|
|
setCurrentPage(1);
|
2025-06-29 16:13:50 +08:00
|
|
|
|
};
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const handleFilterChange = (key: keyof InterpreterFilters, value: string) => {
|
|
|
|
|
setFilters(prev => ({ ...prev, [key]: value }));
|
2025-06-29 16:13:50 +08:00
|
|
|
|
setCurrentPage(1);
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const handleSelectInterpreter = (interpreterId: string) => {
|
|
|
|
|
setSelectedInterpreters(prev =>
|
|
|
|
|
prev.includes(interpreterId)
|
|
|
|
|
? prev.filter(id => id !== interpreterId)
|
|
|
|
|
: [...prev, interpreterId]
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleSelectAll = () => {
|
|
|
|
|
if (selectedInterpreters.length === interpreters.length) {
|
|
|
|
|
setSelectedInterpreters([]);
|
|
|
|
|
} else {
|
|
|
|
|
setSelectedInterpreters(interpreters.map(interpreter => interpreter.id));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleBulkAction = async (action: 'activate' | 'deactivate' | 'delete') => {
|
|
|
|
|
if (selectedInterpreters.length === 0) {
|
|
|
|
|
toast.error('请选择要操作的翻译员');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const actionText = action === 'activate' ? '激活' : action === 'deactivate' ? '停用' : '删除';
|
|
|
|
|
toast.loading(`正在${actionText}翻译员...`, { id: 'bulk-action' });
|
|
|
|
|
|
|
|
|
|
// 模拟操作延迟
|
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
|
|
|
|
|
|
|
|
toast.success(`成功${actionText} ${selectedInterpreters.length} 个翻译员`, { id: 'bulk-action' });
|
|
|
|
|
setSelectedInterpreters([]);
|
|
|
|
|
fetchInterpreters();
|
|
|
|
|
} catch (error) {
|
|
|
|
|
toast.error('操作失败', { id: 'bulk-action' });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleExport = async () => {
|
|
|
|
|
try {
|
|
|
|
|
toast.loading('正在导出翻译员数据...', { id: 'export' });
|
|
|
|
|
|
|
|
|
|
// 模拟导出延迟
|
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
|
|
|
|
|
|
|
|
toast.success('翻译员数据导出成功', { id: 'export' });
|
|
|
|
|
} catch (error) {
|
|
|
|
|
toast.error('导出失败', { id: 'export' });
|
|
|
|
|
}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const getStatusColor = (status: string) => {
|
|
|
|
|
switch (status) {
|
2025-06-30 19:42:43 +08:00
|
|
|
|
case 'active':
|
|
|
|
|
return 'text-green-800 bg-green-100';
|
|
|
|
|
case 'inactive':
|
|
|
|
|
return 'text-gray-800 bg-gray-100';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
case 'busy':
|
2025-06-30 19:42:43 +08:00
|
|
|
|
return 'text-yellow-800 bg-yellow-100';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
case 'offline':
|
2025-06-30 19:42:43 +08:00
|
|
|
|
return 'text-red-800 bg-red-100';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
default:
|
2025-06-30 19:42:43 +08:00
|
|
|
|
return 'text-gray-800 bg-gray-100';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const getStatusText = (status: string) => {
|
|
|
|
|
switch (status) {
|
2025-06-30 19:42:43 +08:00
|
|
|
|
case 'active':
|
|
|
|
|
return '活跃';
|
|
|
|
|
case 'inactive':
|
|
|
|
|
return '不活跃';
|
2025-06-29 16:13:50 +08:00
|
|
|
|
case 'busy':
|
|
|
|
|
return '忙碌';
|
|
|
|
|
case 'offline':
|
|
|
|
|
return '离线';
|
|
|
|
|
default:
|
2025-06-30 19:42:43 +08:00
|
|
|
|
return status;
|
2025-06-29 16:13:50 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
const getAvailabilityColor = (availability: string) => {
|
|
|
|
|
switch (availability) {
|
|
|
|
|
case 'available':
|
|
|
|
|
return 'text-green-600';
|
|
|
|
|
case 'busy':
|
|
|
|
|
return 'text-yellow-600';
|
|
|
|
|
case 'offline':
|
|
|
|
|
return 'text-red-600';
|
|
|
|
|
default:
|
|
|
|
|
return 'text-gray-600';
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const getAvailabilityText = (availability: string) => {
|
|
|
|
|
switch (availability) {
|
|
|
|
|
case 'available':
|
|
|
|
|
return '可接单';
|
|
|
|
|
case 'busy':
|
|
|
|
|
return '忙碌中';
|
|
|
|
|
case 'offline':
|
|
|
|
|
return '离线';
|
|
|
|
|
default:
|
|
|
|
|
return availability;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const renderStars = (rating: number) => {
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
{[...Array(5)].map((_, i) => (
|
|
|
|
|
<StarIcon
|
|
|
|
|
key={i}
|
|
|
|
|
className={`h-4 w-4 ${
|
|
|
|
|
i < Math.floor(rating) ? 'text-yellow-400 fill-current' : 'text-gray-300'
|
|
|
|
|
}`}
|
|
|
|
|
/>
|
|
|
|
|
))}
|
|
|
|
|
<span className="ml-1 text-sm text-gray-600">{rating.toFixed(1)}</span>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
|
|
|
|
return (
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
<Head>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<title>翻译员管理 - 翻译服务管理系统</title>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</Head>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
|
|
|
|
|
<DashboardLayout title="翻译员管理">
|
|
|
|
|
<div className="space-y-6">
|
|
|
|
|
{/* 页面标题和操作 */}
|
|
|
|
|
<div className="sm:flex sm:items-center sm:justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 className="text-2xl font-bold text-gray-900">翻译员管理</h1>
|
|
|
|
|
<p className="mt-2 text-sm text-gray-700">
|
|
|
|
|
管理平台上的所有翻译员,包括其技能、评级和可用性状态。
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="mt-4 sm:mt-0 sm:flex sm:space-x-3">
|
|
|
|
|
<button
|
|
|
|
|
onClick={handleExport}
|
|
|
|
|
className="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"
|
|
|
|
|
>
|
|
|
|
|
<ArrowDownTrayIcon className="h-4 w-4 mr-2" />
|
|
|
|
|
导出数据
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => router.push('/dashboard/interpreters/new')}
|
|
|
|
|
className="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700"
|
|
|
|
|
>
|
|
|
|
|
<UserPlusIcon className="h-4 w-4 mr-2" />
|
|
|
|
|
添加翻译员
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
{/* 搜索和过滤器 */}
|
|
|
|
|
<div className="bg-white shadow rounded-lg p-6">
|
|
|
|
|
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-5">
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="search" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
搜索
|
|
|
|
|
</label>
|
|
|
|
|
<div className="relative">
|
|
|
|
|
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
|
|
|
|
<MagnifyingGlassIcon className="h-5 w-5 text-gray-400" />
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="search"
|
|
|
|
|
className="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="搜索姓名、邮箱、语言..."
|
|
|
|
|
value={filters.search}
|
|
|
|
|
onChange={(e) => handleSearch(e.target.value)}
|
|
|
|
|
/>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
</div>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="status" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
状态
|
|
|
|
|
</label>
|
|
|
|
|
<select
|
|
|
|
|
id="status"
|
|
|
|
|
className="block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
value={filters.status}
|
|
|
|
|
onChange={(e) => handleFilterChange('status', e.target.value)}
|
|
|
|
|
>
|
|
|
|
|
<option value="">全部状态</option>
|
|
|
|
|
<option value="active">活跃</option>
|
|
|
|
|
<option value="inactive">不活跃</option>
|
|
|
|
|
<option value="busy">忙碌</option>
|
|
|
|
|
<option value="offline">离线</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="language" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
语言
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="language"
|
|
|
|
|
className="block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="过滤语言..."
|
|
|
|
|
value={filters.language}
|
|
|
|
|
onChange={(e) => handleFilterChange('language', e.target.value)}
|
|
|
|
|
/>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="rating" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
最低评分
|
|
|
|
|
</label>
|
|
|
|
|
<select
|
|
|
|
|
id="rating"
|
|
|
|
|
className="block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
value={filters.rating}
|
|
|
|
|
onChange={(e) => handleFilterChange('rating', e.target.value)}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<option value="">全部评分</option>
|
|
|
|
|
<option value="4.5">4.5星以上</option>
|
|
|
|
|
<option value="4.0">4.0星以上</option>
|
|
|
|
|
<option value="3.5">3.5星以上</option>
|
|
|
|
|
<option value="3.0">3.0星以上</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="availability" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
可用性
|
|
|
|
|
</label>
|
|
|
|
|
<select
|
|
|
|
|
id="availability"
|
|
|
|
|
className="block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
value={filters.availability}
|
|
|
|
|
onChange={(e) => handleFilterChange('availability', e.target.value)}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<option value="">全部状态</option>
|
|
|
|
|
<option value="available">可接单</option>
|
|
|
|
|
<option value="busy">忙碌中</option>
|
|
|
|
|
<option value="offline">离线</option>
|
|
|
|
|
</select>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
{/* 批量操作 */}
|
|
|
|
|
{selectedInterpreters.length > 0 && (
|
|
|
|
|
<div className="bg-white shadow rounded-lg p-4">
|
|
|
|
|
<div className="flex items-center justify-between">
|
|
|
|
|
<span className="text-sm text-gray-700">
|
|
|
|
|
已选择 {selectedInterpreters.length} 个翻译员
|
|
|
|
|
</span>
|
|
|
|
|
<div className="flex space-x-2">
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => handleBulkAction('activate')}
|
|
|
|
|
className="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-green-600 hover:bg-green-700"
|
|
|
|
|
>
|
|
|
|
|
激活
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => handleBulkAction('deactivate')}
|
|
|
|
|
className="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700"
|
|
|
|
|
>
|
|
|
|
|
停用
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => handleBulkAction('delete')}
|
|
|
|
|
className="inline-flex items-center px-3 py-1 border border-transparent text-sm leading-4 font-medium rounded-md text-white bg-red-600 hover:bg-red-700"
|
|
|
|
|
>
|
|
|
|
|
删除
|
|
|
|
|
</button>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
|
2025-06-30 19:42:43 +08:00
|
|
|
|
{/* 翻译员列表 */}
|
|
|
|
|
<div className="bg-white shadow rounded-lg overflow-hidden">
|
|
|
|
|
{loading ? (
|
|
|
|
|
<div className="flex items-center justify-center h-64">
|
|
|
|
|
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"></div>
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
|
|
|
|
<>
|
|
|
|
|
<div className="overflow-x-auto">
|
|
|
|
|
<table className="min-w-full divide-y divide-gray-200">
|
|
|
|
|
<thead className="bg-gray-50">
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope="col" className="relative px-6 py-3">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
className="absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"
|
|
|
|
|
checked={selectedInterpreters.length === interpreters.length && interpreters.length > 0}
|
|
|
|
|
onChange={handleSelectAll}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
/>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
翻译员
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
语言/专业
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
评级/统计
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
费率/经验
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
状态
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
|
|
|
|
最后活跃
|
|
|
|
|
</th>
|
|
|
|
|
<th scope="col" className="relative px-6 py-3">
|
|
|
|
|
<span className="sr-only">操作</span>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody className="bg-white divide-y divide-gray-200">
|
|
|
|
|
{interpreters.map((interpreter) => (
|
|
|
|
|
<tr key={interpreter.id} className="hover:bg-gray-50">
|
|
|
|
|
<td className="relative px-6 py-4">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
className="absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"
|
|
|
|
|
checked={selectedInterpreters.includes(interpreter.id)}
|
|
|
|
|
onChange={() => handleSelectInterpreter(interpreter.id)}
|
|
|
|
|
/>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap">
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<div className="flex-shrink-0 h-10 w-10">
|
|
|
|
|
{interpreter.avatar ? (
|
|
|
|
|
<img className="h-10 w-10 rounded-full" src={interpreter.avatar} alt="" />
|
|
|
|
|
) : (
|
|
|
|
|
<div className="h-10 w-10 rounded-full bg-gray-300 flex items-center justify-center">
|
|
|
|
|
<UserIcon className="h-6 w-6 text-gray-600" />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml-4">
|
|
|
|
|
<div className="text-sm font-medium text-gray-900">{interpreter.name}</div>
|
|
|
|
|
<div className="text-sm text-gray-500 flex items-center">
|
|
|
|
|
<EnvelopeIcon className="h-4 w-4 mr-1" />
|
|
|
|
|
{interpreter.email}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-sm text-gray-500 flex items-center">
|
|
|
|
|
<PhoneIcon className="h-4 w-4 mr-1" />
|
|
|
|
|
{interpreter.phone}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap">
|
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
<div className="flex items-center text-sm text-gray-900">
|
|
|
|
|
<LanguageIcon className="h-4 w-4 mr-1 text-gray-400" />
|
|
|
|
|
<span className="truncate max-w-32">{interpreter.languages.join(', ')}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex items-center text-sm text-gray-500">
|
|
|
|
|
<AcademicCapIcon className="h-4 w-4 mr-1 text-gray-400" />
|
|
|
|
|
<span className="truncate max-w-32">{interpreter.specialties.join(', ')}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex items-center text-sm text-gray-500">
|
|
|
|
|
<MapPinIcon className="h-4 w-4 mr-1 text-gray-400" />
|
|
|
|
|
{interpreter.location}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap">
|
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
{renderStars(interpreter.rating)}
|
|
|
|
|
<div className="text-sm text-gray-500">
|
|
|
|
|
{interpreter.total_calls} 通话
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-sm text-gray-500">
|
|
|
|
|
{interpreter.total_hours} 小时
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap">
|
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
<div className="flex items-center text-sm font-medium text-gray-900">
|
|
|
|
|
<CurrencyDollarIcon className="h-4 w-4 mr-1 text-gray-400" />
|
|
|
|
|
¥{interpreter.hourly_rate}/小时
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-sm text-gray-500">
|
|
|
|
|
{interpreter.experience_years} 年经验
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap">
|
|
|
|
|
<div className="space-y-2">
|
|
|
|
|
<span className={`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${getStatusColor(interpreter.status)}`}>
|
|
|
|
|
{getStatusText(interpreter.status)}
|
|
|
|
|
</span>
|
|
|
|
|
<div className={`text-sm font-medium ${getAvailabilityColor(interpreter.availability)}`}>
|
|
|
|
|
{getAvailabilityText(interpreter.availability)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<ClockIcon className="h-4 w-4 mr-1" />
|
|
|
|
|
{formatTime(interpreter.last_active)}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td className="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
|
|
|
|
<div className="flex items-center space-x-2">
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => router.push(`/dashboard/interpreters/${interpreter.id}`)}
|
|
|
|
|
className="text-blue-600 hover:text-blue-900"
|
|
|
|
|
title="查看详情"
|
|
|
|
|
>
|
|
|
|
|
<EyeIcon className="h-4 w-4" />
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => router.push(`/dashboard/interpreters/${interpreter.id}/edit`)}
|
|
|
|
|
className="text-green-600 hover:text-green-900"
|
|
|
|
|
title="编辑"
|
|
|
|
|
>
|
|
|
|
|
<PencilIcon className="h-4 w-4" />
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
onClick={() => {
|
|
|
|
|
if (confirm('确定要删除这个翻译员吗?')) {
|
|
|
|
|
toast.success('翻译员删除成功');
|
|
|
|
|
fetchInterpreters();
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
className="text-red-600 hover:text-red-900"
|
|
|
|
|
title="删除"
|
|
|
|
|
>
|
|
|
|
|
<TrashIcon className="h-4 w-4" />
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* 分页 */}
|
|
|
|
|
{totalPages > 1 && (
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<div className="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
|
2025-06-29 16:13:50 +08:00
|
|
|
|
<div className="flex-1 flex justify-between sm:hidden">
|
|
|
|
|
<button
|
2025-06-30 19:42:43 +08:00
|
|
|
|
onClick={() => setCurrentPage(prev => Math.max(prev - 1, 1))}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
disabled={currentPage === 1}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
className="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
|
|
|
|
上一页
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
2025-06-30 19:42:43 +08:00
|
|
|
|
onClick={() => setCurrentPage(prev => Math.min(prev + 1, totalPages))}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
disabled={currentPage === totalPages}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
className="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
|
|
|
|
下一页
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
|
|
|
<div>
|
|
|
|
|
<p className="text-sm text-gray-700">
|
|
|
|
|
显示第 <span className="font-medium">{(currentPage - 1) * pageSize + 1}</span> 到{' '}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
<span className="font-medium">{Math.min(currentPage * pageSize, totalCount)}</span> 项,
|
|
|
|
|
共 <span className="font-medium">{totalCount}</span> 项
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<nav className="relative z-0 inline-flex rounded-md shadow-sm -space-x-px">
|
|
|
|
|
<button
|
2025-06-30 19:42:43 +08:00
|
|
|
|
onClick={() => setCurrentPage(prev => Math.max(prev - 1, 1))}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
disabled={currentPage === 1}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
className="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
上一页
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</button>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
{Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => (
|
|
|
|
|
<button
|
|
|
|
|
key={page}
|
|
|
|
|
onClick={() => setCurrentPage(page)}
|
|
|
|
|
className={`relative inline-flex items-center px-4 py-2 border text-sm font-medium ${
|
|
|
|
|
page === currentPage
|
|
|
|
|
? 'z-10 bg-blue-50 border-blue-500 text-blue-600'
|
|
|
|
|
: 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50'
|
|
|
|
|
}`}
|
|
|
|
|
>
|
|
|
|
|
{page}
|
|
|
|
|
</button>
|
|
|
|
|
))}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
<button
|
2025-06-30 19:42:43 +08:00
|
|
|
|
onClick={() => setCurrentPage(prev => Math.min(prev + 1, totalPages))}
|
2025-06-29 16:13:50 +08:00
|
|
|
|
disabled={currentPage === totalPages}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
className="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
|
2025-06-29 16:13:50 +08:00
|
|
|
|
>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
下一页
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</button>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2025-06-30 19:42:43 +08:00
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
</div>
|
2025-06-30 19:42:43 +08:00
|
|
|
|
</DashboardLayout>
|
|
|
|
|
</>
|
2025-06-29 16:13:50 +08:00
|
|
|
|
);
|
|
|
|
|
}
|