cec5607c45
为管理后台'排查流程图'模块加 JSON 在线编辑能力 + 提供 9 套 办公 IT 常见故障排查模板种子数据(账号/系统/企微/VPN/邮箱/网络/ 打印机/软件/硬件),管理员可基于此学习、筛选、修改、新增。 ## 选型(按'优选开源'原则) - @codemirror/lang-json / state / theme-one-dark / view - codemirror(核心) - vue-codemirror(Vue 3 集成) - vue-json-pretty(JSON 树形预览) 全部为社区成熟开源组件,非自行开发 ## 改动 - frontend-admin/package.json: 加 6 个 npm 依赖 - frontend-admin/src/api/troubleshooting.ts(新): TS 类型 + 5 个 API client(listTemplates / getTemplate / createTemplate / updateTemplate / deleteTemplate) + formatJson/validateJson/ countNodes/countDecisions 工具函数 - frontend-admin/src/components/flowchart/FlowchartEditorDialog.vue(新): 双面板编辑器(左 CodeMirror + 右 vue-json-pretty), 实时 JSON 校验 + 节点/决策统计 + 格式/复制/导出按钮 - frontend-admin/src/views/Flowcharts.vue(改): 列表 + 导入/导出/ 新建按钮 + EditorDialog 集成 + 文件上传 + 删除确认 ## 9 套种子数据 - 01-account-password.json 账号密码 - 02-pc-system.json 电脑系统 - 03-wecom.json 企微问题 - 04-vpn.json VPN 接入 - 05-email.json 邮箱 - 06-network.json 网络 - 07-printer.json 打印机 - 08-software.json 软件 - 09-hardware.json 硬件 每套 ~150-200 行,结构:name / category / description / estimated_time / difficulty / tags / root_node(决策树) ## 工具脚本 - data/seed-templates/build_all.py: 合并 9 个 JSON 成 00-all.json
76 lines
2.3 KiB
JSON
76 lines
2.3 KiB
JSON
{
|
|
"name": "软件 / 应用故障排查",
|
|
"category": "software",
|
|
"description": "员工软件装不上、闪退、license 过期、版本不兼容、Office/PS/财务软件等",
|
|
"estimated_time": 8,
|
|
"difficulty": 2,
|
|
"tags": ["软件", "Office", "安装", "闪退", "license", "财务"],
|
|
"root_node": {
|
|
"id": "fc-soft-1",
|
|
"type": "step",
|
|
"label": "确认软件名 + 版本(让员工截图)",
|
|
"status": "pending",
|
|
"children": [
|
|
{
|
|
"id": "fc-soft-2",
|
|
"type": "decision",
|
|
"label": "员工是否有管理员权限安装?",
|
|
"yes_branch": {
|
|
"id": "fc-soft-3",
|
|
"type": "step",
|
|
"label": "【管理员】继续自助排查:",
|
|
"children": [
|
|
{
|
|
"id": "fc-soft-4",
|
|
"type": "step",
|
|
"label": "装不上:检查系统版本兼容性 + 关杀毒软件 + 管理员运行"
|
|
},
|
|
{
|
|
"id": "fc-soft-5",
|
|
"type": "step",
|
|
"label": "闪退:看 Windows 事件日志 + 找 crash dump"
|
|
},
|
|
{
|
|
"id": "fc-soft-6",
|
|
"type": "step",
|
|
"label": "license 过期:走 IT 资产流程申请续期(申请单见知识库)"
|
|
}
|
|
]
|
|
},
|
|
"no_branch": {
|
|
"id": "fc-soft-7",
|
|
"type": "step",
|
|
"label": "【普通员工】坐席远程协助安装:",
|
|
"children": [
|
|
{
|
|
"id": "fc-soft-8",
|
|
"type": "step",
|
|
"label": "常用软件清单(从软件中心/SCCM):Office、Adobe、Foxmail、企微"
|
|
},
|
|
{
|
|
"id": "fc-soft-9",
|
|
"type": "step",
|
|
"label": "非常用软件:需走软件申请流程(部门主管审批 → IT 评估)"
|
|
},
|
|
{
|
|
"id": "fc-soft-10",
|
|
"type": "decision",
|
|
"label": "远程能否解决?",
|
|
"yes_branch": {
|
|
"id": "fc-soft-11",
|
|
"type": "step",
|
|
"label": "回访确认"
|
|
},
|
|
"no_branch": {
|
|
"id": "fc-soft-12",
|
|
"type": "step",
|
|
"label": "升级二线:对应软件负责人"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|