fix: 修复user搜索框不能搜索的问题

This commit is contained in:
chenjinsong
2021-04-22 15:12:12 +08:00
parent 4ae21b5c39
commit dc36d7e010
2 changed files with 4 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ export default {
} }
} }
if (this.$refs.dataTable) { if (this.$refs.dataTable) {
this.$refs.dataTable.bodyWrapper.scrollTop = 0 this.$refs.dataTable.$refs.dataTable.bodyWrapper.scrollTop = 0
} }
this.getTableData() this.getTableData()
}, },

View File

@@ -6,7 +6,9 @@
:custom-table-title.sync="tools.customTableTitle" :custom-table-title.sync="tools.customTableTitle"
:from="fromRoute.user" :from="fromRoute.user"
:layout="['searchInput', 'elementSet']" :layout="['searchInput', 'elementSet']"
:search-msg="searchMsg"> :search-msg="searchMsg"
@search="search"
>
<template v-slot:top-tool-right> <template v-slot:top-tool-right>
<button id="account-add" v-has="'user_add'" :title="$t('overall.createUser')" class="top-tool-btn margin-r-10" <button id="account-add" v-has="'user_add'" :title="$t('overall.createUser')" class="top-tool-btn margin-r-10"
type="button" @click="add"> type="button" @click="add">