mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 16:50:56 +00:00
add user-IsMotion
This commit is contained in:
+6
-1
@@ -6,7 +6,7 @@ import UserSearch from '../components/users/search'
|
||||
import UserModal from '../components/users/modal'
|
||||
|
||||
function Users ({ location, dispatch, users }) {
|
||||
const { loading, list, pagination, currentItem, modalVisible, modalType } = users
|
||||
const { loading, list, pagination, currentItem, modalVisible, modalType, isMotion } = users
|
||||
const { field, keyword } = location.query
|
||||
|
||||
const userModalProps = {
|
||||
@@ -31,6 +31,7 @@ function Users ({ location, dispatch, users }) {
|
||||
loading,
|
||||
pagination: pagination,
|
||||
location,
|
||||
isMotion,
|
||||
onPageChange (page) {
|
||||
const { query, pathname } = location
|
||||
dispatch(routerRedux.push({
|
||||
@@ -62,6 +63,7 @@ function Users ({ location, dispatch, users }) {
|
||||
const userSearchProps = {
|
||||
field,
|
||||
keyword,
|
||||
isMotion,
|
||||
onSearch (fieldsValue) {
|
||||
fieldsValue.keyword.length ? dispatch(routerRedux.push({
|
||||
pathname: '/users',
|
||||
@@ -80,6 +82,9 @@ function Users ({ location, dispatch, users }) {
|
||||
modalType: 'create'
|
||||
}
|
||||
})
|
||||
},
|
||||
switchIsMotion () {
|
||||
dispatch({type: 'users/switchIsMotion'})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user