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"
>
<template slot="main">
<div>
<!-- {{ chartData }} -->
<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">
@@ -160,7 +164,6 @@ export default {
});
}
});
console.log(JSON.stringify({ datasets: ret }));
return { datasets: ret };
}
},

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