| 1234567891011121314151617181920212223242526272829 |
- import { useEnumStore } from '@/stores'
- const { getEnumTypeList, getEnumTypeName, getEnumTypeValue } = useEnumStore()
- /**
- * 获取对应的证件类型列表
- * @returns
- */
- export function getCertificateTypeList() {
- return getEnumTypeList('certificatetype')
- }
- /**
- * 获取对应的证件类型名称
- * @returns
- */
- export function getCertificateTypeCodeName(value: number) {
- const enums = getCertificateTypeList()
- return getEnumTypeName(enums, value)
- }
- /**
- * 获取对应的证件类型名称的值
- * @returns
- */
- export function getCertificateTypeCodeValue(label: string) {
- const enums = getCertificateTypeList()
- return getEnumTypeValue(enums, label)
- }
|