diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue index cd590b93..7c3d615c 100644 --- a/src/components/scTable/index.vue +++ b/src/components/scTable/index.vue @@ -212,6 +212,10 @@ export default { this.isActivat = false; }, methods: { + //滚动到顶部 + scrollToTop() { + this.$refs.scTable.scrollTo(0, 0); + }, //获取列 async getCustomColumn() { const userColumn = await config.columnSettingGet( diff --git a/src/views/wf/myticket.vue b/src/views/wf/myticket.vue index 4a330dd6..ed199b11 100644 --- a/src/views/wf/myticket.vue +++ b/src/views/wf/myticket.vue @@ -256,8 +256,9 @@ export default { this.tvalue = "我的"; this.params.category = "owner"; this.query = {}; + this.$refs.table.scrollToTop(); } - this.$refs.table.refresh() + this.handleQuery(); } }, };