Welcome.razor 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @using System.Text.RegularExpressions
  2. @using wispro.sp.web.Components
  3. @page "/Home"
  4. @attribute [Authorize]
  5. <PageContainer>
  6. <Breadcrumb>
  7. <Breadcrumb>
  8. <BreadcrumbItem><Icon Type="home" />首页</BreadcrumbItem>
  9. </Breadcrumb>
  10. </Breadcrumb>
  11. <Content>
  12. <div class="pageHeaderContent__b__0">
  13. <div class="avatar">
  14. <Avatar size="large" src="https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png" />
  15. </div>
  16. <div class="content">
  17. @if (_CurrentUser != null)
  18. {
  19. <div class="contentTitle">
  20. @(_CurrentUser.Name)好, 祝您一天愉快!
  21. </div>
  22. <div>
  23. 深圳威世博代理事务所 | 工作地:深圳
  24. </div>
  25. }
  26. </div>
  27. </div>
  28. </Content>
  29. <ExtraContent>
  30. @if (HandlingMonth != null)
  31. {
  32. <div class="statItem">
  33. <span>【@HandlingMonth.Year-@HandlingMonth.Month】月数据正在处理中,您有<a href="/MyCaseList">@waitingHandleItems</a>笔绩效数据需要处理!</span>
  34. </div>
  35. }
  36. <div class="statItem">
  37. <span>您的总绩效数据有:<a href="/MyCaseList">@allItems </a> </span>
  38. </div>
  39. </ExtraContent>
  40. <ChildContent>
  41. <Row Gutter="24">
  42. <AntDesign.Col Xl="24" Lg="24" Md="24" Sm="24" Xs="24">
  43. <Card BodyStyle="padding: 0px;"
  44. Class="activeCard"
  45. Title="信息动态">
  46. <AntList TItem="AppealRecord"
  47. DataSource="@AppealRecords"
  48. Class="activitiesList"
  49. Size="large"
  50. ItemLayout="ListItemLayout.Horizontal"
  51. >
  52. <ListItem>
  53. <ListItemMeta Avatar="@context.Creater.Name" Description="@(context.ReviewTime.HasValue?context.ReviewTime.Value.ToFriendlyDisplay():context.CreateTime.ToFriendlyDisplay())">
  54. <TitleTemplate>
  55. <span>
  56. <span class="event">
  57. @if (context.ReviewTime.HasValue)
  58. {
  59. if (context.CreaterId == _CurrentUser.Userid)
  60. {
  61. <span>(@context.Reviewer.Name 在 @context.ReviewTime.Value.ToFriendlyDisplay() 审核了你提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name")</span> }
  62. else
  63. {
  64. if (context.ReviewerId != _CurrentUser.Userid)
  65. {
  66. <span>(您在 @context.CreateTime.ToFriendlyDisplay()提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name,@context.Reviewer.Name 已于 @context.ReviewTime.Value.ToFriendlyDisplay() 审核完成"</span>
  67. }
  68. }
  69. }
  70. else
  71. {
  72. if (context.CreaterId == _CurrentUser.Userid)
  73. {
  74. <span>您在 @context.CreateTime.ToFriendlyDisplay() 提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name ,正在等待 @context.Reviewer.Name 审核!"</span>}
  75. else
  76. {
  77. <span>@context.Creater.Name 在 @context.CreateTime.ToFriendlyDisplay() 提交的 @(context.Item==null?"":context.Item.CaseNo) @context.Type.Name ,请您尽快<Button Danger Type="@ButtonType.Link" OnClick="()=>ShowModel(context)">审核</Button>!</span>
  78. }
  79. }
  80. </span>
  81. </span>
  82. </TitleTemplate>
  83. </ListItemMeta>
  84. </ListItem>
  85. </AntList>
  86. </Card>
  87. </AntDesign.Col>
  88. @*<AntDesign.Col Xl="8" Lg="24" Md="24" Sm="24" Xs="24">
  89. <Card Style="margin-bottom: 24px;"
  90. Title="绩效数据统计">
  91. <div class="chart">
  92. <wispro.sp.web.Components.Radar HasLegend="false" />
  93. </div>
  94. </Card>
  95. </AntDesign.Col>*@
  96. </Row>
  97. </ChildContent>
  98. </PageContainer>