diff --git a/src/modules/other/category/CategoryDeepListView.vue b/src/modules/other/category/CategoryDeepListView.vue index a7eabc0..e79145c 100644 --- a/src/modules/other/category/CategoryDeepListView.vue +++ b/src/modules/other/category/CategoryDeepListView.vue @@ -3,7 +3,7 @@ * F006 行业/资讯分类 - 树形增删改完整版 (2026-08-18 从只读升级为可交付) * * 复用 CategoryGoodListView(商品分类) 树形 CRUD 范式 + 企业/用户列表新版 UI 标准 - * props.type: 1=行业 3=资讯分类 (保持现状数据源) + * props.type: 5=行业(企业认证所属行业) 3=资讯分类 * * 后端端点 (ApiCategoryController /other/category): * GET list?type= 平铺列表 (前端按 pid 组装树; categoryDeepPageList 返回平铺不组装, 勿用) @@ -35,7 +35,7 @@ interface Category { } const props = defineProps<{ type?: number; title?: string }>() -const TITLES: Record = { 1: '行业管理', 3: '资讯分类' } +const TITLES: Record = { 5: '行业管理', 3: '资讯分类' } const pageTitle = computed(() => props.title || TITLES[props.type ?? 1] || '分类管理') const catType = computed(() => props.type ?? 1) @@ -111,7 +111,7 @@ const editForm = reactive({ id: '', name: '', level: 1, pid: '0', sort: 0, statu function onAdd(parent?: Category) { editMode.value = 'add' - const lvl = parent ? Math.min(parent.level + 1, 3) : 1 + const lvl = parent ? Math.min(parent.level + 1, 5) : 1 editForm.id = '' editForm.pid = parent?.id || '0' editForm.name = '' @@ -233,7 +233,7 @@ onMounted(load)