generated from ccsens_fe/uni-vue3-template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
571 B
21 lines
571 B
// 性别列表
|
|
export const GENDER_LIST = [
|
|
{ text: '男', value: 0 },
|
|
{ text: '女', value: 1 },
|
|
]
|
|
|
|
/**
|
|
* 根据value获取text 性别
|
|
* @param {number} code gender value
|
|
* @return {string | undefined} 男/女
|
|
*/
|
|
export function GET_GENDER_TEXT_BY_CODE(code: number): string | undefined {
|
|
const target = GENDER_LIST.find(item => item.value === code)
|
|
return target?.text
|
|
}
|
|
|
|
// 急救状态
|
|
export const AID_STATUS = { 0: '创建', 1: '待审核', 2: '审核通过', 3: '审核拒绝' }
|
|
|
|
// 平车状态
|
|
export const CAR_STATUS = { 0: '离线', 1: '在线' }
|
|
|