Browse Source

问题修改

1178232204@qq.com 3 years ago
parent
commit
be777982af

+ 0 - 3
src/components/DiagnosticList/index.jsx

@@ -83,12 +83,9 @@ class DiagnosticList extends Component {
         downDiagnostic && downDiagnostic(index,isTcm)
     }
     deleteItem() {
-      
         const { delItem,idxNum } = this.state;
         const { delDiagnostic, delReact,delFollowUp,isTcm } = this.props;
-        console.log(idxNum,222);
         delDiagnostic && delDiagnostic(delItem,idxNum,isTcm);
-       
         delReact && delReact(delItem);      //删除对应不良反应
         delFollowUp && delFollowUp(delItem);    //删除对应回访记录
         this.setState({

+ 0 - 2
src/store/actions/diagnosticList.js

@@ -130,8 +130,6 @@ export const delDiagnostic = (state, action) => {
     }else{
         if(isTcm){
             res.otherIndex=tmpLis[0];
-        }else{
-            res.diseaseName = null
         }
     }
     res[k] = [...tmpLis]

+ 1 - 1
src/utils/tools.js

@@ -975,7 +975,7 @@ function getEMRParams() {
   for (let i = 0; i < diagnosticList.diagnosticList.length; i++) {
     diag.push({ "dateValue": "", "name": diagnosticList.diagnosticList[i].name, "uniqueName": "" })
   }
-  // if (diagnosticList.diagnosticList.length > 0) diagnosticList.diseaseName.uniqueName = ''
+  if (diagnosticList.diagnosticList.length > 0) diagnosticList.diseaseName.uniqueName = ''
   let templis = (inspect.labelListSmall).concat(inspect.labelListBig)
   templis = templis.filter((item) => {
     if (!item.check) {