Bläddra i källkod

查体添加血压bug修改,showInCheck相关

zhouna 6 år sedan
förälder
incheckning
6ca80fbfa9
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/store/actions/checkBody.js

+ 2 - 2
src/store/actions/checkBody.js

@@ -205,13 +205,13 @@ export const setRadioInputValue = (state,action)=>{
 export function addLabelItem(state,action){
   let res = Object.assign({},state);
   const {data,i} = action;
-  const textLabel = JSON.parse(config.textLabel);
+  const textLabel = Object.assign({},JSON.parse(config._textLabel),{showInCheck:JSON.parse(data).showInCheck});
   //使用Object.assign({},data)拷贝操作时复制项和原项会同步修改
   if(!data) return res;
   res.data.splice(+i+2,0,JSON.parse(data),textLabel);
   res.saveText.splice(+i+2,0,'','');
   res.selecteds.splice(+i+2,0,null,null);
-  res.update = Math.random();
+  res.update = Math.random();console.log(res)
   return res;
 }
 //自由文本