webapp: create interface for DtuConfig
This commit is contained in:
parent
d798963df5
commit
c735fb8c3c
5
webapp/src/types/DtuConfig.ts
Normal file
5
webapp/src/types/DtuConfig.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface DtuConfig {
|
||||
dtu_serial: number,
|
||||
dtu_pollinterval: number,
|
||||
dtu_palevel: number
|
||||
}
|
||||
@ -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)" },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user