BasicLayout.razor 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. }
  78. },
  79. new MenuDataItem
  80. {
  81. Name="专案管理",
  82. Key="ProjectManager",
  83. Icon ="line-chart",
  84. Children= new MenuDataItem[]
  85. {
  86. new MenuDataItem
  87. {
  88. Name="我的专案",
  89. Key="myProject",
  90. Path="/Project/MyProjects",
  91. Icon ="user",
  92. },
  93. //new MenuDataItem
  94. //{
  95. // Name="专案工作内容",
  96. // Key="ProjectWorkContent",
  97. // Path="/Project/WorkContent",
  98. // Icon ="search",
  99. //},
  100. new MenuDataItem
  101. {
  102. Name="专案查询",
  103. Key="ProjectSearch",
  104. Path="/Project/ProjectSearch",
  105. Icon ="search",
  106. },
  107. }
  108. },
  109. new MenuDataItem
  110. {
  111. Name = "报表管理",
  112. Key = "ReportManage",
  113. Icon = "dashboard",
  114. Children= new MenuDataItem[]
  115. {
  116. new MenuDataItem
  117. {
  118. Path ="/Report/SingleChart",
  119. Name ="申诉单选统计",
  120. Key= "appealType",
  121. Icon = "pie-chart"
  122. },
  123. new MenuDataItem
  124. {
  125. Path ="/Report/AppealTrend",
  126. Name ="申诉趋势统计",
  127. Key= "appealTrend",
  128. Icon = "line-chart"
  129. }
  130. }
  131. },
  132. new MenuDataItem
  133. {
  134. Name = "基本资料管理",
  135. Key = "baseResource",
  136. Icon = "setting",
  137. Children= new MenuDataItem[]
  138. {
  139. //new MenuDataItem
  140. //{
  141. // Path ="/StaffList",
  142. // Name ="账号管理",
  143. // Key= "staff",
  144. // Icon = ""
  145. //},
  146. new MenuDataItem
  147. {
  148. Path ="/Department",
  149. Name ="部门管理",
  150. Key= "dept",
  151. Icon = "team"
  152. },
  153. new MenuDataItem
  154. {
  155. Path ="/StaffGrade",
  156. Name ="代理人系数设定",
  157. Key= "sg",
  158. Icon = "ci"
  159. },
  160. new MenuDataItem
  161. {
  162. Path ="/CustomerList",
  163. Name ="客户信息管理",
  164. Key="customer",
  165. Icon = "solution"
  166. }
  167. }
  168. },
  169. new MenuDataItem
  170. {
  171. Path ="/Workflow/Manage",
  172. Name ="流程管理",
  173. Key= "wfManage",
  174. Icon = "apartment"
  175. }
  176. };
  177. public LinkItem[] Links { get; set; } =
  178. {
  179. new LinkItem
  180. {
  181. Key = "威世博官网",
  182. Title = "深圳威世博",
  183. Href = "https://www.weishibo.cn/",
  184. BlankTarget = true,
  185. },
  186. new LinkItem
  187. {
  188. Key = "patentics",
  189. Title = "Patentics数据库",
  190. Href = "https://www.patentics.com/",
  191. BlankTarget = true,
  192. },
  193. new LinkItem
  194. {
  195. Key = "合享数据库",
  196. Title = "合享数据库",
  197. Href = "https://www.incopat.com/intelLib/node/initIntelligentLib",
  198. BlankTarget = true,
  199. },
  200. new LinkItem
  201. {
  202. Key = "zhihuiya",
  203. Title = "智慧芽数据库",
  204. Href = "https://account.zhihuiya.com/",
  205. BlankTarget = true,
  206. }
  207. };
  208. }