art-management-fronted/School_Task1.md

12 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

【开发需求】
1. 功能扩展:在前端页面 `@src/views/art/school/index.vue` 的院校列表操作列中,新增子表操作按钮(院校名称管理、校区管理、专业管理等),按钮需绑定弹窗触发事件。
2. 组件适配:基于已完成的子模块基础代码(路径:`src/views/art/school/modules/` 下 school-campus、school-college 等所有子组件统一调整组件渲染形态为弹窗样式需符合现有项目的弹窗UI规范。
3. 数据关联实现列表按钮点击时将当前行的院校ID作为入参传递至对应子模块弹窗确保子模块接口调用时携带该关联ID完成子表数据与主表院校的关联管理。
4. 接口对接子模块需对接指定的TS接口文件路径`src/service/api/art/` 下 school-campus.ts、school-college.ts 等并引用对应的TS类型定义文件路径`src/typings/api/` 下 art.school-campus.api.d.ts、art.school-college.api.d.ts 等),保证类型校验与接口调用的规范性。
【文件路径清单】
- 主列表页面:@src/views/art/school/index.vue
- 子模块组件src/views/art/school/modules/school-campus/college/detail/dorm/enroll-plan/major/major-tag/media/name/tag
- 接口层文件src/service/api/art/school-campus.ts/college.ts/detail.ts/dorm.ts/enroll-plan.ts/major-tag.ts/major.ts/media.ts/name.ts/tag.ts
- 类型定义文件src/typings/api/art.school-campus.api.d.ts/college.api.d.ts/detail.api.d.ts/dorm.api.d.ts/enroll-plan.api.d.ts/major-tag.api.d.ts/major.api.d.ts/media.api.d.ts/name.api.d.ts/tag.api.d.ts/art.school.api.d.ts