示例#1
0
        public async Task DeleteAsync(object data)
        {
            var confirm = await ConfirmAsync("确认删除该模板工具?");

            if (confirm != MessageBoxResult.Ok)
            {
                return;
            }
            var result = await OnlineTemplateService.DeleteAsync(((OnlineTemplateToolEntity)data).Id);

            //Toast(result);
            await RefreshAsync();
        }
示例#2
0
        public async Task <Task> RefreshAsync()
        {
            if (table == null)
            {
                return(Task.CompletedTask);
            }

            isLoading = true;
            var condition = searchForm.GetValue <OnlineTemplateToolEntity>();

            Lists = await OnlineTemplateService.GetListAsync(condition.Name);

            isLoading = false;
            table.MarkAsRequireRender();
            RequireRender = true;
            StateHasChanged();
            return(Task.CompletedTask);
        }