广丰卷烟厂数采质量分析系统
zhuguifei
2026-04-03 68d0c0d81d4e82145045e24fe1c237107e27621b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { transformRecordToOption } from '@/utils/common';
 
export const GLOBAL_HEADER_MENU_ID = '__GLOBAL_HEADER_MENU__';
 
export const GLOBAL_SIDER_MENU_ID = '__GLOBAL_SIDER_MENU__';
 
export const themeSchemaRecord: Record<UnionKey.ThemeScheme, App.I18n.I18nKey> = {
  light: 'theme.appearance.themeSchema.light',
  dark: 'theme.appearance.themeSchema.dark',
  auto: 'theme.appearance.themeSchema.auto'
};
 
export const themeSchemaOptions = transformRecordToOption(themeSchemaRecord);
 
export const loginModuleRecord: Record<UnionKey.LoginModule, App.I18n.I18nKey> = {
  'pwd-login': 'page.login.pwdLogin.title',
  'code-login': 'page.login.codeLogin.title',
  register: 'page.login.register.title',
  'reset-pwd': 'page.login.resetPwd.title',
  'bind-wechat': 'page.login.bindWeChat.title'
};
 
export const themeLayoutModeRecord: Record<UnionKey.ThemeLayoutMode, App.I18n.I18nKey> = {
  vertical: 'theme.layout.layoutMode.vertical',
  'vertical-mix': 'theme.layout.layoutMode.vertical-mix',
  'vertical-hybrid-header-first': 'theme.layout.layoutMode.vertical-hybrid-header-first',
  horizontal: 'theme.layout.layoutMode.horizontal',
  'top-hybrid-sidebar-first': 'theme.layout.layoutMode.top-hybrid-sidebar-first',
  'top-hybrid-header-first': 'theme.layout.layoutMode.top-hybrid-header-first'
};
 
export const themeLayoutModeOptions = transformRecordToOption(themeLayoutModeRecord);
 
export const themeScrollModeRecord: Record<UnionKey.ThemeScrollMode, App.I18n.I18nKey> = {
  wrapper: 'theme.layout.content.scrollMode.wrapper',
  content: 'theme.layout.content.scrollMode.content'
};
 
export const themeScrollModeOptions = transformRecordToOption(themeScrollModeRecord);
 
export const themeTabModeRecord: Record<UnionKey.ThemeTabMode, App.I18n.I18nKey> = {
  chrome: 'theme.layout.tab.mode.chrome',
  button: 'theme.layout.tab.mode.button',
  slider: 'theme.layout.tab.mode.slider'
};
 
export const themeTabModeOptions = transformRecordToOption(themeTabModeRecord);
 
export const themePageAnimationModeRecord: Record<UnionKey.ThemePageAnimateMode, App.I18n.I18nKey> = {
  'fade-slide': 'theme.layout.content.page.mode.fade-slide',
  fade: 'theme.layout.content.page.mode.fade',
  'fade-bottom': 'theme.layout.content.page.mode.fade-bottom',
  'fade-scale': 'theme.layout.content.page.mode.fade-scale',
  'zoom-fade': 'theme.layout.content.page.mode.zoom-fade',
  'zoom-out': 'theme.layout.content.page.mode.zoom-out',
  none: 'theme.layout.content.page.mode.none'
};
 
export const themePageAnimationModeOptions = transformRecordToOption(themePageAnimationModeRecord);
 
export const DARK_CLASS = 'dark';
 
export const watermarkTimeFormatOptions = [
  { label: 'YYYY-MM-DD HH:mm', value: 'YYYY-MM-DD HH:mm' },
  { label: 'YYYY-MM-DD HH:mm:ss', value: 'YYYY-MM-DD HH:mm:ss' },
  { label: 'YYYY/MM/DD HH:mm', value: 'YYYY/MM/DD HH:mm' },
  { label: 'YYYY/MM/DD HH:mm:ss', value: 'YYYY/MM/DD HH:mm:ss' },
  { label: 'HH:mm', value: 'HH:mm' },
  { label: 'HH:mm:ss', value: 'HH:mm:ss' },
  { label: 'MM-DD HH:mm', value: 'MM-DD HH:mm' }
];
 
export const themeTableSizeRecord: Record<UnionKey.ThemeTableSize, App.I18n.I18nKey> = {
  small: 'theme.table.size.small',
  medium: 'theme.table.size.medium',
  large: 'theme.table.size.large'
};
 
export const themeTableSizeOptions = transformRecordToOption(themeTableSizeRecord);