BasicLayout.razor 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 = "baseResource",
  56. Icon = "setting",
  57. Children= new MenuDataItem[]
  58. {
  59. new MenuDataItem
  60. {
  61. Path ="/StaffList",
  62. Name ="账号管理",
  63. Key= "staff",
  64. Icon = ""
  65. },
  66. new MenuDataItem
  67. {
  68. Path ="/Department",
  69. Name ="部门管理",
  70. Key= "dept",
  71. Icon = ""
  72. },
  73. new MenuDataItem
  74. {
  75. Path ="/StaffGrade",
  76. Name ="代理人系数设定",
  77. Key= "sg",
  78. Icon = ""
  79. },
  80. new MenuDataItem
  81. {
  82. Path ="/CustomerList",
  83. Name ="客户信息管理",
  84. Key="customer",
  85. Icon = ""
  86. }
  87. }
  88. },
  89. new MenuDataItem
  90. {
  91. Path ="/Workflow/Manage",
  92. Name ="流程管理",
  93. Key= "wfManage",
  94. Icon = "apartment"
  95. }
  96. };
  97. public LinkItem[] Links { get; set; } =
  98. {
  99. new LinkItem
  100. {
  101. Key = "威世博官网",
  102. Title = "深圳威世博",
  103. Href = "https://www.weishibo.cn/",
  104. BlankTarget = true,
  105. },
  106. new LinkItem
  107. {
  108. Key = "patentics",
  109. Title = "Patentics数据库",
  110. Href = "https://www.patentics.com/",
  111. BlankTarget = true,
  112. },
  113. new LinkItem
  114. {
  115. Key = "合享数据库",
  116. Title = "合享数据库",
  117. Href = "https://www.incopat.com/intelLib/node/initIntelligentLib",
  118. BlankTarget = true,
  119. },
  120. new LinkItem
  121. {
  122. Key = "zhihuiya",
  123. Title = "智慧芽数据库",
  124. Href = "https://account.zhihuiya.com/",
  125. BlankTarget = true,
  126. }
  127. };
  128. }