|
@@ -7,6 +7,9 @@ import {getAssessData,getIndexData} from '@store/async-actions/fetchModules';
|
|
|
import {SET_ASSESS_DATA,SET_INDEX_DATA,SET_INDEX_SUB_TYPE,REMOVE_ASSESS_ITEMS,CLEAR_INDEX_DATA,SET_CHRONIC_CALCU_RESULT} from '@types/assessResult';
|
|
|
import {parseChartData,deepClone} from '@utils/tools';
|
|
|
import {SHOW_TABLE_LIST,HIDE_TABLE_LIST} from '@store/types/pushMessage';
|
|
|
+import {saveMessage} from "../store/async-actions/print";
|
|
|
+import {SET_SAVE_ASSESS_DATA} from "@types/assessResult";
|
|
|
+import {saveClickNum} from '@store/async-actions/homePage';
|
|
|
|
|
|
/***
|
|
|
* 管理评估逻辑:
|
|
@@ -103,7 +106,17 @@ function mapDispatchToProps(dispatch) {
|
|
|
value:true,
|
|
|
item:Object.assign({},item)
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ //保存管理评估
|
|
|
+ saveAssessInfos(obj,flg,noSave){ //noSave未true则不调页面保存接口
|
|
|
+ dispatch(Object.assign({},obj,{type:SET_SAVE_ASSESS_DATA}));
|
|
|
+ if(!noSave){
|
|
|
+ dispatch(saveClickNum);
|
|
|
+ if(flg != 1 && flg != 2){
|
|
|
+ dispatch(() => saveMessage())
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
|