mirror of
https://github.com/zuiidea/antd-admin.git
synced 2026-10-20 08:16:39 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5f013ff23 | ||
|
|
8cff3af897 | ||
|
|
322d5a6d0e | ||
|
|
2ee26f51a7 | ||
|
|
e670ed2f96 | ||
|
|
601a03b5b4 | ||
|
|
6d17b5b876 |
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "antd-admin",
|
||||
"version": "4.3.5",
|
||||
"version": "4.3.6",
|
||||
"dependencies": {
|
||||
"antd": "^2.11.2",
|
||||
"axios": "^0.16.2",
|
||||
|
||||
+2
-2
@@ -99,9 +99,9 @@ export default {
|
||||
} else if (config.openPages && config.openPages.indexOf(locationPathname) < 0) {
|
||||
yield put(routerRedux.push({
|
||||
pathname: '/login',
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
from: locationPathname,
|
||||
},
|
||||
}),
|
||||
}))
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'dva'
|
||||
import { Tabs } from 'antd'
|
||||
import { routerRedux } from 'dva/router'
|
||||
import queryString from 'query-string'
|
||||
import List from './List'
|
||||
|
||||
const TabPane = Tabs.TabPane
|
||||
@@ -24,11 +25,11 @@ const Index = ({ post, dispatch, loading, location }) => {
|
||||
onChange (page) {
|
||||
dispatch(routerRedux.push({
|
||||
pathname,
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
...query,
|
||||
page: page.current,
|
||||
pageSize: page.pageSize,
|
||||
},
|
||||
}),
|
||||
}))
|
||||
},
|
||||
}
|
||||
@@ -36,9 +37,9 @@ const Index = ({ post, dispatch, loading, location }) => {
|
||||
const handleTabClick = (key) => {
|
||||
dispatch(routerRedux.push({
|
||||
pathname,
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
status: key,
|
||||
},
|
||||
}),
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
@@ -45,11 +45,11 @@ const User = ({ location, dispatch, user, loading }) => {
|
||||
const { query, pathname } = location
|
||||
dispatch(routerRedux.push({
|
||||
pathname,
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
...query,
|
||||
page: page.current,
|
||||
pageSize: page.pageSize,
|
||||
},
|
||||
}),
|
||||
}))
|
||||
},
|
||||
onDeleteItem (id) {
|
||||
@@ -88,20 +88,20 @@ const User = ({ location, dispatch, user, loading }) => {
|
||||
onFilterChange (value) {
|
||||
dispatch(routerRedux.push({
|
||||
pathname: location.pathname,
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
...value,
|
||||
page: 1,
|
||||
pageSize,
|
||||
},
|
||||
}),
|
||||
}))
|
||||
},
|
||||
onSearch (fieldsValue) {
|
||||
fieldsValue.keyword.length ? dispatch(routerRedux.push({
|
||||
pathname: '/user',
|
||||
query: {
|
||||
search: queryString.stringify({
|
||||
field: fieldsValue.field,
|
||||
keyword: fieldsValue.keyword,
|
||||
},
|
||||
}),
|
||||
})) : dispatch(routerRedux.push({
|
||||
pathname: '/user',
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user