Browse Source

看板筛选条件using状态改变后刷新数据

zhuth 7 years ago
parent
commit
ea31753c74
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/components/dashboardDesigner/content.jsx

+ 1 - 2
src/components/dashboardDesigner/content.jsx

@@ -91,7 +91,6 @@ class DashboardDesignerContent extends React.Component {
 
     createFilters = (filters) => {
         const { dispatch } = this.props;
-        // dispatch({ type: 'dashboardDesigner/silentSetField', name: 'filters', value: filters });
         dispatch({ type: 'dashboardDesigner/changeFilters', filters });
         this.hideFilterBox()
     }
@@ -144,7 +143,7 @@ class DashboardDesignerContent extends React.Component {
         const key = e.target.dataset.key;
         const { dashboardDesigner, dispatch } = this.props;
         const filters = dashboardDesigner.filters;
-        dispatch({ type: 'dashboardDesigner/silentSetField', name: 'filters', value: filters.map( f => {
+        dispatch({ type: 'dashboardDesigner/changeFilters', filters: filters.map( f => {
             if(+f.key === +key) {
                 f = { ...f, using: f.type ? !f.using : false}
             }