BasicLayout.razor 5.4 KB

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