mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
25 lines
534 B
TypeScript
25 lines
534 B
TypeScript
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
methods: {
|
|
getControlTypeAbbrev(controlType: string) {
|
|
switch (controlType) {
|
|
case 'mechaniczne':
|
|
return 'M';
|
|
case 'SCS-SPK':
|
|
return 'S/S';
|
|
case 'ręczne':
|
|
return 'R';
|
|
case 'mechaniczne+SPK':
|
|
return 'M';
|
|
case 'ręczne+SPK':
|
|
return 'R';
|
|
case 'mechaniczne+SCS':
|
|
return 'M';
|
|
default:
|
|
return controlType;
|
|
}
|
|
}
|
|
}
|
|
});
|