实现提交门户前端:表单渲染器与我的工单

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

@linuxsuren-fs is already working on this.

Since Nov 14, 2026.

  • #23 by @linuxsuren-fs — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript

Research direction

Read the frontend architecture in #5, the template package field types in #4, and the backend endpoint contracts in #12–#15; inspect the #23 pull request to see what work is already underway. Implement the schema driven portal flow across form rendering, submission, and ticket list and detail views. Done when both #19 templates complete submit, view, reply, and confirm close, and vue-tsc -b && vite build passes.

Written by the indexing model from the issue text.

Description

help wanted P0

Background

提交门户面向所有登录用户(含 requester)。前端架构见 #5,模板包机制见 #4。门户页面由 schema 驱动渲染,不为任何场景手写表单页。

Technical requirement

  • FormRenderer 组件:输入 form_schema,渲染 Element Plus 表单;字段类型映射 #4 类型集(string → input、textarea → textarea、select / multiselect、boolean → switch、date / datetime、number、attachments → 上传组件对接 #15);
  • 前端校验与后端同源(required / max_length / min / max / pattern / max_count),提交前本地校验,后端 VALIDATION_FAILED 时展示逐字段错误;
  • 门户首页:已启用类型的选择卡片(名称 + 图标 + view_config 的 portal 标题与描述)→ 进入对应表单;
  • 提交成功页:展示 view_config 的 success_text 与工单号,提供「查看我的工单」入口;
  • 我的工单:列表(我创建的,含状态徽标、工单号、创建时间)+ 详情页:
    • 表单值与内置字段按 detail_groups 分组展示;
    • TimelineList(自己的工单无内部备注,#14 已过滤);
    • 回复输入框;
    • StateActions:按详情返回的可用 transitions 渲染按钮(如「确认解决」「重新打开」),调用 transitions 端点;
  • 主题:租户主色与 logo 生效于整个门户区;
  • 分页遵循契约,查询条件变化时 page 重置为 1。

Expect

  • 用 #19 的种子模板包做端到端验证:IT 报障与设备维修两个模板完整走「提交 → 查看 → 回复 → 确认关闭」;
  • vue-tsc -b && vite build 通过。

Potential TODO list

  • FormRenderer + 字段类型映射 + 校验
  • 门户首页(类型卡片)
  • 提交流程与成功页
  • 我的工单列表 / 详情
  • TimelineList + 回复 + StateActions

依赖

#9(骨架);#12~#15(后端端点)。

Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/tick-flow

All issues in LinuxSuRen/tick-flow

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.