// 车载 const TYPE0 = '0a'; // 无人机 const TYPE1 = '0b'; // 无人船 const TYPE2 = '0c'; // 定点监测 const TYPE3 = '0d'; // 用电量 const TYPE4 = '31'; function typeList() { if (import.meta.env.VITE_DATA_MODE == 'jingan') { return [ { label: '车载', value: '0a' } ]; } else { return [ { label: '车载', value: '0a' }, { label: '无人机', value: '0b' }, { label: '无人船', value: '0c' }, { label: '网格化', value: '0d' } ]; } } function typeName(type) { return typeList().find((v) => v.value == type).label; } export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, typeName };