fix: layout bug

This commit is contained in:
imeepos 2025-07-16 16:52:44 +08:00
parent 22d079e44a
commit 49b9d46a13
1 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core';
import {
TemplateMatchingResult,
import {
TemplateMatchingResult,
TemplateMatchingResultQueryOptions,
MatchingResultStatus,
MatchingStatistics
@ -109,11 +109,11 @@ export const TemplateMatchingResultManager: React.FC<TemplateMatchingResultManag
await invoke<boolean>('soft_delete_matching_result', {
resultId: result.id,
});
// 重新加载列表
await loadResults();
await loadStatistics();
setDeleteConfirm({ show: false, result: null });
} catch (err) {
setError(`删除失败: ${err}`);
@ -187,13 +187,15 @@ export const TemplateMatchingResultManager: React.FC<TemplateMatchingResultManag
<label className="form-label">
</label>
<input
type="text"
placeholder="搜索结果名称或描述..."
value={filters.searchKeyword || ''}
onChange={(e) => handleFilterChange({ searchKeyword: e.target.value })}
className="form-input h-8"
/>
<div className="relative">
<input
type="text"
placeholder="搜索结果名称或描述..."
value={filters.searchKeyword || ''}
onChange={(e) => handleFilterChange({ searchKeyword: e.target.value })}
className="form-input h-10"
/>
</div>
</div>
{/* 状态过滤 */}