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"
>
<template slot="main">
<div>
<gz-chart-bar :chart-data="chartData" :options="chartOptions" />
</div>
<v-sheet
v-if="obj.length == 0"
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 slot="settings">

View File

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