Commit Graph

54 Commits

Author SHA1 Message Date
TanWenyan 5d3cb2ba34 fix: unwrap PostgREST proxy response format for pointCode 2026-03-23 20:56:27 +08:00
TanWenyan 138cb5c606 fix: fetch pointCode directly via PostgREST in route loader
Vite tree-shakes pointCode from intermediate data objects. Fix by
querying evaluation_points.code directly in the route loader with
postgrestGet, then patching pointCode onto reviewPoints before
returning to the client. Works for both legacy and GraphRAG paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:49:45 +08:00
TanWenyan 2694eeb011 fix: bypass Vite tree-shake for pointCode via pointCodeMap
Vite's SSR build strips pointCode from ReviewPointResult return objects.
Workaround: pass a separate pointCodeMap from reviews.ts and apply it
in the route loader (reviews.tsx) which Vite preserves.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:39:08 +08:00
TanWenyan 2fe773909e feat(ui): display evaluation point code and support code search
- Add pointCode field to ReviewPoint interface and data pipeline
- Show code badge (e.g., JZ-DJ-001) before evaluation point name
- Search bar now matches against point code in addition to name
- Updated placeholder to indicate code search support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 20:02:35 +08:00
DocAuditAI Dev ebcaf05625 revert: reset to 32bee87 for clean text_bbox baseline
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 18:14:11 +08:00
DocAuditAI Dev 33fbd6b860 feat(pdf): support GraphRAG text_bbox highlighting in PDF viewer
When documents are processed through GraphRAG pipeline, coordinate
enrichment produces text_bbox (paragraph-level coordinates) instead of
char_positions (character-level OCR coordinates). Added resolveCharPositions()
helper that converts text_bbox to CharPosition[] format, enabling PDF
highlight rendering for GraphRAG-processed documents.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:44:22 +08:00
TanWenyan c0f8004278 feat(reviews): display not-applicable evaluation points in review list
- Create placeholder reviewPoints from not_applicable unified results
- Merge with existing reviewPoints for display
- Count notApplicable from reviewPoints for accurate statistics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 19:29:48 +08:00
TanWenyan b13e758db1 fix(reviews): map failed_count to warning, always show not-applicable badge
- failed_count should be 'warning' not 'error' for scored eval
- Show '未涉及' badge always, not only when count > 0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 19:08:33 +08:00
TanWenyan 401097536e fix(reviews): use correct key 'data' from getReviewPoints_fromApi response
- getReviewPoints_fromApi returns {data, stats, ...} not {reviewPoints, ...}
- Fixed key check from 'reviewPoints' to 'data'

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 19:05:39 +08:00
TanWenyan b2e8d3299c fix(reviews): use legacy reviewPoints for graphrag mode to prevent content null crash
- reviewPoints from unified API lacks 'content' field expected by ReviewPointsList
- Use reviewData.reviewPoints (from /api/v3/review-points) which has proper content structure
- Scored data still available via scoredResults prop

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 18:53:31 +08:00
TanWenyan 48f605a5c4 feat(reviews): add not-applicable count display in evaluation statistics
- Add notApplicable field to Statistics interface
- Show blue "未涉及" badge when count > 0 (display only, no filter)
- Map backend not_applicable_count to frontend statistics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 18:27:41 +08:00
TanWenyan 60d7d9a33b fix(frontend): fix loader try-catch syntax error
- Add missing closing brace for unified API error check
- Properly wrap catch block around error handling

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 09:44:34 +08:00
TanWenyan 306cb24c70 feat(frontend): integrate GraphRAG scored evaluation results
- Add getUnifiedEvaluationResults API function
- Extend ReviewPointsListProps with flowType, scoredResults, scoredSummary
- Add ScoredResultCard rendering for graphrag flow_type
- Modify reviews.tsx loader to call unified API
- Add scored evaluation component imports

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 09:42:30 +08:00
LiangShiyong e332d05e5d 评查点规则编辑中添加多实体开关控制。
修复文档类型删除失败的bug
2026-01-16 10:11:53 +08:00
LiangShiyong 98a6cc261a 删除部分重要信息的日志输出 2025-12-17 09:59:08 +08:00
LiangShiyong 6fa65ff156 fix: 1. 优化collabora的高亮效果,不固定主要页面。
2. 优化评查结果中的下载按钮,如果加载docx文件的话需要先保存再下载。
3. 交叉评查结果中添加返回按钮,并实现打开对应的任务的文档列表。
4. 文档类型的添加,添加绑定合同管理为入口的时候文档类型名称必须是要附带‘合同’字符。
2025-12-17 01:09:23 +08:00
LiangShiyong 847f7b2b5a feat: 1. 添加交叉评查中的相关页面的按钮与权限的绑定控制。 2. 完善权限校验的hook函数,添加指定的交叉评查的相关的权限。
fix: 1. 修复交叉评查中无法高亮文档的问题。
2025-12-12 16:10:05 +08:00
LiangShiyong d88cfc818b feat: 1. 实现一键替换。
2. 优化追加附件和模板上传的样式。
2025-12-03 12:07:56 +08:00
LiangShiyong 4fcc92a381 feat: 1. 接入CollaboraViewer选中的高亮效果,清除高亮功能,页面销毁自动清除高亮。
2. 合同模板对比接入monaco editor的效果。
3. 添加交叉评查的案卷类型的数据查询。

fix: 1. 修复文档列表的打开模态框蒙板层显示效果。
2025-11-30 19:33:05 +08:00
LiangShiyong d5827a2146 fix: 1. 接入入口模块的管理接口,优化样式。
2. 将查看文档评查结果详情对接接口,采用接口的方式进行查询。
2025-11-26 23:37:14 +08:00
LiangShiyong fe75b4fabd feat: 1. 将交叉评查转移在入口页。
2. 交叉评查渲染的pdf预览组件复用评查点详情的,同时在评查结果中的数据也添加坐标信息。
2025-11-26 10:49:15 +08:00
LiangShiyong 83f8d80e12 合并代码 2025-11-25 20:50:34 +08:00
LiangShiyong f76b3a8a92 feat: 接入pdf文件的显示高亮效果 2025-11-25 18:23:35 +08:00
LiangShiyong bfe39e45a9 feat: 1. 添加axios全局路由拦截进行自动添加请求jwt。 2.重新整理路由表。 3. 文档列表新增版本差异对比。 4.菜单路由可访问列表通过对接接口返回,添加全局路由检测。
5. 修改统一认证登录和管理员登录是通过接口形式进行,存储返回的accessToken。    6. 修改交叉评查的部分样式
2025-11-18 11:06:24 +08:00
LiangShiyong 8a50671c39 fix: 1.将主页和法务助手对话设置成手机也能够正确加载的响应式布局。
2. 修改合同重新上传模板的可接受文件类型,修改对接的上传模板对应的接口。
3. 交叉评查任务列表去除任务名称的点击效果。
4. 交叉评查文件预览在点击完成评查的按钮后会返回任务列表并打开任务的文档列表。
5.修复点击完成评查按钮造成页面刷新。
6. 修复创建任务的第3步无法返回列表。
2025-11-12 15:51:39 +08:00
LiangShiyong 59706b70d0 给所有请求都加上jwt,隐藏生成jwt的secret(放到.env中),隐藏app-secret(放在pm2运行配置文件中,后续直接读取环境配置即可) 2025-10-17 15:28:22 +08:00
LiangShiyong 27b3574cef 合同模板重新上传添加jwt,优化pm2脚本的配置 2025-07-25 16:11:58 +08:00
LiangShiyong 8800e982ab 测通完成评查,投票,意见列表,任务列表,任务关联文档列表的内容。剩余创建任务,提出意见的完善 2025-07-23 10:22:51 +08:00
LiangShiyong 47664fc0e8 添加jwt验证,添加交叉评查首页加载对接接口,评查任务文档列表对接接口,意见列表对接接口 2025-07-22 14:37:37 +08:00
LiangShiyong fff474f46b 添加登录内容,尚未完善,先创建分支 2025-07-14 12:31:43 +08:00
LiangShiyong 7009227806 删除文件上传离开页面的提示信息 2025-06-06 11:32:19 +08:00
LiangShiyong 87ad3376fe 完善卷宗和合同的数据隔离的效果 2025-06-03 21:06:48 +08:00
LiangShiyong b02978508d 删除所有console.log输出,优化评查结果的表格的显示,添加新的页码获取逻辑 2025-06-02 18:55:00 +08:00
LiangShiyong 529ed8072b 优化评查结果的显示效果 2025-06-01 18:30:39 +08:00
LiangShiyong e9084ad500 优化评查结果显示 2025-05-30 19:48:37 +08:00
LiangShiyong 2ff60421aa 修改评查点结果显示 2025-05-29 12:23:50 +08:00
LiangShiyong 8ca354537d 修复评查点的suggeststatus为info没有显示的问题 2025-05-28 18:09:21 +08:00
LiangShiyong 690d369f57 完成智慧法务前端调整20250522,还有登录和主页需要完善 2025-05-27 23:48:28 +08:00
LiangShiyong 742a789244 完善通过评查点的显示优化 2025-05-27 10:05:12 +08:00
LiangShiyong ed3ff4c3b3 修复下载,更改logo,优化评查详情内容的显示,修改sidebar的首页,修复文件上传合同的异步上传时序问题,首页最近文件的自动更新文件状态 2025-05-24 23:25:04 +08:00
LiangShiyong 3adc0441bc 修复评查详情中的下载功能 2025-05-24 15:09:18 +08:00
LiangShiyong 0a76f8dbd1 优化评查详情中用户操作的更新刷新为热更新 2025-05-08 17:38:14 +08:00
LiangShiyong 491e1b119a 改用axios请求进行封装 2025-05-07 09:25:51 +08:00
LiangShiyong b9b5be1d47 进度条优化 2025-04-25 14:12:36 +08:00
LiangShiyong 0eaaa5b041 新增全局加载进度条组件 2025-04-24 20:51:10 +08:00
LiangShiyong 65b7d0739a 完善列表和编辑页面的数据验证和交互,实现服务端和客户端两重数据验证 2025-04-24 18:33:09 +08:00
LiangShiyong ee36ce2620 优化评查详情通过/不通过 重新审核按钮切换的操作:只有点击通过/不通过才更新列表 2025-04-22 21:13:45 +08:00
LiangShiyong 6261950356 修改时间范围组件,评查详情创建新的数据结构来适配新的返回格式 2025-04-22 20:49:18 +08:00
LiangShiyong cd2f060d87 完善文档预览的效果修改 2025-04-21 23:02:29 +08:00
LiangShiyong 5c2c367856 新增提示Toast组件 2025-04-21 09:22:13 +08:00