mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-14 21:23:47 +08:00
发布v2.15.1版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
14
web/src/enums/deptEnum.ts
Normal file
14
web/src/enums/deptEnum.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// 部门类型
|
||||
export enum DeptTypeEnum {
|
||||
// 公司
|
||||
Company = 'company',
|
||||
|
||||
// 租户
|
||||
Tenant = 'tenant',
|
||||
|
||||
// 商户
|
||||
Merchant = 'merchant',
|
||||
|
||||
// 用户
|
||||
User = 'user',
|
||||
}
|
||||
@@ -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',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
export enum RoleEnum {
|
||||
// 管理员
|
||||
ADMIN = 'admin',
|
||||
|
||||
// 普通用户
|
||||
NORMAL = 'normal',
|
||||
}
|
||||
Reference in New Issue
Block a user