/** @format */ export function getHouseItemColorByType(type: string) { switch (type) { case '未认证': { return 'rgba(44, 180, 249, .79)'; } case '自用': { return 'rgba(45, 193, 153, .79)'; } case '出租': { return 'rgb(254, 172, 173, .79)'; } case '空置': { return 'rgb(151, 162, 174, .79)'; } default: { return 'rgba(45, 193, 153, 0.79)'; } } } export function getPersonLabelByType(type: string) { if ( [ '重病卧床老人', '孤寡空巢老人', '低保苦难对象', '残疾人', '优抚对象', ].includes(type) ) { return 'warning'; } return 'danger'; }