|
@@ -7,6 +7,8 @@ import {getFeature} from '@store/async-actions/fetchModules';
|
|
|
import {getAllDataList,getAllDataStringList,ifOtherClear,setFontColorSize} from "@utils/tools.js";
|
|
|
import store from '@store';
|
|
|
import $ from "jquery";
|
|
|
+import {SET_CURRENT_MODULE} from '@types/homePage';
|
|
|
+import {getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
|
|
|
class Textarea extends Component {
|
|
|
constructor(props) {
|
|
@@ -25,7 +27,9 @@ class Textarea extends Component {
|
|
|
this.handleBlur = this.handleBlur.bind(this);
|
|
|
}
|
|
|
handleFocus(e){ //初始显示props中的值,focus已经显示输入的值,避免值更新闪烁
|
|
|
- const {handleFocus,fuzhen,handleInput,isChronic,hasMain,boxMark} = this.props;
|
|
|
+ const {handleFocus,fuzhen,handleInput,isChronic,hasMain,boxMark,title} = this.props;
|
|
|
+ const state = store.getState()
|
|
|
+ const moduleName = state.homePage.moduleName
|
|
|
//黏贴时去掉html格式
|
|
|
const that = this;
|
|
|
let txt = '';
|
|
@@ -56,6 +60,14 @@ class Textarea extends Component {
|
|
|
this.$dom.current.innerText?(this.$dom.current.innerText = text):(this.$dom.current.innerHTML = text);
|
|
|
handleInput&&handleInput({text});
|
|
|
}*/
|
|
|
+ if(moduleName != title) {
|
|
|
+ store.dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName:title
|
|
|
+ })
|
|
|
+ store.dispatch(getMRAnalyse())
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
handleInput(e){
|