first commit
This commit is contained in:
31
src/constant/common.ts
Normal file
31
src/constant/common.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
interface LabelValueItem { label: string, value: number, color?: string }
|
||||
interface LabelValueItem2 { label: string, value: string }
|
||||
|
||||
/** @desc 状态 */
|
||||
export const DisEnableStatusList: LabelValueItem[] = [
|
||||
{ label: '启用', value: 1, color: 'green' },
|
||||
{ label: '禁用', value: 2, color: 'red' },
|
||||
]
|
||||
|
||||
/** @desc 性别 */
|
||||
export const GenderList: LabelValueItem[] = [
|
||||
{ label: '男', value: 1 },
|
||||
{ label: '女', value: 2 },
|
||||
{ label: '未知', value: 0 },
|
||||
]
|
||||
|
||||
/** @desc 授权方式 */
|
||||
export const empower: LabelValueItem2[] = [
|
||||
{ label: '本地', value: '1' },
|
||||
{ label: '云端', value: '2' },
|
||||
]
|
||||
|
||||
/** @desc 人员权限 */
|
||||
export const permission: LabelValueItem2[] = [
|
||||
{ label: '人像识别权限', value: 'facePermission' },
|
||||
{ label: '刷卡权限', value: 'idCardPermission' },
|
||||
{ label: '人卡合一权限', value: 'faceAndCardPermission' },
|
||||
{ label: '密码权限', value: 'passwordPermission' },
|
||||
{ label: '人证比对', value: 'idCardFacePermission' },
|
||||
{ label: '二维码权限', value: 'QRCodePermission' },
|
||||
]
|
||||
48
src/constant/file.ts
Normal file
48
src/constant/file.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
export interface FileTypeListItem {
|
||||
name: string
|
||||
value: number
|
||||
icon: string
|
||||
}
|
||||
|
||||
/** 文件分类 */
|
||||
export const FileTypeList: FileTypeListItem[] = [
|
||||
{ name: '全部', value: 0, icon: 'menu-file' },
|
||||
{ name: '图片', value: 2, icon: 'file-image-color' },
|
||||
{ name: '文档', value: 3, icon: 'file-txt' },
|
||||
{ name: '视频', value: 4, icon: 'file-video-color' },
|
||||
{ name: '音频', value: 5, icon: 'file-music' },
|
||||
{ name: '其他', value: 1, icon: 'file-other' },
|
||||
]
|
||||
|
||||
export interface FileExtendNameIconMap {
|
||||
[key: string]: string
|
||||
}
|
||||
|
||||
/** 文件类型图标 Map 映射 */
|
||||
export const FileIcon: FileExtendNameIconMap = {
|
||||
mp3: 'file-music',
|
||||
mp4: 'file-video',
|
||||
dir: 'file-dir',
|
||||
ppt: 'file-ppt',
|
||||
doc: 'file-wps',
|
||||
docx: 'file-wps',
|
||||
xls: 'file-excel',
|
||||
xlsx: 'file-excel',
|
||||
txt: 'file-txt',
|
||||
rar: 'file-rar',
|
||||
zip: 'file-zip',
|
||||
html: 'file-html',
|
||||
css: 'file-css',
|
||||
js: 'file-js',
|
||||
other: 'file-other', // 未知文件
|
||||
}
|
||||
|
||||
/** 图片类型 */
|
||||
export const ImageTypes = ['jpg', 'png', 'gif', 'jpeg']
|
||||
|
||||
/** WPS、Office文件类型 */
|
||||
export const OfficeTypes = ['ppt', 'pptx', 'doc', 'docx', 'xls', 'xlsx', 'pdf']
|
||||
|
||||
export const WordTypes = ['doc', 'docx']
|
||||
|
||||
export const ExcelTypes = ['xls', 'xlsx']
|
||||
25
src/constant/people.ts
Normal file
25
src/constant/people.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
interface LabelValueItem { label: string, value: string, color?: string }
|
||||
|
||||
/** @desc 人员是否注册 */
|
||||
export const guidFlag: LabelValueItem[] = [
|
||||
{ label: '人员未注册', value: '0' },
|
||||
{ label: '人员已注册', value: '1' },
|
||||
]
|
||||
|
||||
/** @desc 人脸是否注册 */
|
||||
export const faceFlag: LabelValueItem[] = [
|
||||
{ label: '人脸未注册', value: '0' },
|
||||
{ label: '人脸已注册', value: '1' },
|
||||
]
|
||||
|
||||
/** @desc 人脸是否注册 */
|
||||
export const cardFlag: LabelValueItem[] = [
|
||||
{ label: '卡号未注册', value: '0' },
|
||||
{ label: '卡号已注册', value: '1' },
|
||||
]
|
||||
|
||||
/** @desc 是否已下发 */
|
||||
export const downFlag: LabelValueItem[] = [
|
||||
{ label: '未下发', value: '0' },
|
||||
{ label: '已下发', value: '1' },
|
||||
]
|
||||
Reference in New Issue
Block a user