feat: 增强规则资产管理与审计页面运行时调试

后端新增规则资产版本管理和规则文件 CRUD 接口,优化风险
规则生成模板执行和员工数据模型字段,知识库 RAG 增强本
地回退和文档提取能力,清理旧风险规则文件统一由生成引擎
管理,前端审计页面增加运行时调试面板和规则资产编辑交互,
补充单元测试覆盖。
This commit is contained in:
caoxiaozhu
2026-05-24 21:44:17 +08:00
parent 575f093c74
commit 50b1c3f9a9
113 changed files with 13896 additions and 5044 deletions

View File

@@ -3,7 +3,7 @@ import { useRoute, useRouter } from 'vue-router'
import { icons } from '../data/icons.js'
export const appViews = ['overview', 'workbench', 'requests', 'approval', 'archive', 'policies', 'audit', 'employees', 'logs', 'settings']
export const appViews = ['overview', 'workbench', 'documents', 'requests', 'approval', 'archive', 'policies', 'audit', 'employees', 'logs', 'settings']
export const navItems = [
{
@@ -22,6 +22,14 @@ export const navItems = [
title: '个人工作台',
desc: '聚焦当前待办、快捷操作与助手入口。'
},
{
id: 'documents',
label: '单据中心',
navHint: '统一查看申请、报销、审批与归档',
icon: icons.file,
title: '单据中心',
desc: '统一查看申请、报销、审批与归档。'
},
{
id: 'requests',
label: '报销中心',
@@ -91,6 +99,7 @@ export const navItems = [
const viewRouteNames = {
overview: 'app-overview',
workbench: 'app-workbench',
documents: 'app-documents',
requests: 'app-requests',
approval: 'app-approval',
archive: 'app-archive',
@@ -106,6 +115,7 @@ const routeNameViews = Object.fromEntries(
)
routeNameViews['app-request-detail'] = 'requests'
routeNameViews['app-document-detail'] = 'documents'
routeNameViews['app-log-detail'] = 'logs'
export function resolveAppViewFromRoute(route) {