You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
360 lines
8.9 KiB
360 lines
8.9 KiB
// 请求头里token的名称
|
|
export const HEADER_TOKEN_KEY = 'Authorization'
|
|
|
|
// sessionStorage里token的名称
|
|
export const SESSIONSTORAGE_TOKEN_KEY = 'web_token'
|
|
|
|
export const formulaNameMap: Record<string, any> = {
|
|
stoped_gs: '停止H2o2浓度',
|
|
continued_gs: '继续H2o2浓度',
|
|
stoped_satur: '停止H2o2饱和度',
|
|
continued_satur: '继续H2o2饱和度',
|
|
max_humidity: '消毒最大湿度',
|
|
injection_pump_speed: '喷射蠕动泵转速',
|
|
pre_heat_time_s: '预热时间',
|
|
stoped_humi: '停止相对湿度',
|
|
continued_humi: '湿度',
|
|
proportional_valve_default_value: '正负压比例',
|
|
loglevel: '消毒等级',
|
|
}
|
|
|
|
// 空气压力初始化数据
|
|
export const PARSSURE_DATA = {
|
|
intensitys: {
|
|
constantPressure: null,
|
|
negativePressure: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
|
|
positivePressure: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
|
|
},
|
|
typeDisplayNames: ['恒压', '正压', '负压'],
|
|
types: ['constantPressure', 'positivePressure', 'negativePressure'],
|
|
}
|
|
|
|
// 配方是否可配置初始数据
|
|
export const FORMULA_CONFIG_DATA: Formula.FormulaConfig[] = [
|
|
{
|
|
default_val: 300, // 消毒停止过氧化氢溶度 的 默认值
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true, // 是否可编辑
|
|
is_visible_in_formula_page: true, // 配方页面是否可配置
|
|
is_visible_in_rt_page: true, // 运行中是否可配置
|
|
is_visible_in_setting_page: true, // 设置页面中是否可配
|
|
name_ch: '消毒停止过氧化氢溶度', // 名称
|
|
setting_id: 'stoped_gs', // id
|
|
val: 300, // 编辑后提交的值
|
|
val_lower_limit: 0, // 最小值
|
|
val_type: 'int', // 数据类型
|
|
val_upper_limit: 2000, // 最大值
|
|
},
|
|
{
|
|
default_val: 200,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒继续过氧化氢溶度',
|
|
setting_id: 'continued_gs',
|
|
val: 200,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 2000,
|
|
},
|
|
{
|
|
default_val: 85,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒停止过氧化氢相对饱和度',
|
|
setting_id: 'stoped_satur',
|
|
val: 85,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 60,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒继续过氧化氢相对饱和度',
|
|
setting_id: 'continued_satur',
|
|
val: 60,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 90,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '允许消毒最大湿度',
|
|
setting_id: 'max_humidity',
|
|
val: 90,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 400,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '排液蠕动泵最大转速',
|
|
setting_id: 'drainage_pump_speed',
|
|
val: 400,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 400,
|
|
},
|
|
{
|
|
default_val: 15,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '喷射蠕动泵转速',
|
|
setting_id: 'injection_pump_speed',
|
|
val: 15,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 40,
|
|
},
|
|
{
|
|
default_val: 120,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '预热时间',
|
|
setting_id: 'pre_heat_time_s',
|
|
val: 120,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 1200,
|
|
},
|
|
{
|
|
default_val: 85,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒停止相对湿度',
|
|
setting_id: 'stoped_humi',
|
|
val: 85,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 60,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒继续相对湿度',
|
|
setting_id: 'continued_humi',
|
|
val: 60,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 10,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '正负压默认开合比例',
|
|
setting_id: 'proportional_valve_default_value',
|
|
val: 10,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: 2,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒日志记录间隔(Min)',
|
|
setting_id: 'record_period_min',
|
|
val: 2,
|
|
val_lower_limit: 1,
|
|
val_type: 'int',
|
|
val_upper_limit: 30,
|
|
},
|
|
{
|
|
default_val: 5,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: true,
|
|
name_ch: '消毒日志打印间隔(Min)',
|
|
setting_id: 'record_printer_period_min',
|
|
val: 5,
|
|
val_lower_limit: 1,
|
|
val_type: 'int',
|
|
val_upper_limit: 30,
|
|
},
|
|
{
|
|
default_val: 1,
|
|
enum_display_names: [
|
|
'LOG1',
|
|
'LOG2',
|
|
'LOG3',
|
|
'LOG4',
|
|
'LOG5',
|
|
'LOG6',
|
|
'LOG7',
|
|
'LOG8',
|
|
'LOG9',
|
|
'LOG10',
|
|
'LOG11',
|
|
'LOG12',
|
|
],
|
|
enums: [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: true,
|
|
is_visible_in_rt_page: true,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '消毒等级',
|
|
setting_id: 'loglevel',
|
|
val: 1,
|
|
val_lower_limit: 0,
|
|
val_type: 'enum',
|
|
val_upper_limit: 0,
|
|
},
|
|
{
|
|
default_val: false,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '是否启用消毒前除湿',
|
|
setting_id: 'enable_bd_dehumidify',
|
|
val: false,
|
|
val_lower_limit: 0,
|
|
val_type: 'boolean',
|
|
val_upper_limit: 0,
|
|
},
|
|
{
|
|
default_val: 0,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '消毒前除湿阈值',
|
|
setting_id: 'bd_dehumidify_threshold',
|
|
val: 0,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: false,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '是否启用消毒后除湿',
|
|
setting_id: 'enable_ad_dehumidify',
|
|
val: false,
|
|
val_lower_limit: 0,
|
|
val_type: 'boolean',
|
|
val_upper_limit: 0,
|
|
},
|
|
{
|
|
default_val: 0,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '消毒后除湿阈值',
|
|
setting_id: 'ad_dehumidify_threshold',
|
|
val: 0,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
{
|
|
default_val: false,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '是否启用消毒后降解',
|
|
setting_id: 'enable_ad_degrade',
|
|
val: false,
|
|
val_lower_limit: 0,
|
|
val_type: 'boolean',
|
|
val_upper_limit: 0,
|
|
},
|
|
{
|
|
default_val: 0,
|
|
enum_display_names: [],
|
|
enums: [],
|
|
is_editable: true,
|
|
is_visible_in_formula_page: false,
|
|
is_visible_in_rt_page: false,
|
|
is_visible_in_setting_page: false,
|
|
name_ch: '消毒后降解阈值',
|
|
setting_id: 'ad_degrade_threshold',
|
|
val: 0,
|
|
val_lower_limit: 0,
|
|
val_type: 'int',
|
|
val_upper_limit: 100,
|
|
},
|
|
]
|