|
@@ -643,6 +643,12 @@ namespace OASystem.API.Controllers
|
|
|
var enumfiltrates = new string[] { "NoOperation", "Audit", "Login" };
|
|
|
var operations = EnumHelper.GetEnumDescriptions(typeof(OperationEnum), enumfiltrates);
|
|
|
|
|
|
+ var operation1 = new List<dynamic>();
|
|
|
+ foreach (var item in operations)
|
|
|
+ {
|
|
|
+ operation1.Add(new { value = item.Key, text = item.Value });
|
|
|
+ }
|
|
|
+
|
|
|
object userDatas = Array.Empty<object>();
|
|
|
if (dto.UserId == 21)
|
|
|
{
|
|
@@ -654,7 +660,7 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
var data = new {
|
|
|
- operations = operations,
|
|
|
+ operations = operation1,
|
|
|
userDatas = userDatas
|
|
|
};
|
|
|
return Ok(JsonView(data));
|