webapp: create interface for DtuConfig

This commit is contained in:
Thomas Basler 2022-10-17 19:53:43 +02:00
parent d798963df5
commit c735fb8c3c
2 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1,5 @@
export interface DtuConfig {
dtu_serial: number,
dtu_pollinterval: number,
dtu_palevel: number
}

View File

@ -59,6 +59,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue"; import BootstrapAlert from "@/components/BootstrapAlert.vue";
import type { DtuConfig } from "@/types/DtuConfig";
export default defineComponent({ export default defineComponent({
components: { components: {
@ -67,11 +68,7 @@ export default defineComponent({
data() { data() {
return { return {
dataLoading: true, dataLoading: true,
dtuConfigList: { dtuConfigList: {} as DtuConfig,
dtu_serial: 0,
dtu_pollinterval: 0,
dtu_palevel: 0
},
palevelList: [ palevelList: [
{ key: 0, value: "Minimum (-18 dBm)" }, { key: 0, value: "Minimum (-18 dBm)" },
{ key: 1, value: "Low (-12 dBm)" }, { key: 1, value: "Low (-12 dBm)" },