fix: layout bug
This commit is contained in:
parent
22d079e44a
commit
49b9d46a13
|
|
@ -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>
|
||||
|
||||
{/* 状态过滤 */}
|
||||
|
|
|
|||
Loading…
Reference in New Issue