|
@@ -3,7 +3,7 @@ import { connect } from "react-redux";
|
|
|
import Banner from "../components/Banner";
|
|
|
import { SHOW_CONFIG_MODAL, CLOSE_CONFIG_MODAL, CHANGE_TYPE, CONFIRM_TYPE } from "../store/types/typeConfig";
|
|
|
import {pushAllDataList} from '@utils/tools';
|
|
|
-import {saveMode} from '@store/async-actions/fetchModules';
|
|
|
+import {saveMode,getOtherHisRecord} from '@store/async-actions/fetchModules';
|
|
|
import config from "@config/index";
|
|
|
import { initItemList } from '@store/async-actions/tabTemplate';
|
|
|
import { allCheckedShow } from '@store/actions/tabTemplate';
|
|
@@ -29,13 +29,14 @@ function mapDispatchToProps(dispatch) {
|
|
|
dispatch({type: CHANGE_TYPE, typeConfig})
|
|
|
},
|
|
|
confirmType: confirmType => {
|
|
|
- //清空所有数据
|
|
|
- pushAllDataList('','clear');
|
|
|
- Notify.success("模式切换成功");
|
|
|
//保存模式切换结果
|
|
|
dispatch(saveMode(confirmType)).then((res)=>{
|
|
|
if(res.data.code=='0'&&res.data.data){
|
|
|
+ pushAllDataList('','clear');
|
|
|
dispatch({type: CONFIRM_TYPE, confirmType});
|
|
|
+ //清空所有数据
|
|
|
+ dispatch(getOtherHisRecord()); //获取其他史最近记录
|
|
|
+ Notify.success("模式切换成功");
|
|
|
dispatch(initItemList(confirmType));
|
|
|
dispatch(allCheckedShow(false)) //全选反选显示重置
|
|
|
}else{
|