datasource-config.svg 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.16"/>
  5. </filter>
  6. </defs>
  7. <rect width="1280" height="760" fill="#f5f7fb"/>
  8. <rect x="40" y="36" width="1200" height="688" rx="10" fill="#ffffff" stroke="#d8dee9" filter="url(#shadow)"/>
  9. <rect x="40" y="36" width="1200" height="58" rx="10" fill="#111827"/>
  10. <text x="72" y="72" fill="#ffffff" font-size="22" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">数据源管理</text>
  11. <rect x="1080" y="51" width="120" height="30" rx="6" fill="#2563eb"/>
  12. <text x="1104" y="71" fill="#ffffff" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">新增数据源</text>
  13. <rect x="70" y="122" width="1120" height="86" rx="8" fill="#f8fafc" stroke="#e2e8f0"/>
  14. <text x="92" y="156" fill="#334155" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">用途</text>
  15. <rect x="142" y="136" width="170" height="34" rx="6" fill="#ffffff" stroke="#cbd5e1"/>
  16. <text x="160" y="158" fill="#0f172a" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">租户业务</text>
  17. <text x="340" y="156" fill="#64748b" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">只展示可被租户绑定的业务库配置</text>
  18. <rect x="70" y="236" width="1120" height="306" rx="8" fill="#ffffff" stroke="#e2e8f0"/>
  19. <rect x="70" y="236" width="1120" height="44" fill="#f1f5f9"/>
  20. <text x="92" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">数据源名称</text>
  21. <text x="258" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">数据源编码</text>
  22. <text x="410" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">用途</text>
  23. <text x="536" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">只读</text>
  24. <text x="640" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">写入</text>
  25. <text x="744" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">DDL</text>
  26. <text x="840" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">风险</text>
  27. <text x="980" y="264" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">状态</text>
  28. <rect x="88" y="304" width="1084" height="56" rx="7" fill="#eff6ff" stroke="#bfdbfe"/>
  29. <text x="92" y="338" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif">租户 A 业务库</text>
  30. <text x="258" y="338" fill="#0f172a" font-size="15" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">tenant_biz_demo</text>
  31. <rect x="402" y="316" width="84" height="28" rx="14" fill="#dbeafe"/>
  32. <text x="418" y="335" fill="#1d4ed8" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">租户业务</text>
  33. <rect x="528" y="316" width="48" height="28" rx="14" fill="#dcfce7"/>
  34. <text x="540" y="335" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">否</text>
  35. <rect x="626" y="316" width="62" height="28" rx="14" fill="#dcfce7"/>
  36. <text x="642" y="335" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">允许</text>
  37. <rect x="730" y="316" width="62" height="28" rx="14" fill="#f1f5f9"/>
  38. <text x="746" y="335" fill="#64748b" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">禁止</text>
  39. <rect x="832" y="316" width="48" height="28" rx="14" fill="#dcfce7"/>
  40. <text x="846" y="335" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">低</text>
  41. <rect x="970" y="316" width="56" height="28" rx="14" fill="#dcfce7"/>
  42. <text x="984" y="335" fill="#15803d" font-size="13" font-family="Arial, 'PingFang SC', sans-serif">启用</text>
  43. <rect x="724" y="406" width="430" height="218" rx="10" fill="#ffffff" stroke="#cbd5e1" filter="url(#shadow)"/>
  44. <text x="750" y="440" fill="#111827" font-size="18" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">新增数据源</text>
  45. <text x="750" y="478" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">数据源编码</text>
  46. <rect x="850" y="458" width="260" height="34" rx="6" fill="#f8fafc" stroke="#93c5fd"/>
  47. <text x="866" y="480" fill="#0f172a" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">tenant_biz_demo</text>
  48. <text x="750" y="526" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">用途范围</text>
  49. <rect x="850" y="506" width="260" height="34" rx="6" fill="#f8fafc" stroke="#93c5fd"/>
  50. <text x="866" y="528" fill="#0f172a" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">租户业务</text>
  51. <text x="750" y="574" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">运行写入</text>
  52. <rect x="850" y="554" width="86" height="34" rx="17" fill="#22c55e"/>
  53. <text x="878" y="576" fill="#ffffff" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">允许</text>
  54. <rect x="946" y="554" width="86" height="34" rx="17" fill="#f1f5f9"/>
  55. <text x="974" y="576" fill="#64748b" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">禁止</text>
  56. <path d="M295 354 C410 448, 585 524, 724 520" fill="none" stroke="#2563eb" stroke-width="3" stroke-dasharray="8 8"/>
  57. <circle cx="295" cy="354" r="6" fill="#2563eb"/>
  58. <text x="92" y="650" fill="#334155" font-size="16" font-family="Arial, 'PingFang SC', sans-serif" font-weight="700">关键要求</text>
  59. <text x="92" y="680" fill="#475569" font-size="14" font-family="Arial, 'PingFang SC', sans-serif">数据源编码必须和 dynamic-datasource dsKey 一致;用途范围选择“租户业务”。</text>
  60. </svg>