public async Task OnAdd()
        {
            var result = await DrawerSvr.CreateDialogAsync <IndexLibraryEdit, Guid?, IndexLibraryDto>(null, title : "新增指标", width : 450);

            if (result != null)
            {
                datas.Add(result);
            }
        }
Beispiel #2
0
        async void OnLogin()
        {
            var result = await DrawerSvr.CreateDialogAsync <Login, object, UserDto>(null, title : $"登录", width : 450);

            if (result != null)
            {
                ((AuthProvider)AuthProvider).MarkUserAsAuthenticated(result);
            }
        }
Beispiel #3
0
        public async Task OnAdd()
        {
            var result = await DrawerSvr.CreateDialogAsync <JobItemEdit, int?, MessageModel <TasksQzDto> >(null, title : "新增任务项", width : 750);

            if (result != null)
            {
                result.response.AppName = _appItems.Find(a => a.Id == result.response.AppId)?.Name;
                datas.Add(result.response);
            }
        }
        public async Task OnEdit(IndexLibraryDto model)
        {
            var result = await DrawerSvr.CreateDialogAsync <IndexLibraryEdit, Guid?, IndexLibraryDto>(model.IndexLibraryId, title : $"编辑指标 {model.Name}", width : 450);

            if (result != null)
            {
                var index = datas.IndexOf(model);
                datas[index] = result;
            }
        }
Beispiel #5
0
        public async Task OnEdit(TasksQzDto model)
        {
            var result = await DrawerSvr.CreateDialogAsync <JobItemEdit, int?, MessageModel <TasksQzDto> >(model.Id, title : $"编辑指标 {model.Name}", width : 750);

            if (result != null)
            {
                var index = datas.IndexOf(model);
                result.response.AppName = _appItems.Find(a => a.Id == result.response.AppId)?.Name;
                datas[index]            = result.response;
            }
        }
 public async void OnChart(IndexLibraryDto model)
 {
     await DrawerSvr.CreateDialogAsync <IndexLibraryChart, Guid, object>(model.IndexLibraryId, title : $"指标分析 {model.Name}", width : 450);
 }