This commit is contained in:
@@ -36,22 +36,15 @@ export default {
|
|||||||
type: "GzDashTestLineWidgetMonthlyTotalPrice"
|
type: "GzDashTestLineWidgetMonthlyTotalPrice"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "dashBizOnlyTest",
|
id: "TestDayCalendarWidget",
|
||||||
roles: [role.BizAdminFull, role.BizAdminLimited],
|
roles: [
|
||||||
title: "Biz only test item",
|
role.BizAdminFull,
|
||||||
type: "GzDashBase"
|
role.BizAdminLimited,
|
||||||
},
|
role.SalesFull,
|
||||||
{
|
role.SalesLimited
|
||||||
id: "dashTechOnlyTest",
|
],
|
||||||
roles: [role.TechFull, role.TechLimited],
|
title: "Widget calendar",
|
||||||
title: "Tech only test item",
|
type: "GzDashTestDayCalendarWidget"
|
||||||
type: "GzDashBase"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "dashSalesOnlyTest",
|
|
||||||
roles: [role.SalesFull, role.SalesLimited],
|
|
||||||
title: "Sales only test item",
|
|
||||||
type: "GzDashBase"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
availableItems() {
|
availableItems() {
|
||||||
@@ -62,11 +55,6 @@ export default {
|
|||||||
ret.push({ id: item.id, title: item.title, type: item.type });
|
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;
|
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">
|
<template slot="main">
|
||||||
<div class="ml-4 mt-1 d-flex align-center">
|
<div class="ml-4 mt-1 d-flex align-center">
|
||||||
<div>
|
<div>
|
||||||
<span class="green--text"> PRICIEST WIDGETS LIST CONTENT HERE</span>
|
<span class="green--text">LIST PRICIEST WIDGETS CONTENT HERE</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -86,13 +86,15 @@ import GzDashBase from "../components/dash-base.vue";
|
|||||||
import GzDashTestListWidgetsPriciest from "../components/dash-test-list-widgets-priciest.vue";
|
import GzDashTestListWidgetsPriciest from "../components/dash-test-list-widgets-priciest.vue";
|
||||||
import GzDashTestBarWidgetCountByUserType from "../components/dash-test-bar-widget-count-by-usertype.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 GzDashTestLineWidgetMonthlyTotalPrice from "../components/dash-test-line-widget-monthly-total-price.vue";
|
||||||
|
import GzDashTestDayCalendarWidget from "../components/dash-test-day-calendar-widget.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
GzDashBase,
|
GzDashBase,
|
||||||
GzDashTestListWidgetsPriciest,
|
GzDashTestListWidgetsPriciest,
|
||||||
GzDashTestBarWidgetCountByUserType,
|
GzDashTestBarWidgetCountByUserType,
|
||||||
GzDashTestLineWidgetMonthlyTotalPrice
|
GzDashTestLineWidgetMonthlyTotalPrice,
|
||||||
|
GzDashTestDayCalendarWidget
|
||||||
},
|
},
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
|
|||||||
Reference in New Issue
Block a user