tenant-binding.svg 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <svg xmlns="http://www.w3.org/2000/svg" width="1280" height="760" viewBox="0 0 1280 760" role="img" aria-label="租户管理绑定默认业务库示意图">
  2. <defs>
  3. <filter id="shadow" x="-10%" y="-10%" width="120%" height="130%">
  4. <feDropShadow dx="0" dy="10" stdDeviation="12" flood-color="#0f172a" flood-opacity="0.14"/>
  5. </filter>
  6. </defs>
  7. <rect width="1280" height="760" fill="#f5f7fb"/>
  8. <rect x="42" y="42" width="1196" height="676" rx="10" fill="#ffffff" stroke="#d8dee9" filter="url(#shadow)"/>
  9. <rect x="42" y="42" width="1196" height="56" rx="10" fill="#111827"/>
  10. <text x="74" y="78" fill="#ffffff" font-size="22" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">租户管理</text>
  11. <rect x="74" y="130" width="1110" height="266" rx="8" fill="#ffffff" stroke="#e2e8f0"/>
  12. <rect x="74" y="130" width="1110" height="44" fill="#f1f5f9"/>
  13. <text x="100" y="158" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">租户名称</text>
  14. <text x="300" y="158" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">负责人</text>
  15. <text x="500" y="158" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">业务数据源</text>
  16. <text x="790" y="158" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">状态</text>
  17. <text x="950" y="158" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">操作</text>
  18. <rect x="92" y="202" width="1074" height="56" rx="7" fill="#f8fafc" stroke="#e2e8f0"/>
  19. <text x="100" y="236" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">默认租户</text>
  20. <text x="300" y="236" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">管理员</text>
  21. <rect x="494" y="214" width="118" height="28" rx="14" fill="#f1f5f9"/>
  22. <text x="512" y="233" fill="#64748b" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">主库回退</text>
  23. <rect x="782" y="214" width="56" height="28" rx="14" fill="#dcfce7"/>
  24. <text x="796" y="233" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">启用</text>
  25. <text x="950" y="236" fill="#2563eb" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">编辑</text>
  26. <rect x="92" y="282" width="1074" height="56" rx="7" fill="#eff6ff" stroke="#bfdbfe"/>
  27. <text x="100" y="316" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">租户 A</text>
  28. <text x="300" y="316" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">张三</text>
  29. <rect x="494" y="294" width="150" height="28" rx="14" fill="#dbeafe"/>
  30. <text x="512" y="313" fill="#1d4ed8" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">租户 A 业务库</text>
  31. <rect x="782" y="294" width="56" height="28" rx="14" fill="#dcfce7"/>
  32. <text x="796" y="313" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">启用</text>
  33. <text x="950" y="316" fill="#2563eb" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">编辑</text>
  34. <rect x="312" y="430" width="656" height="250" rx="10" fill="#ffffff" stroke="#cbd5e1" filter="url(#shadow)"/>
  35. <text x="344" y="466" fill="#111827" font-size="18" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">编辑租户</text>
  36. <line x1="344" y1="492" x2="936" y2="492" stroke="#e2e8f0"/>
  37. <text x="344" y="526" fill="#0f172a" font-size="16" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">业务数据源</text>
  38. <text x="344" y="552" fill="#64748b" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">未配置时 forge-business 模块按主库回退执行。</text>
  39. <text x="344" y="600" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">默认业务库</text>
  40. <rect x="452" y="578" width="410" height="38" rx="6" fill="#f8fafc" stroke="#2563eb"/>
  41. <text x="470" y="602" fill="#0f172a" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">租户 A 业务库 (tenant_biz_demo)</text>
  42. <rect x="780" y="634" width="82" height="34" rx="6" fill="#2563eb"/>
  43. <text x="806" y="656" fill="#ffffff" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">保存</text>
  44. <path d="M952 316 C1048 392, 1008 546, 862 596" fill="none" stroke="#2563eb" stroke-width="3" stroke-dasharray="8 8"/>
  45. <circle cx="952" cy="316" r="6" fill="#2563eb"/>
  46. <text x="78" y="686" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">保存后,租户表会记录 default_business_datasource_id 与 default_business_datasource_code。</text>
  47. </svg>