- ) : (
- filteredSubstrates.map((substrate) => (
-
-
-
-
- {substrate.name}
-
-
- {substrate.code}
-
-
-
- {substrate.description?.trim() || '未填写说明'}
-
-
-
- {substrate.densityKgM3 ? `${substrate.densityKgM3} kg/m³` : '未填密度'}
-
-
-
+ ) : (
+
+ {filteredSubstrates.map((substrate) => (
+
+
+ {substrate.name}
+
+
+ {substrate.code}
+ {substrate.densityKgM3 ? {substrate.densityKgM3} kg/m³ : null}
- ))
- )}
+
+
+
+ ))}
-
-
-
-
材质分类筛选
-
- 先选分类再维护具体饰面;也可以查看全部。
-
-
-
-
- {materialCategories.map((category) => (
-
- ))}
-
+
+
+ {materialCategories.map((category) => (
+
+ ))}
-
-
-
饰面 / 花色资料
-
- 分类与饰面在同一页面维护,当前共 {filteredFinishes.length} 条结果。
-
+ {groupedFinishes.length === 0 ? (
+
+
+
暂无饰面花色
+
点击上方「新建饰面」添加第一条记录
-
- {groupedFinishes.length === 0 ? (
-
- 当前筛选下暂无饰面 / 花色
-
- ) : (
- groupedFinishes.map((group, groupIndex) => (
-
0 && 'border-t border-apple-separator pt-4')}
- >
-
-
-
-
- {group.category.name}
-
-
- {group.finishes.length} 种
-
-
-
- {group.category.id !== 'uncategorized' ? (
-
-
-
-
- ) : null}
+ ) : (
+
+ {groupedFinishes.map((group, groupIndex) => (
+
0 && 'border-t border-apple-separator pt-4')}
+ >
+
+
+
+ {group.category.name}
+
+
+ {group.finishes.length}
+
-
- {group.finishes.map((finish) => (
-
+
- ))}
-
+
+
+
setDeleteTarget({ type: 'category', id: group.category.id, name: group.category.name })}
+ className="rounded-full p-1.5 text-apple-label-secondary hover:bg-apple-bg-secondary hover:text-apple-red transition"
+ >
+
+
+
+ ) : null}
- ))
- )}
+
+ {group.finishes.map((finish) => (
+
+
+
+ {finish.name}
+
+
openEditFinishModal(finish)}
+ className="rounded-full p-1.5 text-apple-label-secondary hover:bg-apple-bg-secondary hover:text-apple-label-primary transition"
+ >
+
+
+
setDeleteTarget({ type: 'finish', id: finish.id, name: finish.name })}
+ className="rounded-full p-1.5 text-apple-label-secondary hover:bg-apple-bg-secondary hover:text-apple-red transition"
+ >
+
+
+
+ ))}
+
+
+ ))}
-
+ )}
>
)}
>
diff --git a/furniture-3d-system/src/lib/open-product/platform-api.ts b/furniture-3d-system/src/lib/open-product/platform-api.ts
index 566dbe31..9b1c8801 100644
--- a/furniture-3d-system/src/lib/open-product/platform-api.ts
+++ b/furniture-3d-system/src/lib/open-product/platform-api.ts
@@ -170,7 +170,7 @@ export async function importAssetCad(input: ImportAssetCadPayload): Promise
{
return requestPlatform('/api/asset-center/substrates', {
method: 'POST',