コード例 #1
0
        public override async void Edit()
        {
            if (GridModel == null)
            {
                return;
            }

            try
            {
                UpdateLoading(true, "正在加载数据...");
                var r = await service.GetUserAsync(GridModel.Id);

                if (r.success)
                {
                    GridModel       = r.dynamicObj;
                    SelectPageTitle = "编辑用户信息";
                    SelectPageIndex = 1;
                    base.Edit();
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex.Message);
            }
            finally
            {
                UpdateLoading(false);
            }
        }