src/constant/device-type.js
@@ -30,6 +30,10 @@ { label: '无人船', value: '0c' }, { label: '网格化', value: '0d' } ]; } @@ -51,7 +55,7 @@ return v.value == t; }); return [1, 2, 3].map((v) => { const label = `${typeStr}设备${v}号`; const label = `${typeStr.label}设备${v}号`; const value = `${t}000000000${v}`; return { label: label, @@ -61,4 +65,8 @@ } } export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, deviceList }; function typeName(type) { return typeList().find((v) => v.value == type).label; } export { TYPE0, TYPE1, TYPE2, TYPE3, TYPE4, typeList, typeName, deviceList };