From: root Date: Thu, 10 Sep 2026 04:07:23 +0000 (+0800) Subject: style(device-templates): 领域标签改为圆角胶囊、删除说明列、加宽所属领域列 X-Git-Url: http://acesimba.cloud/gitweb/?a=commitdiff_plain;h=93e617cdc6433e58aafe4de5ea5373a7f00f5f71;p=StationBuilder.git style(device-templates): 领域标签改为圆角胶囊、删除说明列、加宽所属领域列 --- diff --git a/app/globals.css b/app/globals.css index bbbb78c..5ceab02 100644 --- a/app/globals.css +++ b/app/globals.css @@ -320,7 +320,9 @@ html,body{font-family:Roboto,"Noto Sans SC","Microsoft YaHei",Arial,sans-serif;f .resource-table th:nth-child(7),.resource-table td:nth-child(7){width:96px}.resource-table th:nth-child(8),.resource-table td:nth-child(8){width:180px} .domain-resource-table th:first-child,.domain-resource-table td:first-child{width:260px;min-width:260px;text-align:left}.domain-resource-table .company-record-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left} .resource-detail>p{margin:8px 0;color:#666;line-height:1.8;white-space:pre-wrap}.resource-detail-image{display:block;width:100%;max-height:220px;object-fit:contain;border:1px solid var(--company-border);background:#f5f5f5;margin-bottom:20px} -.device-resource-table{min-width:860px}.device-resource-table th:nth-child(1),.device-resource-table td:nth-child(1){width:280px;min-width:280px;text-align:left}.device-resource-table th:nth-child(2),.device-resource-table td:nth-child(2){width:auto}.device-resource-table th:nth-child(3),.device-resource-table td:nth-child(3){width:90px;text-align:center}.device-resource-table th:nth-child(4),.device-resource-table td:nth-child(4){width:110px}.device-resource-table th:nth-child(5),.device-resource-table td.domain-cell{width:180px;min-width:140px;text-align:left;white-space:normal}.device-resource-table th:nth-child(6),.device-resource-table td:nth-child(6){width:64px}.device-resource-table .company-record-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left} +.device-resource-table{min-width:820px}.device-resource-table th:nth-child(1),.device-resource-table td:nth-child(1){width:280px;min-width:280px;text-align:left}.device-resource-table th:nth-child(2),.device-resource-table td:nth-child(2){width:90px;text-align:center}.device-resource-table th:nth-child(3),.device-resource-table td:nth-child(3){width:110px;text-align:left}.device-resource-table th:nth-child(4),.device-resource-table td.domain-cell{width:240px;min-width:180px;text-align:left;white-space:normal}.device-resource-table th:nth-child(5),.device-resource-table td:nth-child(5){width:64px;text-align:center}.device-resource-table .company-record-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left} +.domain-tag-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px} +.ant-tag.tag-new{display:inline-flex;align-items:center;height:24px;line-height:21px;border-radius:12px;padding:0 10px;font-size:13px;white-space:nowrap;margin:0} .resource-name-cell{display:flex;align-items:center;gap:12px;min-width:0}.resource-name-cell>img,.resource-placeholder{flex:none;width:48px;height:36px;border:1px solid var(--company-border);background:#f5f5f5;object-fit:cover;border-radius:2px}.resource-placeholder{display:grid;place-items:center;color:#999}.resource-name-cell .company-record-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left} .resource-point-list{border-top:1px solid #eee}.resource-point-list>div{height:40px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}.resource-point-list span{color:var(--company-muted)}.resource-point-list>p{color:var(--company-muted)} .resource-back{height:44px;display:flex;align-items:center;border-bottom:1px solid var(--company-border);margin:0 0 16px}.resource-back .text-button{margin:0} diff --git a/app/page.tsx b/app/page.tsx index eb38708..197316c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2503,7 +2503,7 @@ function CompanyDeviceTemplates({notify,onViewCpPrompt}:{notify:(m:string)=>void ].map(item=>)}
- {loading?
加载中…
:<>{filtered.slice((pageIndex-1)*pageSize,pageIndex*pageSize).map(row=>setPreview(row)}>)}
设备模板名称说明采集点配置状态所属领域操作
{row.description||"—"}{pointCount(row)}{pointCount(row)>0?"已配置":"待配置"}{domainNames(row).map(n=>)}e.stopPropagation()}>},{key:"delete",label:"删除",danger:true,icon:}],onClick:({key})=>key==="edit"?setOpenId(row.id):remove(row)}}>}/>
{filtered.length===0&&
暂无符合条件的设备模板
}
{filtered.length} / 总数
} + {loading?
加载中…
:<>{filtered.slice((pageIndex-1)*pageSize,pageIndex*pageSize).map(row=>setPreview(row)}>)}
设备模板名称采集点配置状态所属领域操作
{pointCount(row)}{pointCount(row)>0?"已配置":"待配置"}
{domainNames(row).map(n=>)}
e.stopPropagation()}>},{key:"delete",label:"删除",danger:true,icon:}],onClick:({key})=>key==="edit"?setOpenId(row.id):remove(row)}}>}/>
{filtered.length===0&&
暂无符合条件的设备模板
}
{filtered.length} / 总数
}
setPreview(null)} extra={preview&&}> {preview&&
{preview.image_path&&{preview.name}/}

基础信息

模板名称
{preview.name}
采集点数量
{pointCount(preview)}
配置状态
{pointCount(preview)>0?"已配置":"待配置"}

模板说明

{preview.description||"暂无说明"}

采集点预览

{(preview.collection_points||[]).slice(0,8).map((cp:any)=>
{cp.name}{cp.unit||cp.value_range||"—"}
)}{pointCount(preview)===0&&

暂无采集点

}
}