This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<v-toolbar flat dense>
|
<v-toolbar flat dense>
|
||||||
<template v-if="hasUrl">
|
<template v-if="hasUrl">
|
||||||
<v-btn text icon :to="moreUrl">
|
<v-btn text icon :to="moreUrl">
|
||||||
<template v-if="showCount && count > 0">
|
<template v-if="count > 0">
|
||||||
<v-badge overlap>
|
<v-badge overlap>
|
||||||
<template v-slot:badge>
|
<template v-slot:badge>
|
||||||
{{ count }}
|
{{ count }}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<template v-if="showCount && count > 0">
|
<template v-if="count > 0">
|
||||||
<v-badge overlap class="mr-4">
|
<v-badge overlap class="mr-4">
|
||||||
<template v-slot:badge>
|
<template v-slot:badge>
|
||||||
{{ count }}
|
{{ count }}
|
||||||
@@ -120,10 +120,9 @@ export default {
|
|||||||
},
|
},
|
||||||
title: String,
|
title: String,
|
||||||
moreUrl: String,
|
moreUrl: String,
|
||||||
showCount: Boolean,
|
|
||||||
count: { type: Number, default: 0 },
|
count: { type: Number, default: 0 },
|
||||||
updateFrequency: { type: Number, default: 60000 },
|
updateFrequency: { type: Number, default: 60000 },
|
||||||
icon: String
|
icon: { type: String, default: "$ayiTachometer" }
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
hasUrl: function() {
|
hasUrl: function() {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
:title="item.title"
|
:title="item.title"
|
||||||
:id="item.id"
|
:id="item.id"
|
||||||
:showCount="true"
|
:showCount="true"
|
||||||
:count="3"
|
:count="0"
|
||||||
moreUrl="/home-dashboard"
|
moreUrl="/home-dashboard"
|
||||||
icon="$ayiRobot"
|
icon="$ayiRobot"
|
||||||
v-on:dash-remove="dashRemove"
|
v-on:dash-remove="dashRemove"
|
||||||
@@ -66,22 +66,13 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
Todo: intermediate actual types (try list first), how to instantiate them from here by id (dynamic)
|
||||||
|
todo: do we need a PLUS menu item to add one of that type to that widget, i.e. if it's showing workorders then a plus to make a new wokorder would be useful
|
||||||
<script>
|
<script>
|
||||||
const FORM_KEY = "home-dashboard";
|
const FORM_KEY = "home-dashboard";
|
||||||
import DashRegistry from "../api/dash-registry";
|
import DashRegistry from "../api/dash-registry";
|
||||||
import GzDash from "../components/dash-base.vue";
|
import GzDash from "../components/dash-base.vue";
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* <div>
|
|
||||||
MRU + depending on role: new workorder, new client, personal workorder
|
|
||||||
list if scheduleable, or if ops then whatever ops needs or admin whatever
|
|
||||||
they need etc
|
|
||||||
</div>
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
GzDash
|
GzDash
|
||||||
|
|||||||
Reference in New Issue
Block a user