Files
kh-device-client/src/enums/commonEnums.js
T

58 lines
1.5 KiB
JavaScript

// 设备状态
export const deviceStatus = {
offLine: { label: '离线', value: '0' },
onLine: { label: '在线', value: '1' }
}
// 数据采集周期
export const dataAcquisitionCycle = {
tenSeconds: { label: '10秒', value: '10' },
twentySeconds: { label: '20秒', value: '20' },
thirtySeconds: { label: '30秒', value: '30' }
}
// 数据采集协议
export const dataAcquisitionProtocol = {
modbusRtu: { label: 'Modbus RTU', value: 'Modbus RTU' }
}
// 井口类型
export const wellheadType = {
oil: { label: '油井', value: '1' },
water: { label: '水井', value: '2' }
}
// 用户类别
export const userType = {
admin: { label: '管理员', value: 'admin' },
common: { label: '普通用户', value: 'common' }
}
// 消息类型
export const msgType = {
hostToDevice: { label: 'Host-》Device', value: 'hostToDevice' },
deviceToHost: { label: 'Device-》Host', value: 'deviceToHost' }
}
// 移动端设备类型字典
export const deviceType = {
rtuController: { label: 'RTU控制器', value: '1' },
transmissionTerminal: { label: '天然气数据远传终端', value: '2' },
wellheadEquipment: { label: '井口设备', value: '3' }
}
// 井场数据字典
export const wellheadArea = {
tree101: { label: '树101井', value: '1' }
}
// 门站数据字典
export const stationGateStationEnum = {
baimamenStation: { label: '白马门站', value: '1' }
}
// 门站数据字典
export const dataAcquisitionEquipmentEnum = {
mediumPressureOutputFlowMeter: { label: '中压输出流量计', value: '1' }
}