BasicLayout.razor 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. @namespace wispro.sp.web
  2. @inherits LayoutComponentBase
  3. @using Microsoft.AspNetCore.Components.Authorization
  4. <CascadingAuthenticationState>
  5. <AuthorizeView>
  6. <Authorized>
  7. <AntDesign.ProLayout.BasicLayout
  8. Logo="@("images/小美logo-64-64.png")"
  9. MenuData="_menuData"
  10. Theme="MenuTheme.Light"
  11. Layout="AntDesign.ProLayout.Layout.Mix">
  12. <RightContentRender>
  13. <wispro.sp.web.Components.RightContent />
  14. </RightContentRender>
  15. <ChildContent>
  16. @Body
  17. </ChildContent>
  18. <FooterRender>
  19. <FooterView Copyright="2021 小美知识产权集团" Links="Links"></FooterView>
  20. </FooterRender>
  21. </AntDesign.ProLayout.BasicLayout>
  22. </Authorized>
  23. <NotAuthorized>
  24. <wispro.sp.web.Pages.LoginPages />
  25. </NotAuthorized>
  26. </AuthorizeView>
  27. </CascadingAuthenticationState>
  28. @code
  29. {
  30. RenderFragment sub1Title =
  31. @<Template>
  32. <Icon Type="user" Theme="outline"></Icon>
  33. 我的配置
  34. <Icon Type="down" />
  35. </Template>;
  36. RenderFragment myPerformanceIcon =
  37. @<svg class="icon" width="1em" height="1em" viewBox="0 0 1050 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
  38. <path fill="#333333" d="M699.09839799 697.494468l39.86160901-49.764855a441.633001 441.633001 0 0 0-116.272762-67.103021A305.726491 305.726491 0 0 0 794.334504 305.710196 305.769427 305.769427 0 1 0 333.917489 569.577055c-181.889 55.034004-314.3117 224.004251-314.3117 423.911405h63.747022a378.992331 378.992331 0 0 1 378.991332-379.034269c87.289945 0 169.989729 29.577931 236.753256 83.040277zM246.456799 305.710196a242.06534199 242.06534199 0 1 1 484.13068299 0 242.06534199 242.06534199 0 0 1-484.13068299 0z" /><path fill="#333333" d="M791.23212601 591.973685l-10.96366501 62.76848 138.28596501 24.096099-238.49466201 150.313045-76.32628-79.640342-285.795187 212.78496699 38.077268 51.12383001 240.66343-179.21099001 73.43558699 76.62283801 277.67828101-175.047193-29.493058 126.387692 62.087495 14.448473 56.437911-241.937532z" />
  39. </svg>;
  40. private readonly MenuDataItem[] _menuData =
  41. {
  42. new MenuDataItem
  43. {
  44. Path = "/Home",
  45. Name = "首页",
  46. Key = "index",
  47. Icon = "home",
  48. },
  49. new MenuDataItem
  50. {
  51. Name="绩效管理",
  52. Key="PerformanceManager",
  53. Icon ="line-chart",
  54. Children= new MenuDataItem[]
  55. {
  56. new MenuDataItem
  57. {
  58. Name="我的绩效",
  59. Key="MyPerformance",
  60. Path="/MyCaselist",
  61. Icon ="user",
  62. },
  63. new MenuDataItem
  64. {
  65. Name="绩效查询",
  66. Key="performanceSearch",
  67. Path="/CaseManager",
  68. Icon ="search",
  69. },
  70. new MenuDataItem
  71. {
  72. Name="申诉记录",
  73. Key="appealRecords",
  74. Path="/AppealRecords",
  75. Icon ="message",
  76. },
  77. new MenuDataItem
  78. {
  79. Name="级别调整计算",
  80. Key="Level",
  81. Path="/LevelStatistics",
  82. Icon ="message",
  83. }
  84. }
  85. },
  86. new MenuDataItem
  87. {
  88. Name="专案管理",
  89. Key="ProjectManager",
  90. Icon ="line-chart",
  91. Children= new MenuDataItem[]
  92. {
  93. new MenuDataItem
  94. {
  95. Name="我的专案",
  96. Key="myProject",
  97. Path="/Project/MyProjects",
  98. Icon ="user",
  99. },
  100. //new MenuDataItem
  101. //{
  102. // Name="专案工作内容",
  103. // Key="ProjectWorkContent",
  104. // Path="/Project/WorkContent",
  105. // Icon ="search",
  106. //},
  107. new MenuDataItem
  108. {
  109. Name="专案查询",
  110. Key="ProjectSearch",
  111. Path="/Project/ProjectSearch",
  112. Icon ="search",
  113. },
  114. }
  115. },
  116. new MenuDataItem
  117. {
  118. Name = "报表管理",
  119. Key = "ReportManage",
  120. Icon = "dashboard",
  121. Children= new MenuDataItem[]
  122. {
  123. new MenuDataItem
  124. {
  125. Path ="/Report/SingleChart",
  126. Name ="申诉单选统计",
  127. Key= "appealType",
  128. Icon = "pie-chart"
  129. },
  130. new MenuDataItem
  131. {
  132. Path ="/Report/AppealTrend",
  133. Name ="申诉趋势统计",
  134. Key= "appealTrend",
  135. Icon = "line-chart"
  136. },
  137. new MenuDataItem
  138. {
  139. Path ="/Report/StaticsTrend",
  140. Name ="绩效统计",
  141. Key= "StaticsTrend",
  142. Icon = "line-chart"
  143. }
  144. }
  145. },
  146. new MenuDataItem
  147. {
  148. Name = "基本资料管理",
  149. Key = "baseResource",
  150. Icon = "setting",
  151. Children= new MenuDataItem[]
  152. {
  153. //new MenuDataItem
  154. //{
  155. // Path ="/StaffList",
  156. // Name ="账号管理",
  157. // Key= "staff",
  158. // Icon = ""
  159. //},
  160. new MenuDataItem
  161. {
  162. Path ="/Department",
  163. Name ="部门管理",
  164. Key= "dept",
  165. Icon = "team"
  166. },
  167. new MenuDataItem
  168. {
  169. Path ="/StaffGrade",
  170. Name ="代理人系数设定",
  171. Key= "sg",
  172. Icon = "ci"
  173. },
  174. new MenuDataItem
  175. {
  176. Path ="/CustomerList",
  177. Name ="客户信息管理",
  178. Key="customer",
  179. Icon = "solution"
  180. }
  181. }
  182. },
  183. new MenuDataItem
  184. {
  185. Path ="/Workflow/Manage",
  186. Name ="流程管理",
  187. Key= "wfManage",
  188. Icon = "apartment"
  189. }
  190. };
  191. public LinkItem[] Links { get; set; } =
  192. {
  193. new LinkItem
  194. {
  195. Key = "威世博官网",
  196. Title = "深圳威世博",
  197. Href = "https://www.weishibo.cn/",
  198. BlankTarget = true,
  199. },
  200. new LinkItem
  201. {
  202. Key = "patentics",
  203. Title = "Patentics数据库",
  204. Href = "https://www.patentics.com/",
  205. BlankTarget = true,
  206. },
  207. new LinkItem
  208. {
  209. Key = "合享数据库",
  210. Title = "合享数据库",
  211. Href = "https://www.incopat.com/intelLib/node/initIntelligentLib",
  212. BlankTarget = true,
  213. },
  214. new LinkItem
  215. {
  216. Key = "zhihuiya",
  217. Title = "智慧芽数据库",
  218. Href = "https://account.zhihuiya.com/",
  219. BlankTarget = true,
  220. }
  221. };
  222. }