now using 1 iframe

pull/1/head
cheetah 2 years ago
parent 7bb6d39653
commit f9c69d948b

@ -18,33 +18,28 @@
</v-app-bar> </v-app-bar>
<v-main> <v-main>
<v-tabs v-model="configTab" next-icon="mdi-arrow-right-bold-box-outline" prev-icon="mdi-arrow-left-bold-box-outline" show-arrows> <v-tabs v-model="configTab" next-icon="mdi-arrow-right-bold-box-outline" prev-icon="mdi-arrow-left-bold-box-outline" show-arrows>
<v-tab key="dispatcher">Dispatcher</v-tab> <v-tab key="disp_main">Dispatcher</v-tab>
<v-tab key="dispatcher_cfg">Dispatcher Config</v-tab> <v-tab key="disp_cfg">Dispatcher Config</v-tab>
<v-tab key="dwd">DWD</v-tab> <v-tab key="msg-dwd_cfg">DWD</v-tab>
<v-tab key="nina">MOWAS/BBK</v-tab> <v-tab key="msg-mowas_cfg">MOWAS/BBK</v-tab>
<v-tab key="testalarm">Testalarm</v-tab> <v-tab key="msg-testalarm_cfg">Testalarm</v-tab>
<v-tab key="tg">Telegram</v-tab> <v-tab key="msg-tg_cfg">Telegram</v-tab>
</v-tabs> </v-tabs>
<v-tabs-items v-model="configTab"> <v-tabs-items v-model="configTab">
<v-tab-item key="dispatcher"> <v-tab-item key="dispatcher">
<iframe src="/disp_main/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
<v-tab-item key="dispatcher_cfg"> <v-tab-item key="dispatcher_cfg">
<iframe src="/disp_cfg/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
<v-tab-item key="dwd"> <v-tab-item key="dwd">
<iframe src="/msg-dwd_cfg/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
<v-tab-item key="nina"> <v-tab-item key="nina">
<iframe src="/msg-mowas_cfg/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
<v-tab-item key="testalarm"> <v-tab-item key="testalarm">
<iframe src="/msg-testalarm_cfg/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
<v-tab-item key="tg"> <v-tab-item key="tg">
<iframe src="/msg-tg_cfg/" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-tab-item> </v-tab-item>
</v-tabs-items> </v-tabs-items>
<iframe :src="'/' + configMap[configTab] + '/'" style="width: 100%; height: 50rem; display: block;"></iframe>
</v-main> </v-main>
</v-app> </v-app>
</div> </div>
@ -61,6 +56,14 @@
return { return {
EXPERTMODE: false, EXPERTMODE: false,
configTab: null, configTab: null,
configMap: [
'disp_main',
'disp_cfg',
'msg-dwd_cfg',
'msg-mowas_cfg',
'msg-testalarm_cfg',
'msg-tg_cfg',
],
} }
}, },
created() { created() {

Loading…
Cancel
Save