This commit is contained in:
孟帅
2024-04-22 23:08:40 +08:00
parent 82483bd7b9
commit e144b12580
445 changed files with 17457 additions and 6708 deletions

14
web/src/enums/deptEnum.ts Normal file
View File

@@ -0,0 +1,14 @@
// 部门类型
export enum DeptTypeEnum {
// 公司
Company = 'company',
// 租户
Tenant = 'tenant',
// 商户
Merchant = 'merchant',
// 用户
User = 'user',
}

View File

@@ -1,35 +1,3 @@
import { Option } from '@/utils/hotgo';
export const switchOptions = [
{
value: 1,
label: '已开启',
},
{
value: 2,
label: '已关闭',
},
].map((s) => {
return s;
});
export const sexOptions = [
{
value: 1,
label: '男',
},
{
value: 2,
label: '女',
},
{
value: 3,
label: '未知',
},
].map((s) => {
return s;
});
export const statusOptions = [
{
value: 1,
@@ -39,22 +7,7 @@ export const statusOptions = [
value: 2,
label: '停用',
},
].map((s) => {
return s;
});
export const hiddenOptions = [
{
value: 1,
label: '是',
},
{
value: 2,
label: '否',
},
].map((s) => {
return s;
});
];
// 操作类
export const statusActions = [
@@ -67,47 +20,3 @@ export const statusActions = [
key: 2,
},
];
// 标签
export const tagOptions = [
{
label: '灰色',
value: 'default',
},
{
label: '主色',
value: 'primary',
},
{
label: '蓝色',
value: 'info',
},
{
label: '绿色',
value: 'success',
},
{
label: '橙色',
value: 'warning',
},
{
label: '红色',
value: 'error',
},
];
// 登录状态
export const loginStatusOptions: Option[] = [
{
value: 1,
label: '成功',
key: 1,
listClass: 'success',
},
{
value: 2,
label: '失败',
key: 2,
listClass: 'warning',
},
];

View File

@@ -1,7 +0,0 @@
export enum RoleEnum {
// 管理员
ADMIN = 'admin',
// 普通用户
NORMAL = 'normal',
}