|
| 1 | +<template> |
| 2 | + <div class="vehicle-soc-evcc"> |
| 3 | + <openwb-base-text-input |
| 4 | + title="EVCC Sponsor Token" |
| 5 | + subtype="password" |
| 6 | + required |
| 7 | + :model-value="vehicle.configuration.sponsor_token" |
| 8 | + @update:model-value=" |
| 9 | + updateConfiguration($event, 'configuration.sponsor_token') |
| 10 | + " |
| 11 | + > |
| 12 | + <template #help> |
| 13 | + EVCC Sponsor Token angeben, dies ist notwendig um SoC über EVCC abrufen zu können. https://sponsor.evcc.io/ |
| 14 | + </template> |
| 15 | + </openwb-base-text-input> |
| 16 | + <openwb-base-text-input |
| 17 | + title="Benutzername" |
| 18 | + subtype="text" |
| 19 | + required |
| 20 | + :model-value="vehicle.configuration.user_id" |
| 21 | + @update:model-value=" |
| 22 | + updateConfiguration($event, 'configuration.user_id') |
| 23 | + " |
| 24 | + > |
| 25 | + <template #help> |
| 26 | + Benutzername beim Fahrzeughersteller. |
| 27 | + </template> |
| 28 | + </openwb-base-text-input> |
| 29 | + <openwb-base-text-input |
| 30 | + title="Kennwort" |
| 31 | + subtype="password" |
| 32 | + required |
| 33 | + :model-value="vehicle.configuration.password" |
| 34 | + @update:model-value=" |
| 35 | + updateConfiguration($event, 'configuration.password') |
| 36 | + " |
| 37 | + > |
| 38 | + <template #help> |
| 39 | + Kennwort beim Fahrzeughersteller. |
| 40 | + </template> |
| 41 | + </openwb-base-text-input> |
| 42 | + <openwb-base-select-input |
| 43 | + title="Marke" |
| 44 | + required |
| 45 | + notSelected="Bitte auswählen" |
| 46 | + :options="[{ value: 'aiways', text: 'Aiways'}, |
| 47 | + { value: 'audi', text: 'Audi'}, |
| 48 | + { value: 'etron', text: 'Audi e-tron'}, |
| 49 | + { value: 'bmw', text: 'BMW'}, |
| 50 | + { value: 'dacia', text: 'Dacia'}, |
| 51 | + { value: 'fiat', text: 'Fiat'}, |
| 52 | + { value: 'ford', text: 'Ford'}, |
| 53 | + { value: 'hyundai', text: 'Hyundai'}, |
| 54 | + { value: 'jaguar', text: 'Jaguar'}, |
| 55 | + { value: 'kia', text: 'Kia'}, |
| 56 | + { value: 'landrover', text: 'Landrover'}, |
| 57 | + { value: 'mg', text: 'Mg'}, |
| 58 | + { value: 'mini', text: 'Mini'}, |
| 59 | + { value: 'nissan', text: 'Nissan'}, |
| 60 | + { value: 'carwings', text: 'Nissan (Leaf pre 2019)'}, |
| 61 | + { value: 'ovms', text: 'OVMS'}, |
| 62 | + { value: 'polestar', text: 'Polestar'}, |
| 63 | + { value: 'porsche', text: 'Porsche'}, |
| 64 | + { value: 'renault', text: 'Renault'}, |
| 65 | + { value: 'seat', text: 'Seat'}, |
| 66 | + { value: 'cupra', text: 'Seat Cupra'}, |
| 67 | + { value: 'skoda', text: 'Škoda'}, |
| 68 | + { value: 'enyaq', text: 'Škoda Enyaq'}, |
| 69 | + { value: 'smart', text: 'Smart'}, |
| 70 | + { value: 'smart-hello', text: 'Smart-Hello'}, |
| 71 | + { value: 'template', text: 'Template'}, |
| 72 | + { value: 'volvo', text: 'Volvo'}, |
| 73 | + { value: 'volvo-connected', text: 'Volvo-Connected'}, |
| 74 | + { value: 'vw', text: 'VW'}, |
| 75 | + { value: 'id', text: 'VW ID'}]" |
| 76 | + |
| 77 | + :model-value="vehicle.configuration.vehicle_type" |
| 78 | + @update:model-value=" |
| 79 | + updateConfiguration($event, 'configuration.vehicle_type') |
| 80 | + " |
| 81 | + > |
| 82 | + <template #help> Marke aus des Fahrzeugs.</template> |
| 83 | + </openwb-base-select-input> |
| 84 | + <openwb-base-text-input |
| 85 | + title="VIN" |
| 86 | + subtype="text" |
| 87 | + :model-value="vehicle.configuration.VIN" |
| 88 | + @update:model-value=" |
| 89 | + updateConfiguration($event, 'configuration.VIN') |
| 90 | + " |
| 91 | + > |
| 92 | + <template #help> |
| 93 | + Fahrzeuggestellnummer (VIN) des Fahrzeugs. Notwendig falls mehrere Fahrzeuge im Account des Herstellers vorhanden sind. |
| 94 | + </template> |
| 95 | + </openwb-base-text-input> |
| 96 | + |
| 97 | + </div> |
| 98 | +</template> |
| 99 | + |
| 100 | +<script> |
| 101 | +export default { |
| 102 | + name: "VehicleSocEVCC", |
| 103 | + emits: ["update:configuration"], |
| 104 | + props: { |
| 105 | + vehicleId: { required: true, type: Number }, |
| 106 | + vehicle: { required: true, type: Object }, |
| 107 | + }, |
| 108 | + data() { |
| 109 | + return {}; |
| 110 | + }, |
| 111 | + methods: { |
| 112 | + updateConfiguration(event, path = undefined) { |
| 113 | + this.$emit("update:configuration", { value: event, object: path }); |
| 114 | + }, |
| 115 | + }, |
| 116 | +}; |
| 117 | +</script> |
0 commit comments