fix 显示当前factory,排序
This commit is contained in:
@@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user