Business Modules
A standard CRUD module should contain types, an API module, a list page, a save dialog, permission-aware actions, and optional batch/import/export workflows.
Recommended process
- Define explicit row and form interfaces.
- Add list, detail, create, update, delete, batch, and export functions under
src/api. - Build the page with the shared Search and Table components.
- Source enum labels and options from
useDictStore. - Expose
open(row?)from the save dialog and emitsuccessafter saving. - Use
useRowActionsfor edit/delete/more actions. - Use
useBatchOptionsfor selected rows. - Add a backend menu whose
componentmatches a file undersrc/views.
json
{
"path": "/system/department",
"name": "SystemDepartment",
"title": "Departments",
"component": "system/department/index.vue",
"action_list": [
{ "action": "create" },
{ "action": "update" },
{ "action": "delete" }
]
}Validate loading, empty, failure, pagination, permission, repeated submission, deep-link refresh, responsive layout, and both color themes before merging.