接单平台分类管理完善:抢单大厅分类筛选与分类 CRUD
- 抢单大厅新增分类 Tab 筛选(仅显示启用分类,支持按分类查询工单) - 管理端分类面板支持编辑、启用/停用切换、删除(被工单/规则引用时禁止删除) - 后端工单列表支持 categoryId 筛选,大厅接口返回分类列表
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiGet, apiPost } from '@/lib/http'
|
||||
import { apiDelete, apiGet, apiPost } from '@/lib/http'
|
||||
import type {
|
||||
WorkCategory,
|
||||
WorkOrder,
|
||||
@@ -43,6 +43,12 @@ export function saveAdminWorkCategory(payload: {
|
||||
)
|
||||
}
|
||||
|
||||
export function deleteAdminWorkCategory(categoryId: number) {
|
||||
return apiDelete<{ deleted: boolean }>(
|
||||
`/api/v1/admin/worker-platform/categories/${categoryId}`,
|
||||
)
|
||||
}
|
||||
|
||||
export function saveAdminWorkerLevel(payload: {
|
||||
levelKey: string
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user