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