This commit is contained in:
@@ -36,22 +36,15 @@ export default {
|
||||
type: "GzDashTestLineWidgetMonthlyTotalPrice"
|
||||
},
|
||||
{
|
||||
id: "dashBizOnlyTest",
|
||||
roles: [role.BizAdminFull, role.BizAdminLimited],
|
||||
title: "Biz only test item",
|
||||
type: "GzDashBase"
|
||||
},
|
||||
{
|
||||
id: "dashTechOnlyTest",
|
||||
roles: [role.TechFull, role.TechLimited],
|
||||
title: "Tech only test item",
|
||||
type: "GzDashBase"
|
||||
},
|
||||
{
|
||||
id: "dashSalesOnlyTest",
|
||||
roles: [role.SalesFull, role.SalesLimited],
|
||||
title: "Sales only test item",
|
||||
type: "GzDashBase"
|
||||
id: "TestDayCalendarWidget",
|
||||
roles: [
|
||||
role.BizAdminFull,
|
||||
role.BizAdminLimited,
|
||||
role.SalesFull,
|
||||
role.SalesLimited
|
||||
],
|
||||
title: "Widget calendar",
|
||||
type: "GzDashTestDayCalendarWidget"
|
||||
}
|
||||
],
|
||||
availableItems() {
|
||||
@@ -62,11 +55,6 @@ export default {
|
||||
ret.push({ id: item.id, title: item.title, type: item.type });
|
||||
}
|
||||
}
|
||||
// for (const [key, value] of Object.entries(this.registry)) {
|
||||
// if (authorizationroles.hasRole(value.roles)) {
|
||||
// ret.push({ id: key, title: value.title, type: value.type });
|
||||
// }
|
||||
// }
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
||||
36
ayanova/src/components/dash-test-day-calendar-widget.vue
Normal file
36
ayanova/src/components/dash-test-day-calendar-widget.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<gz-dash
|
||||
icon="$ayiSplotch"
|
||||
:updateFrequency="60000"
|
||||
v-on:dash-refresh="loadData"
|
||||
v-on="$listeners"
|
||||
v-bind="$attrs"
|
||||
>
|
||||
<template slot="main">
|
||||
<div class="ml-4 mt-1 d-flex align-center">
|
||||
<div>
|
||||
<span class="orange--text"> DAY CALENDAR WIDGET CONTENT HERE</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</gz-dash>
|
||||
</template>
|
||||
<script>
|
||||
import GzDash from "../components/dash-base.vue";
|
||||
export default {
|
||||
components: {
|
||||
GzDash
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
props: {},
|
||||
created() {},
|
||||
computed: {},
|
||||
methods: {
|
||||
loadData: function() {
|
||||
console.log("GzDashTestDayCalendarWidget::loadData");
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -9,7 +9,7 @@
|
||||
<template slot="main">
|
||||
<div class="ml-4 mt-1 d-flex align-center">
|
||||
<div>
|
||||
<span class="green--text"> PRICIEST WIDGETS LIST CONTENT HERE</span>
|
||||
<span class="green--text">LIST PRICIEST WIDGETS CONTENT HERE</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -86,13 +86,15 @@ import GzDashBase from "../components/dash-base.vue";
|
||||
import GzDashTestListWidgetsPriciest from "../components/dash-test-list-widgets-priciest.vue";
|
||||
import GzDashTestBarWidgetCountByUserType from "../components/dash-test-bar-widget-count-by-usertype.vue";
|
||||
import GzDashTestLineWidgetMonthlyTotalPrice from "../components/dash-test-line-widget-monthly-total-price.vue";
|
||||
import GzDashTestDayCalendarWidget from "../components/dash-test-day-calendar-widget.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
GzDashBase,
|
||||
GzDashTestListWidgetsPriciest,
|
||||
GzDashTestBarWidgetCountByUserType,
|
||||
GzDashTestLineWidgetMonthlyTotalPrice
|
||||
GzDashTestLineWidgetMonthlyTotalPrice,
|
||||
GzDashTestDayCalendarWidget
|
||||
},
|
||||
beforeCreate() {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
|
||||
Reference in New Issue
Block a user