diff --git a/src/pages/List/Applications.js b/src/pages/List/Applications.js index 7b317d9a66bea9672b10f7b90d6e9e08956f22e9..bd28fb9eb4cfb7900c2c3937ebd4c5dc04a4af19 100644 --- a/src/pages/List/Applications.js +++ b/src/pages/List/Applications.js @@ -17,10 +17,10 @@ const FormItem = Form.Item; loading: loading.models.list, })) @Form.create({ - onValuesChange({ dispatch }, values) { + onValuesChange({ dispatch }, changedValues, allValues) { // 表单项变化时请求数据 // eslint-disable-next-line - console.log(values); + console.log(changedValues, allValues); // 模拟查询表单生效 dispatch({ type: 'list/fetch', diff --git a/src/pages/List/Articles.js b/src/pages/List/Articles.js index fdf4902be8957332d164cb4ff59c84b524b5a73f..4d7cd0111a81dd970536b9e204232261012a8b54 100644 --- a/src/pages/List/Articles.js +++ b/src/pages/List/Articles.js @@ -17,10 +17,10 @@ const pageSize = 5; loading: loading.models.list, })) @Form.create({ - onValuesChange({ dispatch }, values) { + onValuesChange({ dispatch }, changedValues, allValues) { // 表单项变化时请求数据 // eslint-disable-next-line - console.log(values); + console.log(changedValues, allValues); // 模拟查询表单生效 dispatch({ type: 'list/fetch', diff --git a/src/pages/List/Projects.js b/src/pages/List/Projects.js index 9bffa57ed5dff365328984c98e88997b0ab729d8..9c62ef160c836be112ebcf661f765337adfebe62 100644 --- a/src/pages/List/Projects.js +++ b/src/pages/List/Projects.js @@ -20,10 +20,10 @@ const FormItem = Form.Item; loading: loading.models.list, })) @Form.create({ - onValuesChange({ dispatch }, values) { + onValuesChange({ dispatch }, changedValues, allValues) { // 表单项变化时请求数据 // eslint-disable-next-line - console.log(values); + console.log(changedValues, allValues); // 模拟查询表单生效 dispatch({ type: 'list/fetch',