This commit is contained in:
2022-03-01 23:48:54 +00:00
parent 3359ba244e
commit 7a21a5027c
2 changed files with 16 additions and 11 deletions

View File

@@ -9,9 +9,14 @@
v-on="$listeners" v-on="$listeners"
> >
<template slot="main"> <template slot="main">
<div> <v-sheet
<gz-chart-bar :chart-data="chartData" :options="chartOptions" /> v-if="obj.length == 0"
</div> height="400"
class="ml-6 mt-6 text-h4 grey--text text--lighten-1"
>
{{ $ay.t("NoData") }}
</v-sheet>
<gz-chart-bar v-else :chart-data="chartData" :options="chartOptions" />
</template> </template>
<template slot="settings"> <template slot="settings">

View File

@@ -9,13 +9,14 @@
v-on="$listeners" v-on="$listeners"
> >
<template slot="main"> <template slot="main">
<div> <v-sheet
<gz-chart-line v-if="obj.length == 0"
v-if="visible" height="400"
:chart-data="chartData" class="ml-6 mt-6 text-h4 grey--text text--lighten-1"
:options="chartOptions" >
/> {{ $ay.t("NoData") }}
</div> </v-sheet>
<gz-chart-line v-else :chart-data="chartData" :options="chartOptions" />
</template> </template>
<template slot="settings"> <template slot="settings">
@@ -105,7 +106,6 @@ export default {
data() { data() {
return { return {
obj: {}, obj: {},
visible: true,
context: false, context: false,
localSettings: {}, localSettings: {},
selectLists: { selectLists: {