This commit is contained in:
2020-11-02 17:52:05 +00:00
parent d081c6cfd7
commit f9a429ce5d
2 changed files with 8 additions and 9 deletions

View File

@@ -145,7 +145,6 @@ export default {
},
methods: {
refresh: function() {
console.log("dash-base:refresh()", new Date());
this.$emit("dash-refresh", this.id);
}
}

View File

@@ -56,13 +56,12 @@
:count="0"
moreUrl="/home-dashboard"
icon="$ayiRobot"
:updateFrequency="15000"
:updateFrequency="30000"
v-on:dash-remove="dashRemove"
v-on:dash-move-start="dashMoveStart"
v-on:dash-move-back="dashMoveBack"
v-on:dash-move-forward="dashMoveForward"
v-on:dash-move-end="dashMoveEnd"
v-on:dash-refresh="dashRefresh"
/>
</v-col>
</v-row>
@@ -130,12 +129,13 @@ export default {
this.effectiveView.splice(index, 1);
this.saveView();
},
dashRefresh: function(item) {
console.log(
"home-dashboard:refresh (normally handle @ typed dash control)",
item
);
},
// dashRefresh: function(item) {
// v-on:dash-refresh="dashRefresh"
// console.log(
// "home-dashboard:refresh (normally handle @ typed dash control)",
// item
// );
// },
getEffectiveViewItemIndexById: function(id) {
return this.effectiveView.findIndex(z => z.id == id);
},