ui-richness-L2-list-moderate.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>L2 · 规范内轻增强列表</title>
  7. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
  8. <link rel="stylesheet" href="ui-richness-shared.css" />
  9. </head>
  10. <body>
  11. <div class="demo-banner">
  12. <div>
  13. <span class="level-tag level-L2">L2 适度</span>
  14. <strong>规范内轻增强</strong> — 不改列表范式,补齐规范已有要素
  15. </div>
  16. <a href="ui-richness-index.html">← 返回对比入口</a>
  17. </div>
  18. <div class="page-wrap">
  19. <header class="page-head">
  20. <h1>客户管理</h1>
  21. <p class="page-desc">维护客户档案、联系人与结算信息。列表支持按名称、编码、状态筛选;双击行可查看详情。</p>
  22. </header>
  23. <section class="panel">
  24. <div class="panel-top">
  25. <h2 class="title-bar-heading">客户列表</h2>
  26. </div>
  27. <div class="filter-block">
  28. <div class="filter-grid">
  29. <div class="filter-field"><label>关键词</label><input class="input" placeholder="客户名称/编码" /></div>
  30. <div class="filter-field"><label>客户类型</label><select class="select"><option>全部</option><option>医院</option><option>机构</option></select></div>
  31. <div class="filter-field"><label>状态</label><select class="select"><option>全部</option><option>正常</option><option>停用</option></select></div>
  32. <div class="filter-field"><label>所属区域</label><select class="select"><option>全部</option><option>华东 / 上海</option></select></div>
  33. </div>
  34. <div class="filter-actions-row">
  35. <span class="filter-hint">Enter 键可快速查询;区域下拉展示本级名称,表格展示全路径。</span>
  36. <div class="filter-actions-end">
  37. <button class="btn btn-ghost" type="button">
  38. <svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 109-9"/><path d="M3 3v5h5"/></svg>
  39. 重置
  40. </button>
  41. <button class="btn btn-main" type="button">
  42. <svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>
  43. 搜索
  44. </button>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="list-toolbar">
  49. <div class="list-toolbar-row">
  50. <span>已选 <span class="sel-num">2</span> 项</span>
  51. <button class="btn btn-main" type="button">
  52. <svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>
  53. 新增客户
  54. </button>
  55. <button class="btn btn-ghost" type="button">
  56. <svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6"/></svg>
  57. 批量删除
  58. </button>
  59. <button class="btn btn-ghost" type="button">
  60. <svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>
  61. 导出
  62. </button>
  63. </div>
  64. </div>
  65. <div class="list-body">
  66. <table class="data-table">
  67. <thead>
  68. <tr>
  69. <th style="width:48px">☐</th>
  70. <th>序号</th>
  71. <th>客户名称</th>
  72. <th>客户编码</th>
  73. <th>类型</th>
  74. <th>状态</th>
  75. <th>所属区域</th>
  76. <th>创建时间</th>
  77. <th style="min-width:200px">操作</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <tr>
  82. <td>☑</td><td>1</td><td>上海市第一人民医院</td><td>CUS-001</td>
  83. <td><span class="tag info">医院</span></td>
  84. <td><span class="tag success">正常</span></td>
  85. <td>华东 / 上海 / 黄浦</td><td>2026-01-10 09:00</td>
  86. <td>
  87. <button class="btn btn-op primary" type="button">
  88. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
  89. 查看
  90. </button>
  91. <button class="btn btn-op" type="button">
  92. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
  93. 编辑
  94. </button>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td>☑</td><td>2</td><td>合肥兴皖生物</td><td>CUS-002</td>
  99. <td><span class="tag muted">机构</span></td>
  100. <td><span class="tag success">正常</span></td>
  101. <td>华东 / 安徽 / 合肥</td><td>2026-02-05 14:30</td>
  102. <td>
  103. <button class="btn btn-op primary" type="button">
  104. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
  105. 查看
  106. </button>
  107. <button class="btn btn-op" type="button">
  108. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
  109. 编辑
  110. </button>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>☐</td><td>3</td><td>测试客户(停用)</td><td>CUS-099</td>
  115. <td><span class="tag muted">机构</span></td>
  116. <td><span class="tag muted">停用</span></td>
  117. <td>华东 / 江苏 / 南京</td><td>2025-12-01 11:00</td>
  118. <td>
  119. <button class="btn btn-op primary" type="button">
  120. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
  121. 查看
  122. </button>
  123. <button class="btn btn-op" type="button">
  124. <svg class="ic" style="width:12px;height:12px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"/><path d="M18.5 2.5a2.12 2.12 0 013 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
  125. 编辑
  126. </button>
  127. </td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <div class="list-pager-bar">共 128 条 · 第 1/13 页</div>
  132. </div>
  133. </section>
  134. <p class="dim-note">
  135. <strong>L2 新增:</strong>page-desc、title-bar-heading 竖条、按钮图标、状态/类型 Tag、操作列图标按钮、四列筛选。
  136. 仍无头像缩略图/进度条/图表——适合作为<strong>批量 CRUD 页</strong>的默认目标档。
  137. <br><strong>对比:</strong><a href="ui-richness-L1-list-plain.html">L1</a> ·
  138. <a href="ui-richness-L3-list-rich.html" style="color:var(--primary-dark)">L3 复合列表</a>
  139. </p>
  140. </div>
  141. </body>
  142. </html>