Files
ccdi/docs/plans/frontend/2026-04-17-base-staff-asset-helper-remove-frontend-implementation.md
2026-04-17 11:04:52 +08:00

1.3 KiB

员工信息页资产提示文案移除前端实施计划

For agentic workers: REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Steps use checkbox (- [ ]) syntax for tracking.

Goal: 移除员工信息页资产信息区域中“员工信息页仅维护员工本人资产”“资产持有人默认为当前员工本人,无需额外填写”的备注展示。

Architecture: 本次仅调整员工信息维护页模板展示,不改动资产表单字段、默认值、提交参数或后端接口。实现上直接删除备注 DOM 和对应样式,保持页面其余交互不变。

Tech Stack: Vue 2, Element UI, JavaScript, Markdown


文件结构与职责

  • ruoyi-ui/src/views/ccdiBaseStaff/index.vue 删除资产信息区域的备注文案和无用样式。

实施步骤

  • 删除资产信息区备注展示块
  • 删除 assets-helper 对应样式,避免残留无用 CSS
  • 运行前端构建确认页面模板调整未引入语法错误

验证

source ~/.nvm/nvm.sh && nvm use 14.21.3 >/dev/null && npm run build:prod

完成标准

  • 员工信息页不再展示上述两条资产备注
  • 资产新增、编辑、提交逻辑保持不变