ソースを参照

查体高亮bug修改

zhouna 6 年 前
コミット
14d736f460
2 ファイル変更10 行追加3 行削除
  1. 1 1
      src/containers/eleType.js
  2. 9 2
      src/store/async-actions/fetchModules.js

+ 1 - 1
src/containers/eleType.js

@@ -20,7 +20,7 @@ import Multiple from '@containers/Multiple';
 //单选类型
 export function singleRadio(params){
   const data = params.item;
-  const {i,hideTag,boxMark,showArr,selecteds,boxTop,boxLeft,importLabel} = params;
+  const {i,hideTag,boxMark,showArr,selecteds,importLabel} = params;
   let isHigh=importLabel&&importLabel.includes(data.id);
   const showInx = boxMark+i+'0';    //单括号多标签的情况下需要识别同一个标签内多个下拉组件的显示状态
   switch (+data.controlType){

+ 9 - 2
src/store/async-actions/fetchModules.js

@@ -6,11 +6,11 @@ import {getEMRParams,didPushParamChange,inspectAndAssist,fullfillText,checkFullf
 import {Notify} from '@commonComp';
 import {billing} from '@store/async-actions/pushMessage';
 import {SETOTHERHISTORY,ISREAD} from "../types/homePage";
-import {SAVE_TABLE_RESULT,SET_CHRONIC_PUSHS} from "../types/pushMessage";
 import config from "@config/index";
 import {CURRENT_CHRONIC} from '@store/types/currentIll';
 import {MODI_LOADING} from '@store/types/homePage.js';
 import {GET_ALL_HIS,FILTER_ALL_HIS} from '@store/types/emergencyHis.js';
+import {SET_IMPORT_CHECKBODY_LABEL} from "../types/checkBody";
 
 const api={
   // getSpreadModule:'/questionInfo/getByIds',
@@ -159,7 +159,14 @@ export function pregetCheckbodyData(flag){     //flag=true获取到数据后立
     };
     json(api.getBigPush,param).then((res)=>{
       if(+res.data.code === 0){
-        const data = res.data.data&&res.data.data.moduleVital;
+        const obj = res.data.data;
+        const data = obj&&obj.moduleVital;
+        const vitalIds = obj&&obj.vitalIds;
+        //查体高亮标签
+        dispatch({
+          type:SET_IMPORT_CHECKBODY_LABEL,
+          labels:vitalIds
+        });
         dispatch({
           type:PRESET,
           data:data