This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row v-if="this.formState.ready">
|
<v-row v-if="this.formState.ready" v-resize="onResize">
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-select
|
<v-select
|
||||||
@@ -14,14 +14,20 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<p class="title">{{ $ay.t("Log") }}</p>
|
<v-card>
|
||||||
|
<v-card
|
||||||
<v-btn @click="getDataFromApi" class="m-4">
|
:height="logCardHeight"
|
||||||
<v-icon>fa-sync</v-icon>
|
style="overflow:auto;"
|
||||||
</v-btn>
|
class="pl-5 py-6"
|
||||||
<v-card style="overflow-x:scroll;" class="mt-6 pl-5 py-6">
|
>
|
||||||
<pre>{{ log }}</pre>
|
<pre>{{ log }}</pre>
|
||||||
<!-- <v-textarea v-model="log" full-width readonly auto-grow></v-textarea> -->
|
</v-card>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-btn @click="getDataFromApi" class="m-4">
|
||||||
|
<v-icon>fa-sync</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
<v-btn text>Button</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -56,6 +62,7 @@ export default {
|
|||||||
selectLists: {
|
selectLists: {
|
||||||
serverLogs: []
|
serverLogs: []
|
||||||
},
|
},
|
||||||
|
logCardHeight: 300,
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -69,6 +76,9 @@ export default {
|
|||||||
window.$gz.eventBus.$off("menu-click", clickHandler);
|
window.$gz.eventBus.$off("menu-click", clickHandler);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onResize() {
|
||||||
|
this.logCardHeight = window.innerHeight * 0.65;
|
||||||
|
},
|
||||||
translation() {
|
translation() {
|
||||||
return window.$gz.translation;
|
return window.$gz.translation;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user