Bladeren bron

问题修改

1178232204@qq.com 3 jaren geleden
bovenliggende
commit
83f9dff29f
3 gewijzigde bestanden met toevoegingen van 21 en 7 verwijderingen
  1. 9 0
      src/js/cdss.js
  2. 8 5
      src/js/cdssHorizontal.js
  3. 4 2
      src/js/util.js

+ 9 - 0
src/js/cdss.js

@@ -378,6 +378,15 @@ function renderpushByMayDisease(name, i) {
           isShow = true
         }
       }
+      console.log(symptomPush.length);
+      console.log(vitalPush.length);
+      console.log(lisPush.length);
+      console.log(pacsPush.length);
+      console.log(scalePush.length);
+      console.log(disPush.length);
+      console.log(medicinesPush.length);
+      console.log(operationsPush.length);
+      console.log(nursePush.length);
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
         $.toast('toast1', '', 3000, '.maydiagnose', i);
       } else if (maydiagnoseType) {

+ 8 - 5
src/js/cdssHorizontal.js

@@ -416,11 +416,11 @@ function renderpushByMayDisease(name, i, inx) {
       let lisPush = result.lis || []
       let pacsPush = result.pacs || []
       let scalePush = result.scale || []
-      let disPush = result.dis['大数据推送诊断'] || {}
-      let treatPush = result.treat || {}
-      let medicinesPush = result.medicines || {}
-      let operationsPush = result.operations || {}
-      let nursePush = result.nurse || {}
+      let disPush = result.dis['大数据推送诊断'] || []
+      let treatPush = result.treat || []
+      let medicinesPush = result.medicines || []
+      let operationsPush = result.operations || []
+      let nursePush = result.nurse || []
       let isShow = false
       for (let i = 0; i < treatPush.length; i++) {
         const it = treatPush[i];
@@ -429,6 +429,7 @@ function renderpushByMayDisease(name, i, inx) {
         }
       }
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
+        console.log(123);
         $.toast('toast3', '', 3000, '.maydiagnose', i);
         $(".maydiagnose .item").css("display", "none")
       } else if (maydiagnoseType) {
@@ -473,7 +474,9 @@ function renderpushByHasDisease(name, i, inx) {
           isShow = true
         }
       }
+      console.log(isShow);
       if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
+        console.log(123);
         $.toast('toast3', '', 3000, '.hasdiagnose', i);
         $(".hasdiagnose .item").css("display", "none")
       } else if (hasdiagnoseType) {

+ 4 - 2
src/js/util.js

@@ -1,5 +1,7 @@
-let toast = require('./../images/toast-1.png').replace(/^undefined/g, '')
-let toast2 = require('./../images/toast-1.png').replace(/^undefined/g, '')
+require('./../images/toast-1.png').replace(/^undefined/g, '')
+require('./../images/toast-2.png').replace(/^undefined/g, '')
+require('./../images/toast-3.png').replace(/^undefined/g, '')
+require('./../images/toast-4.png').replace(/^undefined/g, '')
 const transConf = function (arr) {
     window.arr = arr;
     // var arr = [