feat(evaluation): 完成模块2.6 - 评查点前端组件增强
- rules.list.tsx 新增批量操作功能: * 添加批量选择复选框 * 实现批量启用/禁用评查点 * 实现批量删除评查点 * 添加操作结果提示和部分失败处理 - BasicInfo.tsx 新增异步编码验证: * 实现500ms防抖的实时编码唯一性验证 * 集成 getRulesList API 进行编码查重 * 编辑模式下排除当前评查点 * 添加验证中状态和错误提示UI - 通过TypeScript类型检查,无新增类型错误 - 批量操作支持部分成功场景,详细报告结果 - 改善用户体验,提供实时反馈
This commit is contained in:
@@ -52,6 +52,7 @@ import { postgrestGet, postgrestPost, postgrestPut } from "~/api/postgrest-clien
|
||||
import { toastService } from '~/components/ui/Toast';
|
||||
import type { UserRole } from '~/root';
|
||||
import { getPromptTemplateOptions } from '~/api/prompts/prompts';
|
||||
import { getRulesList } from '~/api/evaluation_points/rules';
|
||||
|
||||
export const meta: MetaFunction = () => {
|
||||
return [
|
||||
@@ -1051,6 +1052,8 @@ export default function RuleNew() {
|
||||
initialData={formData}
|
||||
evaluationPointGroups={evaluationPointGroups}
|
||||
riskOptions={EVALUATION_OPTIONS.riskLevelOptions}
|
||||
frontendJWT={frontendJWT}
|
||||
evaluationPointId={formData.id}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user