2023-07-06 20:59:22 +08:00
|
|
|
import { EnumValue } from '@/common/Enum';
|
2022-06-17 17:58:35 +08:00
|
|
|
|
2024-05-16 17:26:32 +08:00
|
|
|
export const DbGetDbNamesMode = {
|
|
|
|
|
Auto: EnumValue.of(-1, '实时获取').setTagType('warning'),
|
|
|
|
|
Assign: EnumValue.of(1, '指定库名').setTagType('primary'),
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-06 20:59:22 +08:00
|
|
|
// 数据库sql执行类型
|
|
|
|
|
export const DbSqlExecTypeEnum = {
|
|
|
|
|
Update: EnumValue.of(1, 'UPDATE').setTagColor('#E4F5EB'),
|
|
|
|
|
Delete: EnumValue.of(2, 'DELETE').setTagColor('#F9E2AE'),
|
|
|
|
|
Insert: EnumValue.of(3, 'INSERT').setTagColor('#A8DEE0'),
|
|
|
|
|
Query: EnumValue.of(4, 'QUERY').setTagColor('#A8DEE0'),
|
2024-10-18 17:15:58 +08:00
|
|
|
Ddl: EnumValue.of(5, 'DDL').setTagColor('#F9E2AE'),
|
2023-07-06 20:59:22 +08:00
|
|
|
Other: EnumValue.of(-1, 'OTHER').setTagColor('#F9E2AE'),
|
|
|
|
|
};
|
2024-01-06 22:36:50 +08:00
|
|
|
|
2024-02-29 22:12:50 +08:00
|
|
|
export const DbSqlExecStatusEnum = {
|
|
|
|
|
Success: EnumValue.of(2, '成功').setTagType('success'),
|
|
|
|
|
Fail: EnumValue.of(-2, '失败').setTagType('danger'),
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-06 22:36:50 +08:00
|
|
|
export const DbDataSyncRecentStateEnum = {
|
|
|
|
|
Success: EnumValue.of(1, '成功').setTagType('success'),
|
|
|
|
|
Fail: EnumValue.of(-1, '失败').setTagType('danger'),
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-07 21:46:25 +08:00
|
|
|
export const DbDataSyncLogStatusEnum = {
|
|
|
|
|
Success: EnumValue.of(1, '成功').setTagType('success'),
|
|
|
|
|
Wait: EnumValue.of(2, '同步中').setTagType('primary'),
|
|
|
|
|
Fail: EnumValue.of(-1, '失败').setTagType('danger'),
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-06 22:36:50 +08:00
|
|
|
export const DbDataSyncRunningStateEnum = {
|
|
|
|
|
Success: EnumValue.of(1, '运行中').setTagType('success'),
|
|
|
|
|
Wait: EnumValue.of(2, '待运行').setTagType('primary'),
|
|
|
|
|
Fail: EnumValue.of(3, '已停止').setTagType('danger'),
|
|
|
|
|
};
|
2024-03-28 22:20:39 +08:00
|
|
|
|
|
|
|
|
export const DbTransferRunningStateEnum = {
|
|
|
|
|
Success: EnumValue.of(2, '成功').setTagType('success'),
|
|
|
|
|
Wait: EnumValue.of(1, '执行中').setTagType('primary'),
|
|
|
|
|
Fail: EnumValue.of(-1, '失败').setTagType('danger'),
|
|
|
|
|
Stop: EnumValue.of(-2, '手动终止').setTagType('warning'),
|
|
|
|
|
};
|
2024-10-21 22:27:42 +08:00
|
|
|
|
|
|
|
|
export const DbTransferFileStatusEnum = {
|
|
|
|
|
Running: EnumValue.of(1, '执行中').setTagType('primary'),
|
|
|
|
|
Success: EnumValue.of(2, '成功').setTagType('success'),
|
|
|
|
|
Fail: EnumValue.of(-1, '失败').setTagType('danger'),
|
|
|
|
|
};
|