Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9005a48bf3 |
+538
-112
@@ -260,16 +260,16 @@
|
||||
"name": "游戏显卡",
|
||||
"icon": "ri-gamepad-line",
|
||||
"key_features": [
|
||||
"memory_gb",
|
||||
"cuda_cores",
|
||||
"price_usd",
|
||||
"fp16_tflops"
|
||||
"memory_size",
|
||||
"shading_units",
|
||||
"launch_price",
|
||||
"fp32"
|
||||
],
|
||||
"feature_labels": {
|
||||
"memory_gb": "显存",
|
||||
"cuda_cores": "CUDA核心",
|
||||
"price_usd": "价格",
|
||||
"fp16_tflops": "FP16性能"
|
||||
"memory_size": "显存容量",
|
||||
"shading_units": "着色单元",
|
||||
"launch_price": "首发价格",
|
||||
"fp32": "FP32算力"
|
||||
},
|
||||
"extra_fields": []
|
||||
},
|
||||
@@ -278,16 +278,16 @@
|
||||
"name": "专业显卡",
|
||||
"icon": "ri-building-line",
|
||||
"key_features": [
|
||||
"memory_gb",
|
||||
"memory_size",
|
||||
"tensor_cores",
|
||||
"memory_bandwidth_gbs",
|
||||
"price_usd"
|
||||
"bandwidth",
|
||||
"launch_price"
|
||||
],
|
||||
"feature_labels": {
|
||||
"memory_gb": "显存",
|
||||
"memory_size": "显存容量",
|
||||
"tensor_cores": "Tensor核心",
|
||||
"memory_bandwidth_gbs": "带宽",
|
||||
"price_usd": "价格"
|
||||
"bandwidth": "带宽",
|
||||
"launch_price": "首发价格"
|
||||
},
|
||||
"extra_fields": []
|
||||
},
|
||||
@@ -296,16 +296,16 @@
|
||||
"name": "数据中心",
|
||||
"icon": "ri-server-line",
|
||||
"key_features": [
|
||||
"memory_gb",
|
||||
"memory_size",
|
||||
"tensor_cores",
|
||||
"memory_bandwidth_gbs",
|
||||
"fp16_tflops"
|
||||
"bandwidth",
|
||||
"fp16_matrix"
|
||||
],
|
||||
"feature_labels": {
|
||||
"memory_gb": "显存",
|
||||
"memory_size": "显存容量",
|
||||
"tensor_cores": "Tensor核心",
|
||||
"memory_bandwidth_gbs": "带宽",
|
||||
"fp16_tflops": "FP16性能"
|
||||
"bandwidth": "带宽",
|
||||
"fp16_matrix": "FP16矩阵算力"
|
||||
},
|
||||
"extra_fields": [
|
||||
{
|
||||
@@ -332,137 +332,208 @@
|
||||
"key": "name",
|
||||
"label": "名称",
|
||||
"type": "text",
|
||||
"description": "GPU名称",
|
||||
"description": "GPU产品名称",
|
||||
"required": true,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "manufacturer",
|
||||
"label": "厂商",
|
||||
"key": "gpu_name",
|
||||
"label": "GPU名称",
|
||||
"type": "text",
|
||||
"description": "制造商",
|
||||
"required": true,
|
||||
"input_style": "normal"
|
||||
"description": "GPU芯片代号,核心芯片型号",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "gpu_variant",
|
||||
"label": "GPU变体型号",
|
||||
"type": "text",
|
||||
"description": "芯片具体版本编号",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "architecture",
|
||||
"label": "架构",
|
||||
"type": "text",
|
||||
"description": "GPU架构,如Ampere、Hopper",
|
||||
"description": "GPU微架构",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "memory_gb",
|
||||
"label": "显存(GB)",
|
||||
"key": "foundry",
|
||||
"label": "晶圆厂",
|
||||
"type": "text",
|
||||
"description": "显存容量",
|
||||
"description": "芯片制造工厂",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "process_type",
|
||||
"label": "工艺类型",
|
||||
"type": "text",
|
||||
"description": "晶体管工艺类型",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "process_size",
|
||||
"label": "工艺节点",
|
||||
"type": "text",
|
||||
"description": "芯片制造制程,x纳米工艺",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "transistors",
|
||||
"label": "晶体管数量",
|
||||
"type": "text",
|
||||
"description": "芯片内晶体管总数",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "density",
|
||||
"label": "晶体管密度",
|
||||
"type": "text",
|
||||
"description": "每平方毫米裸片上晶体管数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "die_size",
|
||||
"label": "裸片面积",
|
||||
"type": "text",
|
||||
"description": "GPU核心硅片面积",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "chip_package",
|
||||
"label": "芯片封装",
|
||||
"type": "text",
|
||||
"description": "芯片封装形式",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "package_size",
|
||||
"label": "封装尺寸",
|
||||
"type": "text",
|
||||
"description": "芯片封装外壳长宽尺寸",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "base_clock",
|
||||
"label": "基础频率",
|
||||
"type": "text",
|
||||
"description": "GPU核心默认基础工作频率",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "boost_clock",
|
||||
"label": "加速频率",
|
||||
"type": "text",
|
||||
"description": "GPU核心可达到的最高睿频",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形处理器芯片基础信息"
|
||||
},
|
||||
{
|
||||
"key": "manufacturer",
|
||||
"label": "厂商",
|
||||
"type": "text",
|
||||
"description": "显卡制造商(NVIDIA/AMD等)",
|
||||
"required": true,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "cuda_cores",
|
||||
"label": "CUDA核心",
|
||||
"key": "release_date",
|
||||
"label": "发布日期",
|
||||
"type": "text",
|
||||
"description": "CUDA核心数量",
|
||||
"description": "产品正式上市发布时间",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "tensor_cores",
|
||||
"label": "Tensor核心",
|
||||
"key": "announced",
|
||||
"label": "官宣日期",
|
||||
"type": "text",
|
||||
"description": "Tensor核心数量",
|
||||
"description": "产品对外公布的时间",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "memory_bandwidth_gbs",
|
||||
"label": "显存带宽(GB/s)",
|
||||
"key": "generation",
|
||||
"label": "产品世代",
|
||||
"type": "text",
|
||||
"description": "显存带宽",
|
||||
"description": "产品系列",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "fp32_tflops",
|
||||
"label": "FP32性能(TF)",
|
||||
"key": "production",
|
||||
"label": "生产状态",
|
||||
"type": "text",
|
||||
"description": "FP32浮点性能",
|
||||
"description": "当前生产状态",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "fp16_tflops",
|
||||
"label": "FP16性能(TF)",
|
||||
"key": "driver_support",
|
||||
"label": "驱动支持状态",
|
||||
"type": "text",
|
||||
"description": "FP16半精度性能",
|
||||
"description": "厂商仍持续维护更新驱动程序",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "int8_perf_tops",
|
||||
"label": "INT8性能(TOPS)",
|
||||
"key": "launch_price",
|
||||
"label": "首发价格",
|
||||
"type": "text",
|
||||
"description": "INT8整数性能",
|
||||
"description": "产品上市首发售价",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "price_usd",
|
||||
"label": "价格($)",
|
||||
"key": "current_price",
|
||||
"label": "当前售价",
|
||||
"type": "text",
|
||||
"description": "参考价格(美元)",
|
||||
"description": "可购买渠道",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "currency",
|
||||
"label": "币种",
|
||||
"key": "bus_interface",
|
||||
"label": "总线接口",
|
||||
"type": "text",
|
||||
"description": "价格币种",
|
||||
"description": "主机与显卡通信总线",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
},
|
||||
{
|
||||
"key": "min_price",
|
||||
"label": "最低价",
|
||||
"type": "text",
|
||||
"description": "最低价格",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
},
|
||||
{
|
||||
"key": "max_price",
|
||||
"label": "最高价",
|
||||
"type": "text",
|
||||
"description": "最高价格",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
},
|
||||
{
|
||||
"key": "price_unit",
|
||||
"label": "价格单位",
|
||||
"type": "text",
|
||||
"description": "价格单位,如万",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
},
|
||||
{
|
||||
"key": "release_year",
|
||||
"label": "发布年份",
|
||||
"type": "text",
|
||||
"description": "发布年份",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
},
|
||||
{
|
||||
"key": "features",
|
||||
"label": "特色",
|
||||
"type": "text",
|
||||
"description": "产品特色/亮点,简短描述",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "official_urls",
|
||||
@@ -470,7 +541,8 @@
|
||||
"type": "json",
|
||||
"description": "产品官网链接,JSON数组格式:[{\"url\":\"https://...\",\"title\":\"...\"}]",
|
||||
"required": false,
|
||||
"input_style": "long"
|
||||
"input_style": "long",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "reference_urls",
|
||||
@@ -478,7 +550,8 @@
|
||||
"type": "json",
|
||||
"description": "参数来源链接,JSON数组格式:[{\"url\":\"https://...\",\"title\":\"...\"}]",
|
||||
"required": false,
|
||||
"input_style": "long"
|
||||
"input_style": "long",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "description",
|
||||
@@ -486,15 +559,368 @@
|
||||
"type": "text",
|
||||
"description": "GPU简介",
|
||||
"required": false,
|
||||
"input_style": "long"
|
||||
"input_style": "long",
|
||||
"category": "显卡产品信息"
|
||||
},
|
||||
{
|
||||
"key": "publish_date",
|
||||
"label": "发布日期",
|
||||
"key": "shading_units",
|
||||
"label": "着色单元",
|
||||
"type": "text",
|
||||
"description": "产品发布日期,格式 YYYY-MM-DD",
|
||||
"description": "GPU着色运算单元总数",
|
||||
"required": false,
|
||||
"input_style": "normal"
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "tmus",
|
||||
"label": "纹理映射单元",
|
||||
"type": "text",
|
||||
"description": "纹理贴图采样单元数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "rops",
|
||||
"label": "光栅输出单元",
|
||||
"type": "text",
|
||||
"description": "光栅化像素输出单元数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "sm_count",
|
||||
"label": "流式多处理器数量",
|
||||
"type": "text",
|
||||
"description": "CUDA流式多处理器SM总数",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "tensor_cores",
|
||||
"label": "张量核心数量",
|
||||
"type": "text",
|
||||
"description": "AI张量运算专用核心数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "rt_cores",
|
||||
"label": "光线追踪核心数量",
|
||||
"type": "text",
|
||||
"description": "实时光线追踪专用核心数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "l1_cache",
|
||||
"label": "一级缓存",
|
||||
"type": "text",
|
||||
"description": "每个SM独立配备",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "l2_cache",
|
||||
"label": "二级缓存",
|
||||
"type": "text",
|
||||
"description": "GPU全局二级缓存总容量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "渲染硬件配置"
|
||||
},
|
||||
{
|
||||
"key": "pixel_rate",
|
||||
"label": "像素填充率",
|
||||
"type": "text",
|
||||
"description": "图形渲染时每秒可输出像素数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "理论算力"
|
||||
},
|
||||
{
|
||||
"key": "texture_rate",
|
||||
"label": "纹理填充率",
|
||||
"type": "text",
|
||||
"description": "图形渲染时每秒可采样纹理单元数量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "理论算力"
|
||||
},
|
||||
{
|
||||
"key": "fp16",
|
||||
"label": "FP16理论算力",
|
||||
"type": "text",
|
||||
"description": "FP16浮点通用理论算力,1:1为完整精度",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "理论算力"
|
||||
},
|
||||
{
|
||||
"key": "fp32",
|
||||
"label": "FP32理论算力",
|
||||
"type": "text",
|
||||
"description": "FP32单精度浮点通用理论算力",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "理论算力"
|
||||
},
|
||||
{
|
||||
"key": "fp64",
|
||||
"label": "FP64理论算力",
|
||||
"type": "text",
|
||||
"description": "FP64双精度浮点通用理论算力,1:64为性能比例",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "理论算力"
|
||||
},
|
||||
{
|
||||
"key": "memory_size",
|
||||
"label": "显存容量",
|
||||
"type": "text",
|
||||
"description": "板载显存总容量",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "显存规格"
|
||||
},
|
||||
{
|
||||
"key": "memory_type",
|
||||
"label": "显存类型",
|
||||
"type": "text",
|
||||
"description": "显存型号,第7代图形显存",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "显存规格"
|
||||
},
|
||||
{
|
||||
"key": "memory_bus",
|
||||
"label": "显存位宽",
|
||||
"type": "text",
|
||||
"description": "显存与GPU之间的数据总线位宽",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "显存规格"
|
||||
},
|
||||
{
|
||||
"key": "bandwidth",
|
||||
"label": "显存带宽",
|
||||
"type": "text",
|
||||
"description": "显存理论最大数据吞吐带宽",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "显存规格"
|
||||
},
|
||||
{
|
||||
"key": "memory_clock",
|
||||
"label": "显存频率",
|
||||
"type": "text",
|
||||
"description": "显存物理时钟,等效数据速率",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "显存规格"
|
||||
},
|
||||
{
|
||||
"key": "fp4",
|
||||
"label": "FP4矩阵算力",
|
||||
"type": "text",
|
||||
"description": "FP4精度下张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "fp6",
|
||||
"label": "FP6矩阵算力",
|
||||
"type": "text",
|
||||
"description": "FP6精度下张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "int8",
|
||||
"label": "INT8矩阵算力",
|
||||
"type": "text",
|
||||
"description": "INT8整数精度张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "fp8",
|
||||
"label": "FP8矩阵算力",
|
||||
"type": "text",
|
||||
"description": "FP8精度下张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "fp16_matrix",
|
||||
"label": "FP16矩阵算力",
|
||||
"type": "text",
|
||||
"description": "FP16精度下张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "bf16",
|
||||
"label": "BF16矩阵算力",
|
||||
"type": "text",
|
||||
"description": "BF16浮点数精度张量矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "tf32",
|
||||
"label": "TF32矩阵算力",
|
||||
"type": "text",
|
||||
"description": "TF32张量浮点精度矩阵理论运算性能",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "sparse_matrix",
|
||||
"label": "稀疏矩阵算力",
|
||||
"type": "text",
|
||||
"description": "稀疏权重时算力可翻倍",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "矩阵算力"
|
||||
},
|
||||
{
|
||||
"key": "vector",
|
||||
"label": "向量计算支持格式",
|
||||
"type": "text",
|
||||
"description": "向量运算支持的数据精度类型",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "数值格式支持"
|
||||
},
|
||||
{
|
||||
"key": "matrix",
|
||||
"label": "矩阵计算支持格式",
|
||||
"type": "text",
|
||||
"description": "矩阵/张量运算支持的数据精度类型",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "数值格式支持"
|
||||
},
|
||||
{
|
||||
"key": "directx",
|
||||
"label": "DirectX支持版本",
|
||||
"type": "text",
|
||||
"description": "支持的DirectX版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "opengl",
|
||||
"label": "OpenGL版本",
|
||||
"type": "text",
|
||||
"description": "支持OpenGL图形接口版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "opencl",
|
||||
"label": "OpenCL版本",
|
||||
"type": "text",
|
||||
"description": "支持OpenCL通用计算接口版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "vulkan",
|
||||
"label": "Vulkan版本",
|
||||
"type": "text",
|
||||
"description": "支持Vulkan跨平台图形API版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "cuda",
|
||||
"label": "CUDA版本",
|
||||
"type": "text",
|
||||
"description": "支持CUDA计算平台版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "shader_model",
|
||||
"label": "着色器模型",
|
||||
"type": "text",
|
||||
"description": "支持Shader Model着色器规范版本",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "图形API与特性"
|
||||
},
|
||||
{
|
||||
"key": "slot_width",
|
||||
"label": "插槽占用宽度",
|
||||
"type": "text",
|
||||
"description": "显卡槽位,占用主板PCIe挡板位个数",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
},
|
||||
{
|
||||
"key": "tdp",
|
||||
"label": "功耗上限",
|
||||
"type": "text",
|
||||
"description": "板卡设计热功耗",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
},
|
||||
{
|
||||
"key": "suggested_psu",
|
||||
"label": "推荐电源",
|
||||
"type": "text",
|
||||
"description": "整机配套推荐电源功率",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
},
|
||||
{
|
||||
"key": "outputs",
|
||||
"label": "视频输出接口",
|
||||
"type": "text",
|
||||
"description": "视频输出接口",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
},
|
||||
{
|
||||
"key": "power_connectors",
|
||||
"label": "供电接口",
|
||||
"type": "text",
|
||||
"description": "供电接口",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
},
|
||||
{
|
||||
"key": "board_number",
|
||||
"label": "板卡型号编号",
|
||||
"type": "text",
|
||||
"description": "PCB板卡内部编号",
|
||||
"required": false,
|
||||
"input_style": "normal",
|
||||
"category": "板卡设计"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -507,6 +507,7 @@
|
||||
<div class="space-y-4">
|
||||
<div><label class="text-sm text-gray-600 mb-1 block">字段名 *</label><input type="text" id="field_key" class="w-full px-3 py-2 border rounded-lg" placeholder="如:context_length"></div>
|
||||
<div><label class="text-sm text-gray-600 mb-1 block">显示名 *</label><input type="text" id="field_label" class="w-full px-3 py-2 border rounded-lg" placeholder="如:上下文长度"></div>
|
||||
<div><label class="text-sm text-gray-600 mb-1 block">字段类别</label><input type="text" id="field_category" class="w-full px-3 py-2 border rounded-lg" placeholder="如:图形处理器芯片基础信息(参数分组,可为空)"></div>
|
||||
<div><label class="text-sm text-gray-600 mb-1 block">字段类型</label><select id="field_type" class="w-full px-3 py-2 border rounded-lg">
|
||||
<option value="text">文本</option>
|
||||
<option value="number">数字</option>
|
||||
@@ -1879,6 +1880,7 @@
|
||||
${field.required ? '<span class="text-red-500">必填</span>' : '可选'}
|
||||
${field.description ? ` | ${field.description}` : ''}
|
||||
</div>
|
||||
${field.category ? `<div class="mt-1"><span class="inline-block px-2 py-0.5 bg-indigo-50 text-indigo-600 border border-indigo-100 rounded text-xs">📁 ${field.category}</span></div>` : ''}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex gap-2 opacity-0 group-hover:opacity-100 transition">
|
||||
@@ -1900,6 +1902,7 @@
|
||||
document.getElementById('fieldModalTitle').textContent = '添加参数字段';
|
||||
document.getElementById('field_key').value = '';
|
||||
document.getElementById('field_label').value = '';
|
||||
document.getElementById('field_category').value = '';
|
||||
document.getElementById('field_type').value = 'text';
|
||||
document.getElementById('field_desc').value = '';
|
||||
document.getElementById('field_required').checked = false;
|
||||
@@ -1915,6 +1918,7 @@
|
||||
document.getElementById('fieldModalTitle').textContent = '编辑参数字段';
|
||||
document.getElementById('field_key').value = field.key || '';
|
||||
document.getElementById('field_label').value = field.label || '';
|
||||
document.getElementById('field_category').value = field.category || '';
|
||||
document.getElementById('field_type').value = field.type || 'text';
|
||||
document.getElementById('field_desc').value = field.description || '';
|
||||
document.getElementById('field_required').checked = field.required || false;
|
||||
@@ -1938,6 +1942,7 @@
|
||||
function saveField() {
|
||||
const key = document.getElementById('field_key').value.trim();
|
||||
const label = document.getElementById('field_label').value.trim();
|
||||
const category = document.getElementById('field_category').value.trim();
|
||||
const type = document.getElementById('field_type').value;
|
||||
const description = document.getElementById('field_desc').value.trim();
|
||||
const required = document.getElementById('field_required').checked;
|
||||
@@ -1948,6 +1953,7 @@
|
||||
}
|
||||
|
||||
const field = { key, label, type, description, required };
|
||||
if (category) field.category = category;
|
||||
|
||||
if (currentFieldTarget === 'subcategory') {
|
||||
// 子类别额外字段
|
||||
|
||||
Reference in New Issue
Block a user