Skip to content

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.

  1. Define explicit row and form interfaces.
  2. Add list, detail, create, update, delete, batch, and export functions under src/api.
  3. Build the page with the shared Search and Table components.
  4. Source enum labels and options from useDictStore.
  5. Expose open(row?) from the save dialog and emit success after saving.
  6. Use useRowActions for edit/delete/more actions.
  7. Use useBatchOptions for selected rows.
  8. Add a backend menu whose component matches a file under src/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.

Released under the MIT License