|
| 1 | +<template> |
| 2 | + <div class="device-openwb-flex-consumption-counter"> |
| 3 | + <openwb-base-heading> |
| 4 | + Einstellungen für openWB-Flex Verbrauchszähler |
| 5 | + <span class="small">(Modul: {{ $options.name }})</span> |
| 6 | + </openwb-base-heading> |
| 7 | + <openwb-base-select-input |
| 8 | + title="Zählermodell" |
| 9 | + notSelected="Bitte auswählen" |
| 10 | + :options="[ |
| 11 | + { value: 'sdm120', text: 'SDM120' }, |
| 12 | + { value: 'sdm630', text: 'SDM630/SDM72D-M' }, |
| 13 | + { value: 'b23', text: 'B23' }, |
| 14 | + ]" |
| 15 | + :model-value="configuration.version" |
| 16 | + @update:model-value=" |
| 17 | + updateConfiguration($event, 'configuration.version') |
| 18 | + " |
| 19 | + /> |
| 20 | + <openwb-base-number-input |
| 21 | + title="Modbus-ID" |
| 22 | + required |
| 23 | + :min="1" |
| 24 | + :max="255" |
| 25 | + :model-value="configuration.id" |
| 26 | + @update:model-value=" |
| 27 | + updateConfiguration($event, 'configuration.id') |
| 28 | + " |
| 29 | + /> |
| 30 | + </div> |
| 31 | +</template> |
| 32 | + |
| 33 | +<script> |
| 34 | +export default { |
| 35 | + name: "DeviceOpenwbFlexConsumptionCounter", |
| 36 | + emits: ["update:configuration"], |
| 37 | + props: { |
| 38 | + configuration: { type: Object, required: true }, |
| 39 | + deviceId: { default: undefined }, |
| 40 | + componentId: { required: true }, |
| 41 | + }, |
| 42 | + methods: { |
| 43 | + updateConfiguration(event, path = undefined) { |
| 44 | + this.$emit("update:configuration", { value: event, object: path }); |
| 45 | + }, |
| 46 | + }, |
| 47 | +}; |
| 48 | +</script> |
0 commit comments