export const SEX: SelectNode[] = [ { value: 0, label: "男", }, { value: 1, label: "女", }, ]; export const IDENTITY: SelectNode[] = [ { label: "公安", value: "police" }, { label: "项目经理", value: "project_manager" }, ] export const getLabelByEnumValue = (enums: SelectNode[], value: any): string => { for (let i = 0; i < enums.length; i++) { if (enums[i].value === value) { return enums[i].label } } return '-' }