rm evets id filter
This commit is contained in:
@@ -109,7 +109,6 @@ export default function DashboardPage() {
|
||||
const [geoData, setGeoData] = useState<GeoData[]>([]);
|
||||
const [deviceData, setDeviceData] = useState<DeviceAnalyticsType | null>(null);
|
||||
const [events, setEvents] = useState<Event[]>([]);
|
||||
const [urlFilter, setUrlFilter] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
const fetchData = async () => {
|
||||
@@ -124,8 +123,7 @@ export default function DashboardPage() {
|
||||
const baseUrl = '/api/events';
|
||||
const params = new URLSearchParams({
|
||||
startTime,
|
||||
endTime,
|
||||
...(urlFilter && { urlId: urlFilter })
|
||||
endTime
|
||||
});
|
||||
|
||||
// 添加团队ID参数 - 支持多个团队
|
||||
@@ -171,7 +169,7 @@ export default function DashboardPage() {
|
||||
};
|
||||
|
||||
fetchData();
|
||||
}, [dateRange, urlFilter, selectedTeamIds]);
|
||||
}, [dateRange, selectedTeamIds]);
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
@@ -287,21 +285,6 @@ export default function DashboardPage() {
|
||||
<div className="bg-white rounded-lg shadow overflow-hidden mb-8">
|
||||
<div className="p-6 border-b border-gray-200">
|
||||
<h2 className="text-lg font-semibold text-gray-900 mb-4">Recent Events</h2>
|
||||
|
||||
<div className="flex items-center space-x-4 mb-4">
|
||||
<div className="flex-1">
|
||||
<label className="block text-sm font-medium text-gray-500 mb-1">
|
||||
Filter by URL ID
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
value={urlFilter}
|
||||
onChange={e => setUrlFilter(e.target.value)}
|
||||
className="w-full px-3 py-2 bg-white border border-gray-300 rounded-md text-sm text-gray-900"
|
||||
placeholder="Enter URL ID to filter"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="overflow-x-auto">
|
||||
|
||||
Reference in New Issue
Block a user