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: { methods: {
refresh: function() { refresh: function() {
console.log("dash-base:refresh()", new Date());
this.$emit("dash-refresh", this.id); this.$emit("dash-refresh", this.id);
} }
} }

View File

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