feat: 新增风险规则生成引擎与知识图谱可视化
后端新增风险规则自动生成和模板执行服务,支持从规则资产 批量生成并持久化风险规则文件;知识库入库日志增强图谱 查询和本地 RAG 回退,前端审计页面增加风险规则模型和流 程图组件,知识入库面板拆分为图谱可视化子组件,报销创 建页面增加引导式流程模型,更新知识库索引数据。
This commit is contained in:
@@ -32,3 +32,26 @@ test('archive center is wired into navigation and api client', () => {
|
||||
assert.match(navigationScript, /id:\s*'archive'/)
|
||||
assert.match(reimbursementsService, /\/reimbursements\/claims\/archives/)
|
||||
})
|
||||
|
||||
test('archive center uses generic archive category and type wording', () => {
|
||||
const archiveView = readFileSync(
|
||||
fileURLToPath(new URL('../src/views/ArchiveCenterView.vue', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
const archiveScript = readFileSync(
|
||||
fileURLToPath(new URL('../src/views/scripts/ArchiveCenterView.js', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
|
||||
assert.match(archiveScript, /const tabs = \[ARCHIVE_TAB_ALL, ARCHIVE_TAB_REIMBURSEMENT\]/)
|
||||
assert.match(archiveScript, /const ARCHIVE_TAB_REIMBURSEMENT = '报销归档'/)
|
||||
assert.match(archiveScript, /archiveType:\s*ARCHIVE_TYPE_REIMBURSEMENT/)
|
||||
assert.match(archiveScript, /archiveTypeCode:\s*ARCHIVE_TYPE_REIMBURSEMENT_CODE/)
|
||||
assert.doesNotMatch(archiveScript, /'差旅报销'/)
|
||||
assert.doesNotMatch(archiveScript, /'招待报销'/)
|
||||
assert.doesNotMatch(archiveScript, /'其他费用'/)
|
||||
assert.match(archiveView, /placeholder="搜索单号、申请人、部门、归档类型\.\.\."/)
|
||||
assert.match(archiveView, /<th>归档类型<\/th>/)
|
||||
assert.match(archiveView, /\{\{\s*row\.archiveType\s*\}\}/)
|
||||
assert.doesNotMatch(archiveView, /<th>报销类型<\/th>/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user