BasicLayout.razor 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. private readonly MenuDataItem[] _menuData =
  37. {
  38. new MenuDataItem
  39. {
  40. Path = "/Home",
  41. Name = "首页",
  42. Key = "index",
  43. Icon = "home",
  44. },
  45. //new MenuDataItem
  46. //{
  47. // Path = "/StartPerformanceCalculation",
  48. // Name = "开启绩效计算",
  49. // Key = "startCal",
  50. // Icon = "play-circle",
  51. //},
  52. //new MenuDataItem
  53. //{
  54. // Path = "/PerformanceList",
  55. // Name = "我的绩效",
  56. // Key = "PerformanceList",
  57. // Icon = "ordered-list",
  58. //},
  59. new MenuDataItem
  60. {
  61. Name="我的申请案",
  62. Key="appManager",
  63. Icon ="copy",
  64. Path="/MyCaselist",
  65. },
  66. new MenuDataItem
  67. {
  68. Name = "我的专案",
  69. Key = "staffManager",
  70. Icon = "setting",
  71. Children= new MenuDataItem[]
  72. {
  73. new MenuDataItem
  74. {
  75. Path ="/Project/ReadMessage",
  76. Name ="专案点数分配系统通知",
  77. Key= "project_readMsg",
  78. Icon = ""
  79. },
  80. new MenuDataItem
  81. {
  82. Path ="/Project/AssignPoint/1",
  83. Name ="分配专案点数",
  84. Key= "project_assignpoint",
  85. Icon = ""
  86. },
  87. new MenuDataItem
  88. {
  89. Path ="/Project/ReadAssignPointMsg",
  90. Name ="专案点数分配通知阅读",
  91. Key= "ReadAssignPointMsg",
  92. Icon = ""
  93. },
  94. new MenuDataItem
  95. {
  96. Path ="/Project/ConfirmProjectPoint",
  97. Name ="代理人确认",
  98. Key= "project_point_confirm",
  99. Icon = ""
  100. }
  101. }
  102. },
  103. new MenuDataItem
  104. {
  105. Name = "基本资料管理",
  106. Key = "baseResource",
  107. Icon = "setting",
  108. Children= new MenuDataItem[]
  109. {
  110. new MenuDataItem
  111. {
  112. Path ="/StaffList",
  113. Name ="账号管理",
  114. Key= "staff",
  115. Icon = ""
  116. },
  117. new MenuDataItem
  118. {
  119. Path ="/StaffGrade",
  120. Name ="代理人系数设定",
  121. Key= "sg",
  122. Icon = ""
  123. },
  124. new MenuDataItem
  125. {
  126. Path ="/VerifyCeofficient",
  127. Name ="核稿系数设定",
  128. Key="vc",
  129. Icon = ""
  130. }
  131. ,
  132. new MenuDataItem
  133. {
  134. Path ="/VerifyCeofficient",
  135. Name ="案件难度系数设定",
  136. Key="vc",
  137. Icon = ""
  138. },
  139. new MenuDataItem
  140. {
  141. Path ="/CustomerList",
  142. Name ="客户信息管理",
  143. Key="customer",
  144. Icon = ""
  145. }
  146. }
  147. }
  148. };
  149. public LinkItem[] Links { get; set; } =
  150. {
  151. new LinkItem
  152. {
  153. Key = "威世博官网",
  154. Title = "深圳威世博",
  155. Href = "https://www.weishibo.cn/",
  156. BlankTarget = true,
  157. },
  158. new LinkItem
  159. {
  160. Key = "patentics",
  161. Title = "Patentics数据库",
  162. Href = "https://www.patentics.com/",
  163. BlankTarget = true,
  164. },
  165. new LinkItem
  166. {
  167. Key = "合享数据库",
  168. Title = "合享数据库",
  169. Href = "https://www.incopat.com/intelLib/node/initIntelligentLib",
  170. BlankTarget = true,
  171. },
  172. new LinkItem
  173. {
  174. Key = "zhihuiya",
  175. Title = "智慧芽数据库",
  176. Href = "https://account.zhihuiya.com/",
  177. BlankTarget = true,
  178. }
  179. };
  180. }