|
|
@@ -728,6 +728,10 @@
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
// this.getInspections();
|
|
|
+ this.refreshTableOnEnter();
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.refreshTableOnEnter();
|
|
|
},
|
|
|
methods: {
|
|
|
handleTabClick(e) {
|
|
|
@@ -917,6 +921,14 @@
|
|
|
this.reload();
|
|
|
},
|
|
|
|
|
|
+ refreshTableOnEnter() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.$refs.table) {
|
|
|
+ this.$refs.table.reload({ page: 1 });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
reload(where) {
|
|
|
this.$refs.table.reload({ page: 1, where });
|
|
|
},
|