From 83f80fd96c154191722c1ed0dce3c92a92b997fa Mon Sep 17 00:00:00 2001 From: zou Date: Thu, 20 Aug 2026 23:07:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(F006):=20=E8=A1=8C=E4=B8=9A=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=87=E5=88=B0=E4=BC=81=E4=B8=9A=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=89=80=E5=B1=9E=E8=A1=8C=E4=B8=9A=20type=3D5=20+=20=E6=94=BE?= =?UTF-8?q?=E5=AE=BD=E5=B1=82=E7=BA=A7=E5=88=B05=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/other/category/CategoryDeepListView.vue | 8 ++++---- src/router/index.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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)