|
@@ -11,7 +11,8 @@ import {ISREAD, SETREADDITEMS} from "../store/types/homePage";
|
|
|
import {CLEAR_FIRST_MAIN_DIAG, CLEAR_ALL_TREAT} from "../store/types/treat";
|
|
|
import {tabChange} from '@store/actions/tabTemplate';
|
|
|
import {CLEAR_ASSESS_RESULT_VALUE} from '@types/assessResult';
|
|
|
-import config from '@config/index.js';
|
|
|
+import { SET_READ_MODE } from "@store/types/typeConfig";
|
|
|
+import config from '@config/index';
|
|
|
import up from '@images/up.png';
|
|
|
import down from '@images/down.png';
|
|
|
|
|
@@ -235,6 +236,7 @@ const getAllDataStringList =(baseList) =>{ //获取所有模块文本
|
|
|
const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清空所有的数据
|
|
|
if(action == 'clear'){ //清空
|
|
|
const block = Object.assign(JSON.parse(config.textLabel),{full:true});//空白时保留一个自由文本标签
|
|
|
+ store.dispatch({type: SET_READ_MODE, readMode: -1}); //清除回读模式值
|
|
|
store.dispatch({type: CLEAR_MAIN_SUIT,data:[],saveText:[],selecteds:[],editClear:true,mainIds:[],mainTailIds:[],clearAction:true,symptomFeature:[],chronicDesease:null,mainReadSonM:[]});
|
|
|
store.dispatch({type: CLEAR_CURRENT_ILL,data:[],saveText:[],selecteds:[],editClear:true,symptomIds:[],currReadSonM:[]});
|
|
|
store.dispatch({type: CLEAROTHERHISTORY,data:[block],isEmpty:true,saveText:[],selecteds:[],editClear:true,yjs_1:'',yjs_2:'',yjs_3:'',yjs_4:''});
|
|
@@ -283,6 +285,8 @@ const pushAllDataList =(whichSign,action,reData,type) =>{ //回读清
|
|
|
storageLocal.remove('emrParam');
|
|
|
// Notify.success('页面已清空')
|
|
|
}else{
|
|
|
+ //回读/引用设置回读模式值(主诉-其他史使用)
|
|
|
+ store.dispatch({type: SET_READ_MODE, readMode: whichSign});
|
|
|
if (whichSign == 0) {
|
|
|
let dataJson = JSON.parse(reData.dataJson);
|
|
|
//其他史data
|