demo/Pages/Dashboard/Workplace/Index.razor.cs
2024-06-21 16:48:24 +08:00

29 lines
1.0 KiB
C#

using System.Threading.Tasks;
using antblazorpro.Models;
using antblazorpro.Services;
using Microsoft.AspNetCore.Components;
namespace antblazorpro.Pages.Dashboard.Workplace {
public partial class Index {
private readonly EditableLink[] _links =
{
new EditableLink {Title = "Operation 1", Href = ""},
new EditableLink {Title = "Operation 2", Href = ""},
new EditableLink {Title = "Operation 3", Href = ""},
new EditableLink {Title = "Operation 4", Href = ""},
new EditableLink {Title = "Operation 5", Href = ""},
new EditableLink {Title = "Operation 6", Href = ""}
};
private ActivitiesType[] _activities = { };
private NoticeType[] _projectNotice = { };
[Inject] public IProjectService ProjectService { get; set; }
protected override async Task OnInitializedAsync() {
await base.OnInitializedAsync();
_projectNotice = await ProjectService.GetProjectNoticeAsync();
_activities = await ProjectService.GetActivitiesAsync();
}
}
}