fix(qaops): 修复长部门路径挤出区域与依据列

This commit is contained in:
姚章浩
2026-10-17 16:24:00 +08:00
parent 5874134e04
commit 6adfdcdd4f
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@
### Added
- 新增治理侧通讯录实时桥接,复用既有周报读取能力,向源端读取真实缺失祖先以补齐部门树;不改旧周报脚本、配置或输出。私有 JSON 与受控子进程执行器拒绝不完整数据、模拟同步、公开文件和异常输出,超时清理临时人员文件;网页触发的后台同步队列及问答组织关联尚未接入。
- 区域归属表支持长部门路径换行,避免继承全局不换行规则后将生效区域与归属依据列挤出桌面面板。
- **「问答运营 → 区域使用」区域归属配置切片**:按稳定部门 ID 搜索和勾选完整路径,预览去重归属人数,保存版本后重新读取;父部门包含子部门、子部门显式配置优先,多部门跨区域人员单独待核对。预览不写入,过期版本和不完整部门树被阻断。当前不是实时通讯录同步或使用/绩效统计验收,翻译及 AI 评估模型接入按用户要求暂缓。
- 新增治理侧组织快照与区域修订迁移、受确认保护的后台导入命令;不修改 DobotAI 原表或钉钉组织结构。
- **「问答运营 → 问答记录」首个开发切片**:在现有导航中查看 DobotAI 2.0 钉钉问答,支持半开时间范围、原问题关键词、稳定游标分页和完整详情;按整个筛选结果隐藏空列,反馈聚合不放大问答条数。外语翻译、AI 评估、人员区域映射尚未接入,不标为第一阶段完成。
+10
View File
@@ -1,4 +1,6 @@
import { renderToStaticMarkup } from 'react-dom/server'
// @ts-expect-error The test runner provides Node; the browser bundle intentionally omits @types/node.
import { readFileSync } from 'node:fs'
import { describe, expect, it, vi } from 'vitest'
import { RegionMappingView } from './QARegions'
import { parseOrganization } from './qaOrg'
@@ -49,6 +51,14 @@ const props = {
onRemoveMissing: vi.fn(),
}
describe('region mapping workbench', () => {
it('lets long directory paths wrap instead of inheriting the global nowrap table rule', () => {
const css = readFileSync(new URL('./qaRegions.css', import.meta.url), 'utf8')
const bodyRule = css.match(/\.qa-region-table td\s*\{([^}]+)\}/)?.[1] ?? ''
expect(bodyRule).toMatch(/white-space:\s*normal/)
expect(bodyRule).toMatch(/overflow-wrap:\s*anywhere/)
const statusRule = css.match(/\.qa-region-table td:nth-child\(4\)\s*\{([^}]+)\}/)?.[1] ?? ''
expect(statusRule).toMatch(/white-space:\s*nowrap/)
})
it('shows a dated historical roster, conflicts and no invented performance verdict', () => {
const html = renderToStaticMarkup(<RegionMappingView {...props} />)
expect(html).toContain('历史快照')
+6
View File
@@ -64,6 +64,8 @@
.qa-region-table td {
padding: 10px 12px;
border-bottom: 1px solid var(--line, #d8e1eb);
white-space: normal;
overflow-wrap: anywhere;
}
.qa-region-table th {
position: sticky;
@@ -75,6 +77,10 @@
min-width: 240px;
overflow-wrap: anywhere;
}
.qa-region-table td:nth-child(3),
.qa-region-table td:nth-child(4) {
white-space: nowrap;
}
.qa-region-table input[type='checkbox'] {
width: 17px;
height: 17px;