This commit is contained in:
chaosBreaking
2019-10-09 08:10:18 +08:00
parent 9c0e433ef8
commit 7b246bebef
11 changed files with 206 additions and 181 deletions

View File

@@ -19,6 +19,7 @@
:rows-per-page-items="pageEntity"
:loading="fetching"
class="panel-content elevation-1"
@update:pagination="nextPage"
>
<template slot="headerCell" slot-scope="props">
<span>{{ $t(props.header.text) }}</span>
@@ -64,6 +65,7 @@ export default {
...mapActions([
'queryUserInfo',
'queryOne',
'nextPage'
]),
...mapMutations([
'inputFilter',

View File

@@ -20,6 +20,8 @@
:rows-per-page-items="pageEntity"
:loading="fetching"
class="panel-content elevation-1"
:page="currentPage"
@update:pagination="nextPage"
>
<template slot="headerCell" slot-scope="props">
<span>{{ $t(props.header.text) }}</span>
@@ -56,6 +58,7 @@ export default {
'headers',
'itemList',
'pageEntity',
'currentPage',
'fetching',
'filter',
]),
@@ -65,6 +68,7 @@ export default {
methods: {
...mapActions([
'queryTickets',
'nextPage'
]),
...mapMutations([
'inputFilter',
@@ -75,8 +79,7 @@ export default {
mounted() {
this.queryTickets()
},
}
}
</script>

View File

@@ -23,6 +23,7 @@
<h3>用户列表</h3>
<div class="search-input">
<v-text-field
@keyup.13="searchUser"
:placeholder="$t('owner.searchHolder')"
:value="filter"
@input="inputFilter"
@@ -34,10 +35,11 @@
<v-data-table
:headers="headers"
:items="itemList"
:total-items="100"
:total-items="userNumSum"
:rows-per-page-items="pageEntity"
:loading="fetching"
class="panel-content elevation-1"
@update:pagination="nextPage"
>
<template slot="headerCell" slot-scope="props">
<span>{{ $t(props.header.text) }}</span>
@@ -82,6 +84,8 @@ export default {
...mapActions([
'queryUserInfo',
'queryOne',
'nextPage',
'searchUser'
]),
...mapMutations([
'inputFilter',