fix 显示当前factory,排序

This commit is contained in:
2024-03-24 21:34:51 +08:00
parent fc1db456ba
commit f76d9212bc
4 changed files with 20 additions and 3 deletions

View File

@@ -51,7 +51,9 @@ public class EnumsController : ControllerBase
Key = fd,
Value = (int)item.GetValue(null)
};
}).ToList()
})
.OrderBy(x => x.Value)
.ToList()
};
})
.ToList();
@@ -66,9 +68,10 @@ public class EnumsController : ControllerBase
Name = type,
Data = g.AsEnumerable().Select(x => new KeyValueDto
{
Key = x.Code,
Value = x.Display
Key = x.Display,
Value = x.Code
})
.OrderBy(x => x.Value)
.ToList()
};
});
@@ -97,6 +100,7 @@ public class EnumsController : ControllerBase
Value = (int)item.GetValue(null)
};
})
.OrderBy(x => x.Value)
.ToList()
};
}