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