|
@@ -1,14 +1,14 @@
|
|
|
import {connect} from 'react-redux';
|
|
|
import {EditableSpan} from '@commonComp';
|
|
|
-import {SETCHECKTEXT,SETSEARCHDATA,CHECK_FOCUS_INDEX,CHECKBODY_CLEAR} from '@types/checkBody';
|
|
|
-import {SET_SEARCH,MAIN_FOCUS_INDEX,CLEAR_SEARCH,SETMAINTEXT} from '@types/mainSuit';
|
|
|
-import {SETOTHERTEXT,SETOTHERSEARCHDATA,OTHER_FOCUS_INDEX,OTHERHIS_CLEAR} from '@types/otherHistory';
|
|
|
-import {SET_CURRENT_SEARCH,CURRENT_CLEAR,SETCURRENTTEXT,CURRENT_FOCUS_INDEX} from '@types/currentIll';
|
|
|
+import {SETCHECKTEXT,SETSEARCHDATA,CHECK_FOCUS_INDEX,CHECKBODY_CLEAR,DEL_CHECKBODY} from '@types/checkBody';
|
|
|
+import {SET_SEARCH,MAIN_FOCUS_INDEX,CLEAR_SEARCH,SETMAINTEXT,DEL_MAIN} from '@types/mainSuit';
|
|
|
+import {SETOTHERTEXT,SETOTHERSEARCHDATA,OTHER_FOCUS_INDEX,OTHERHIS_CLEAR,DEL_OTHERHIS} from '@types/otherHistory';
|
|
|
+import {SET_CURRENT_SEARCH,CURRENT_CLEAR,SETCURRENTTEXT,CURRENT_FOCUS_INDEX,DEL_CURRENT} 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 {SETTEXTFOCUS} from '@types/homePage';
|
|
|
-import {RESET,SETDROPSHOW} from "@store/types/homePage";
|
|
|
+import {RESET,SETDROPSHOW,ISREAD} from "@store/types/homePage";
|
|
|
import config from '@config/index.js';
|
|
|
|
|
|
function mapStateToProps(state){//console.log(state)
|
|
@@ -208,7 +208,29 @@ function mapDispatchToProps(dispatch,state) {
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ handleKeydown(obj){//backspace删除
|
|
|
+ switch (+obj.boxMark){
|
|
|
+ case 1:
|
|
|
+ dispatch({type:DEL_MAIN,delIndex:obj.i});
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ dispatch({type:DEL_CURRENT,delIndex:obj.i});
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ dispatch({type:DEL_OTHERHIS,delIndex:obj.i});
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ dispatch({type:DEL_CHECKBODY,delIndex:obj.i});
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ // 更新文本标签
|
|
|
+ dispatch({
|
|
|
+ type:ISREAD
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
|