This commit is contained in:
2022-03-01 23:47:32 +00:00
parent d50a44d30a
commit 3359ba244e
2 changed files with 16 additions and 14 deletions

View File

@@ -9,10 +9,14 @@
v-on="$listeners" v-on="$listeners"
> >
<template slot="main"> <template slot="main">
<div> <v-sheet
<!-- {{ chartData }} --> v-if="obj.length == 0"
<gz-chart-bar :chart-data="chartData" :options="chartOptions" /> height="400"
</div> 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">
@@ -160,7 +164,6 @@ export default {
}); });
} }
}); });
console.log(JSON.stringify({ datasets: ret }));
return { datasets: ret }; return { datasets: ret };
} }
}, },

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">
@@ -112,7 +113,6 @@ export default {
return { return {
obj: {}, obj: {},
meta: [], meta: [],
visible: true,
context: false, context: false,
localSettings: {}, localSettings: {},
selectLists: { selectLists: {
@@ -167,7 +167,6 @@ export default {
}); });
} }
}); });
//console.log(JSON.stringify({ datasets: ret }));
return { datasets: ret }; return { datasets: ret };
} }
}, },