Bladeren bron

可能诊断

1178232204@qq.com 3 jaren geleden
bovenliggende
commit
1b02be82c9
1 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 5 3
      src/js/cdss.js

+ 5 - 3
src/js/cdss.js

@@ -367,6 +367,7 @@ function renderpushByMayDisease(name, i) {
       let medicinesPush = result.medicines || []
       let operationsPush = result.operations || []
       let nursePush = result.nurse || []
+      console.log(maydiagnoseType);
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
         $.toast('toast1', '', 3000,'.maydiagnose',i);
       } else if(maydiagnoseType){
@@ -412,10 +413,11 @@ function renderpushByHasDisease(name, i) {
       let medicinesPush = result.medicines || {}
       let operationsPush = result.operations || {}
       let nursePush = result.nurse || {}
+      console.log(hasdiagnoseType);
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
         $.toast('toast1', '', 3000,'.hasdiagnose',i);
       } else if(hasdiagnoseType){
-        $.toast('toast2', '', 3000,'.maydiagnose',i);
+        $.toast('toast2', '', 3000,'.hasdiagnose',i);
       }else {
         renderHasSymptomPush(symptomPush)
         renderHasVitalPush(vitalPush)
@@ -1255,7 +1257,7 @@ function renderModuleWrapper(moduleList) {
           let item = moduleList[i].planDetails[j]
           arr.push(item.status)
         }
-        if(arr.indexOf('1') == -1){
+        if(arr.indexOf(1) == -1){
           maydiagnoseType = true
         }
       } else if (moduleList[i].code == 'hasdiagnose') {
@@ -1266,7 +1268,7 @@ function renderModuleWrapper(moduleList) {
           let item = moduleList[i].planDetails[j]
           arr.push(item.status)
         }
-        if(arr.indexOf('1') == -1){
+        if(arr.indexOf(1) == -1){
           hasdiagnoseType = true
         }
       } else {