实现提交门户前端:表单渲染器与我的工单
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
- Domain
- frontend, full-stack
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/tick-flow
-
项目门面:logo、README 与仓库 AboutPossibly taken @linuxsuren-fs claimed this 9 days ago. Opendocumentation good first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 20/100
LinuxSuRen/tick-flow#20 ·
-
编写四个内置种子模板包Possibly taken @linuxsuren-fs claimed this 9 days ago. Opengood first issue help wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LinuxSuRen/tick-flow#19 ·
-
实现处理工作台前端:列表、详情与处理动作Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 5/5 Over a week Newbie friendliness 25/100
LinuxSuRen/tick-flow#18 ·
-
实现站内通知与邮件通知Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#16 ·
-
实现附件上传与下载Possibly taken @linuxsuren-fs claimed this 9 days ago. Openhelp wanted P0
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/tick-flow#15 ·
All issues in LinuxSuRen/tick-flow
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
storytold/photocraft#16565 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Inter-Actief/amelink#140 ·
-
area:ui priority:p3 scope:one-piece size:s status:ready type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vetro-protocol/vetro-monorepo#1261 ·
Maintainers usually reply within 1 day
-
area:sessions enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
openchamber/openchamber#7451 · 1 comment ·
Maintainers usually reply within 2 days