private object GetDutyList() { var data = _SysRoleService.GetListBykeyword(); Dictionary <string, object> dictionary = new Dictionary <string, object>(); foreach (var item in data) { var fieldItem = new { encode = item.EnCode, fullname = item.FullName }; dictionary.Add(item.Id, fieldItem); } return(dictionary); }