BasicLayout.razor 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. @namespace wispro.sp.webclient
  2. @inherits LayoutComponentBase
  3. <AntDesign.ProLayout.BasicLayout Logo="@("images/小美logo-64-64.png")"
  4. MenuData="_menuData" Theme="MenuTheme.Light" Layout="AntDesign.ProLayout.Layout.Mix">
  5. <RightContentRender>
  6. <Menu Mode=MenuMode.Horizontal Theme="MenuTheme.Dark">
  7. <MenuItem Key="message">
  8. <div>
  9. <a href="#">
  10. <Badge Count="5" Size="small">
  11. <Icon Type="mail"></Icon><span style="color:white">我的消息</span>
  12. </Badge>
  13. </a>
  14. </div>
  15. </MenuItem>
  16. <SubMenu TitleTemplate=@sub1Title>
  17. <MenuItem Key="setting:1" icon="setting">我的信息</MenuItem>
  18. <MenuItem Key="setting:2" icon="key">修改密码</MenuItem>
  19. </SubMenu>
  20. </Menu>
  21. </RightContentRender>
  22. <ChildContent>
  23. @Body
  24. </ChildContent>
  25. <FooterRender>
  26. <FooterView Copyright="2021 Ant Design Blazor" Links="Links"></FooterView>
  27. </FooterRender>
  28. </AntDesign.ProLayout.BasicLayout>
  29. @code
  30. {
  31. RenderFragment sub1Title =
  32. @<Template>
  33. <Icon Type="user" Theme="outline"></Icon>
  34. 我的配置
  35. <Icon Type="down" />
  36. </Template>;
  37. private readonly MenuDataItem[] _menuData =
  38. {
  39. new MenuDataItem
  40. {
  41. Path = "/",
  42. Name = "首页",
  43. Key = "index",
  44. Icon = "home",
  45. },
  46. new MenuDataItem
  47. {
  48. Path = "/FetchData",
  49. Name = "我的绩效",
  50. Key = "FetchData",
  51. Icon = "ordered-list",
  52. },
  53. new MenuDataItem
  54. {
  55. Path = "/UploadData",
  56. Name = "上传绩效文档",
  57. Key = "upload",
  58. Icon = "upload",
  59. },
  60. new MenuDataItem
  61. {
  62. Name = "设置",
  63. Key = "staffManager",
  64. Icon = "setting",
  65. Children= new MenuDataItem[]
  66. {
  67. new MenuDataItem
  68. {
  69. Path ="/StaffList",
  70. Name ="账号管理",
  71. Key= "staff",
  72. Icon = ""
  73. },
  74. new MenuDataItem
  75. {
  76. Path ="/StaffGrade",
  77. Name ="代理人系数设定",
  78. Key= "sg",
  79. Icon = ""
  80. },
  81. new MenuDataItem
  82. {
  83. Path ="/VerifyCeofficient",
  84. Name ="核稿系数设定",
  85. Key="vc",
  86. Icon = ""
  87. }
  88. ,
  89. new MenuDataItem
  90. {
  91. Path ="/VerifyCeofficient",
  92. Name ="案件难度系数设定",
  93. Key="vc",
  94. Icon = ""
  95. }
  96. }
  97. }
  98. };
  99. public LinkItem[] Links { get; set; } =
  100. {
  101. new LinkItem
  102. {
  103. Key = "威世博官网",
  104. Title = "深圳威世博",
  105. Href = "https://www.weishibo.cn/",
  106. BlankTarget = true,
  107. },
  108. new LinkItem
  109. {
  110. Key = "patentics",
  111. Title = "Patentics数据库",
  112. Href = "https://www.patentics.com/",
  113. BlankTarget = true,
  114. },
  115. new LinkItem
  116. {
  117. Key = "合享数据库",
  118. Title = "合享数据库",
  119. Href = "https://www.incopat.com/intelLib/node/initIntelligentLib",
  120. BlankTarget = true,
  121. },
  122. new LinkItem
  123. {
  124. Key = "zhihuiya",
  125. Title = "智慧芽数据库",
  126. Href = "https://account.zhihuiya.com/",
  127. BlankTarget = true,
  128. }
  129. };
  130. }