Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

108 строки
9.4 KiB

  1. <aside class="sidebar" id="sidebarApp">
  2. <div class="sidebar-logo" onclick="window.location.href='/admin/dashboard.html'" style="cursor:pointer;">
  3. <img src="/static/images/logo.png" alt="肠愈同行">
  4. <span class="sidebar-title">肠愈同行患者关爱</span>
  5. </div>
  6. <nav class="sidebar-menu">
  7. {# 控制台 #}
  8. <div class="menu-group">
  9. <a class="menu-item {% if currentPage == 'dashboard' %}active{% endif %}" href="/admin/dashboard.html">
  10. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="currentColor"/><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" fill="currentColor"/></svg></span>
  11. <span>控制台</span>
  12. </a>
  13. </div>
  14. {# 患者管理 #}
  15. {% if isSuperAdmin or (userPermissions and 'patient' in userPermissions) %}
  16. <div class="menu-group">
  17. <a class="menu-item {% if currentPage == 'patient' %}active{% endif %}" href="/admin/patient.html">
  18. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M784 352H240c-17.7 0-32 14.3-32 32v480c0 17.7 14.3 32 32 32h544c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32zM512 704c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z" fill="currentColor"/><path d="M512 64C335.3 64 192 207.3 192 384h64c0-141.2 114.8-256 256-256s256 114.8 256 256h64c0-176.7-143.3-320-320-320z" fill="currentColor"/></svg></span>
  19. <span>患者管理</span>
  20. </a>
  21. </div>
  22. {% endif %}
  23. {# 瘤种管理 #}
  24. {% if isSuperAdmin or (userPermissions and 'tag' in userPermissions) %}
  25. <div class="menu-group">
  26. <a class="menu-item {% if currentPage == 'tag' %}active{% endif %}" href="/admin/tag.html">
  27. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M483.2 32.4L108.8 406.8c-25 25-25 65.6 0 90.6l418.4 418.4c25 25 65.6 25 90.6 0l374.4-374.4c12-12 18.8-28.4 18.8-45.2V128c0-35.2-28.8-64-64-64H528.4c-16.8 0-33.2 6.8-45.2 18.4zM736 352c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" fill="currentColor"/></svg></span>
  28. <span>瘤种管理</span>
  29. </a>
  30. </div>
  31. {% endif %}
  32. {# 送检样本管理 #}
  33. {% if isSuperAdmin or (userPermissions and 'tag' in userPermissions) %}
  34. <div class="menu-group">
  35. <a class="menu-item {% if currentPage == 'sample-type' %}active{% endif %}" href="/admin/sample_type.html">
  36. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M840 192h-56v-72c0-13.3-10.7-24-24-24H264c-13.3 0-24 10.7-24 24v72h-56c-13.3 0-24 10.7-24 24v656c0 13.3 10.7 24 24 24h656c13.3 0 24-10.7 24-24V216c0-13.3-10.7-24-24-24zM304 168h416v24H304v-24zm480 680H240V264h544v584z" fill="currentColor"/><path d="M400 440c0-61.9 50.1-112 112-112s112 50.1 112 112-50.1 112-112 112-112-50.1-112-112zm112 48c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48z" fill="currentColor"/><path d="M368 640h288v48H368z" fill="currentColor"/></svg></span>
  37. <span>样本类型</span>
  38. </a>
  39. </div>
  40. {% endif %}
  41. {# 医院管理 #}
  42. {% if isSuperAdmin or (userPermissions and 'tag' in userPermissions) %}
  43. <div class="menu-group">
  44. <a class="menu-item {% if currentPage == 'hospital' %}active{% endif %}" href="/admin/hospital.html">
  45. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M832 312H696V176c0-13.3-10.7-24-24-24H352c-13.3 0-24 10.7-24 24v136H192c-13.3 0-24 10.7-24 24v512c0 13.3 10.7 24 24 24h640c13.3 0 24-10.7 24-24V336c0-13.3-10.7-24-24-24zM400 224h224v88H400v-88zM784 824H240V384h544v440z" fill="currentColor"/><path d="M548 488h-72v76h-76v72h76v76h72v-76h76v-72h-76z" fill="currentColor"/></svg></span>
  46. <span>医院管理</span>
  47. </a>
  48. </div>
  49. {% endif %}
  50. {# 内容管理 #}
  51. {% if isSuperAdmin or (userPermissions and 'content' in userPermissions) %}
  52. <div class="menu-group">
  53. <a class="menu-item {% if currentPage == 'content' %}active{% endif %}" href="/admin/content.html">
  54. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V136h560v752z" fill="currentColor"/><path d="M320 304h384c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm0 192h384c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm0 192h256c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16z" fill="currentColor"/></svg></span>
  55. <span>内容管理</span>
  56. </a>
  57. </div>
  58. {% endif %}
  59. {# 下载管理 #}
  60. {% if isSuperAdmin or (userPermissions and 'patient:export' in userPermissions) %}
  61. <div class="menu-group">
  62. <a class="menu-item {% if currentPage == 'export_task' %}active{% endif %}" href="/admin/export_task.html">
  63. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M544 864V672h128L512 480 352 672h128v192H320V672h-64v224c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V672h-64v192H544z" fill="currentColor"/><path d="M832 96H192c-17.7 0-32 14.3-32 32v256h64V160h576v256h64V128c0-17.7-14.3-32-32-32z" fill="currentColor"/></svg></span>
  64. <span>下载管理</span>
  65. </a>
  66. </div>
  67. {% endif %}
  68. {# 系统设置 #}
  69. {% set hasSysPerm = isSuperAdmin or (userPermissions and ('setting:system:user' in userPermissions or 'setting:system:role' in userPermissions or 'setting:system:log' in userPermissions or 'setting:system:sms' in userPermissions)) %}
  70. {% if hasSysPerm %}
  71. <div class="menu-group">
  72. <div class="menu-group-title">系统管理</div>
  73. {% if isSuperAdmin or (userPermissions and 'setting:system:user' in userPermissions) %}
  74. <a class="menu-item {% if currentPage == 'sys-user' %}active{% endif %}" href="/admin/system/user.html">
  75. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 4.4-77.2 33.4-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9c54.4 54.8 83.4 127.1 87.8 204.3.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" fill="currentColor"/></svg></span>
  76. <span>用户管理</span>
  77. </a>
  78. {% endif %}
  79. {% if isSuperAdmin or (userPermissions and 'setting:system:role' in userPermissions) %}
  80. <a class="menu-item {% if currentPage == 'sys-role' %}active{% endif %}" href="/admin/system/role.html">
  81. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M832 464H192c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 344H232V536h560v272z" fill="currentColor"/><path d="M512 624c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64z" fill="currentColor"/><path d="M736 464V288c0-123.7-100.3-224-224-224S288 164.3 288 288v176h64V288c0-88.2 71.8-160 160-160s160 71.8 160 160v176h64z" fill="currentColor"/></svg></span>
  82. <span>角色权限</span>
  83. </a>
  84. {% endif %}
  85. {% if isSuperAdmin or (userPermissions and 'setting:system:log' in userPermissions) %}
  86. <a class="menu-item {% if currentPage == 'sys-log' %}active{% endif %}" href="/admin/system/log.html">
  87. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" fill="currentColor"/><path d="M312 544h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-320h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/></svg></span>
  88. <span>操作日志</span>
  89. </a>
  90. {% endif %}
  91. {% if isSuperAdmin or (userPermissions and 'setting:system:sms' in userPermissions) %}
  92. <a class="menu-item {% if currentPage == 'sys-sms' %}active{% endif %}" href="/admin/system/sms.html">
  93. <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" fill="currentColor"/><path d="M460 560h104c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H460c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/><path d="M348 416h328c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H348c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 288h328c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H348c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/></svg></span>
  94. <span>短信记录</span>
  95. </a>
  96. {% endif %}
  97. </div>
  98. {% endif %}
  99. </nav>
  100. </aside>