|
@@ -6,10 +6,11 @@ import {SETOTHERTEXT,SETOTHERSEARCHDATA,OTHER_FOCUS_INDEX,OTHERHIS_CLEAR,DEL_OTH
|
|
|
import {SET_CURRENT_SEARCH,CURRENT_CLEAR,SETCURRENTTEXT,CURRENT_FOCUS_INDEX,DEL_CURRENT,REMOVE_CURR_ID,DEL_CURRENT_LABLE} from '@types/currentIll';
|
|
|
import {getSearch} from '@store/async-actions/fetchModules.js';
|
|
|
import {billing} from '@store/async-actions/pushMessage';
|
|
|
-import {didPushParamChange} from '@utils/tools.js';
|
|
|
+import {didPushParamChange,storageLocal} from '@utils/tools.js';
|
|
|
import {SETTEXTFOCUS,SEARCH_DROP_LOCATION} from '@types/homePage';
|
|
|
import {RESET,SETDROPSHOW,ISREAD} from "@store/types/homePage";
|
|
|
import config from '@config/index.js';
|
|
|
+import {debounce} from '@common/js/func';
|
|
|
|
|
|
function mapStateToProps(state){//console.log(state)
|
|
|
return {
|
|
@@ -179,13 +180,14 @@ function mapDispatchToProps(dispatch,state) {
|
|
|
break;
|
|
|
}
|
|
|
//右侧推送
|
|
|
- clearTimeout(timer);
|
|
|
+ clearTimeout(storageLocal.get('delayTimer'));
|
|
|
let timer = setTimeout(function(){ //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
|
|
|
if(didPushParamChange()){ //操作后内容有变化才推送
|
|
|
dispatch(billing('',obj.boxMark));
|
|
|
- clearTimeout(timer);
|
|
|
+ clearTimeout(storageLocal.get('delayTimer'));
|
|
|
}
|
|
|
},config.delayPushTime);
|
|
|
+ storageLocal.set('delayTimer',timer);
|
|
|
},
|
|
|
handleSearch(obj){
|
|
|
switch (+obj.boxMark){
|