2025-08-12 11:05:28 +08:00

79 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export interface SckType {
xmdm: number,
kfdm: string
}
export interface SystemParamType {
Param341: boolean; // 是否按顺序考试
Param803Str: string; // 开始考试前必须解开安全带或关车门
Param612Str: string; // 开始考试触发方式
Param770Str: string; // 车上没有缺考功能
Param305Str: string; // 视频保存天数
Param352Str: string; // 车上考试过一次就不能缺考
Param828Str: string; // 828考生待考界面安全员显示考试员
Param830Str: string; // 同一学员连续第二次考试时不再验证身份
Param364: string; // 考前上车准备
Param398: string; // 考前上车准备
}
export interface LabelBlockType {
label: string;
key: string;
}
export interface QKParamType {
id: number;
list: number[];
carNo: string;
placeId: string;
}
export interface CheckItemType {
index: string;
checkFn: (msgArr: number[]) => boolean;
audio: string;
message: string;
}
// const SYSSET_VNO = {
// SERIAL_NUMBER: '901',
// EXAM_SYSTEM_CODE: '902',
// STUDENT_REFRESH: '452',
// OPEN_CHECK_FLAG: '17',
// FACE_PARAM: '2413',
// JUDGMENT_TIMING: '364',
// SECOND_EXAM_PREPARE: '398',
// NO_ABSENT_FUNCTION: '770',
// SEATBELT_DOOR: '803',
// EXAM_ORDER: '341',
// EXAM_TRIGGER: '612',
// NO_ABSENT_AFTER_ONCE: '352',
// EXAMINER_DISPLAY: '828',
// VIDEO_SAVE_DAYS: '305'
// };
export const SYSSET_VNO_MAP=new Map([
['SERIAL_NUMBER', '901'],
['EXAM_SYSTEM_CODE', '902'],
['STUDENT_REFRESH', '452'],
['OPEN_CHECK_FLAG', '17'],
['FACE_PARAM', '2413'],
['JUDGMENT_TIMING', '364'],
['SECOND_EXAM_PREPARE', '398'],
['NO_ABSENT_FUNCTION', '770'],
['SEATBELT_DOOR', '803'],
['EXAM_ORDER', '341'],
['EXAM_TRIGGER', '612'],
['NO_ABSENT_AFTER_ONCE', '352'],
['EXAMINER_DISPLAY', '828'],
['VIDEO_SAVE_DAYS', '305']
])
// // 定义更新策略常量
// const REFRESH_STRATEGY = {
// NO_AUTO: '0',
// AUTO_UNLIMITED: '1',
// AUTO_TWICE: '2'
// };
export const REFRESH_STRATEGY_MAP=new Map([
['NO_AUTO', '0'],
['AUTO_UNLIMITED', '1'],
['AUTO_TWICE', '2']
])