Explorar el Código

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

zhuth hace 7 años
padre
commit
ea31753c74
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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}
             }