Commit c8685ec9 authored by drigle's avatar drigle

隐藏流程模板标题下的外部ID

parent 4a6fe367
......@@ -196,7 +196,7 @@ export default function ProcessMonitorPage() {
const listColumns = useMemo(() => {
const columns = [
{ id: 'title', header: '模板名称', isRowHeader: true, width: '1fr', minWidth: 220, allowsResizing: false, cell: (template) => <div className="pm-data-grid-text-pair"><span className="pm-data-grid-primary">{template.title}</span><span className="pm-data-grid-secondary">外部模板 ID:{template?.metadata?.external_id || '-'}</span></div> },
{ id: 'title', header: '模板名称', isRowHeader: true, width: '1fr', minWidth: 220, allowsResizing: false, cell: (template) => <span className="pm-data-grid-text">{template.title}</span> },
{ id: 'department', header: '所属部门', width: 180, minWidth: 160, allowsResizing: false, cell: (item) => <span className="pm-data-grid-text">{item?.metadata?.department || '-'}</span> },
{ id: 'templateCode', header: '模板编码', width: 200, minWidth: 180, allowsResizing: false, cell: (item) => <span className="pm-data-grid-text">{item?.metadata?.template_code || '-'}</span> },
{ id: 'condition', header: '显示条件', width: 220, minWidth: 190, allowsResizing: false, cell: (item) => <span className="pm-data-grid-text">{item?.metadata?.conditions?.key ? `${item.metadata.conditions.key} = ${item.metadata.conditions.value || '-'}` : '-'}</span> },
......
......@@ -91,7 +91,7 @@ Shell 中的应用切换入口继续读取当前登录用户可访问应用,
- 管理角色可从分组 Tabs 同行的“删除分组”入口删除当前空分组;有关联监控模板的分组必须先逐个取消监控,不执行级联删除
- 通过 `sync_progress:get_template_list` 获取可加入监控的模板库
- 在当前分组下展示 `metadata.progresses` 关联的监控模板
- 模板名称列仅展示文本,通过操作列的“查看”图标进入模板实例列表;管理角色在其后继续使用编辑和取消监控操作
- 模板名称列仅展示模板标题文本,不在标题下方展示外部模板 ID;外部模板 ID 仍保留在 `metadata.external_id` 中用于模板关联和去重。通过操作列的“查看”图标进入模板实例列表;管理角色在其后继续使用编辑和取消监控操作
- 按模板标题和所属部门筛选当前分组模板
- “所属部门”以同名 HeroUI Popover 入口收纳在模板列表工具栏中,按需展开且不单独占用筛选 Surface;弹窗内标签独占一行,选择器与重置按钮同行,选择和重置仍沿用原有实时过滤状态
- 管理角色可执行:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment